Выжно: Учётная запись root должна быть включена(запаролена)
Сперва нужно сделать бэкапы двух файлов
os-release
и
lsb-release
они лежвт в
/etc
Код: Выделить всё
cd /etc
sudo cp os-release os-release.bak
sudo cp lsb-release lsb-release.bak
Дальше изменить содержимое файлов на
os-release
Код: Выделить всё
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10.2"
ID=debian
ID_LIKE=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support/"
BUG_REPORT_URL="https://bug.debian.org/"
DEBIAN_CODENAME=buster
lsb-release
Код: Выделить всё
DISTRIB_ID=Debian
DISTRIB_RELEASE=10.2
DISTRIB_CODENAME=buster
DISTRIB_DESCRIPTION="Debian GNU/Linux 10 (buster)"
Следующим шагом подкоючить репозиторий Debian. Я использую редактор nano. Ты используй какой хочешь.
И добавить такой репозиторий в начало
Код: Выделить всё
deb http://ftp.de.debian.org/debian buster main
Затем обновить списки
После этого качаешь драйвер для
Debian в отдельную папку домашнего каталога, т.к после запуска в эту папку пойдёт весь хлам сборки.
Далее качнуть вот этот плагин к
3.21.12
Дать права на запуск
Пускаем
я еще сделал так, для верности
Если error-ов не получил, значит всё гуд!
Дальше запуск скрипта драйвера
Поезхали дальше......
.
.
.
1. Defaults for each question are maked with a '*'. Press <enter> to accept the default.
enter
2. Please choose the installation mode (a=automatic*, c=custom, q=quit) :
a
3. Is "Debian 10.2" your correct distro/OS and version (y=yes*, n=no, q=quit) ?
y
4. Please enter the root/superuser password:
Пароль рута
5. Please read the installation notes. Press <enter> to continue or 'q' to quit:
enter
6. Would you like to have this installer install the hplip specific policy/profile (y=yes*, n=no, q=quit) ?
y
..............................
Код: Выделить всё
RUNNING HPLIP LIBS REMOVE COMMANDS
----------------------------------
su -c "apt-get remove libhpmud0 libsane-hpaio printer-driver-postscript-hp"
su -c "apt-get remove libhpmud0 libsane-hpaio printer-driver-postscript-hp" ( hp_libs_remove step 1)
OK
RUNNING HPLIP LIBS REMOVE COMMANDS - Вот на этом месте может зависнуть!
Если зависло тогда прерываешь установку
Ctrl+c
и не выходя из терминала
Код: Выделить всё
sudo apt remove libhpmud0 libsane-hpaio printer-driver-postscript-hp
И запускаешь скрипт драйвера заного.
7. Do you want to install these missing dependencies (y=yes*, n=no, q=quit) ?
y
Мой лог
INSTALL MISSING REQUIRED DEPENDENCIES
-------------------------------------
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: libusb (libusb - USB library)
warning: Missing REQUIRED dependency: pyqt5 (PyQt 5- Qt interface for Python (for Qt version 4.x))
warning: Missing REQUIRED dependency: libavahi-dev (libavahi-dev)
INSTALL MISSING OPTIONAL DEPENDENCIES
-------------------------------------
note: Installation of dependencies requires an active internet connection.
warning: Missing OPTIONAL dependency for option 'gui_qt5': pyqt5-dbus (PyQt 5 DBus - DBus Support for PyQt5)
CHECKING FOR NETWORK CONNECTION
-------------------------------
Network connection present.
RUNNING PRE-PACKAGE COMMANDS
----------------------------
su -c "dpkg --configure -a" (Pre-depend step 1)
su -c "apt-get install -f" (Pre-depend step 2)
su -c "apt-get update" (Pre-depend step 3)
OK
DEPENDENCY AND CONFLICT RESOLUTION
----------------------------------
Running 'su -c "apt-get install --force-yes -y libusb-1.0.0-dev"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y gtk2-engines-pixbuf"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y python-pyqt5"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y libavahi-client-dev"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y libavahi-core-dev"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y libavahi-common-dev"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y python-dbus.mainloop.pyqt5"'
Please wait, this may take several minutes...
HPLIP-3.21.12 exists, this may conflict with the new one being installed.
Do you want to ('i'= Remove and Install*, 'q'= Quit)? :i
Starting uninstallation...
HPLIP uninstallation is completed
RUNNING POST-PACKAGE COMMANDS
-----------------------------
OK
RE-CHECKING DEPENDENCIES
------------------------
RUNNING SCANJET DEPENDENCY COMMANDS
-----------------------------------
su -c "apt-get install --force-yes -y python-pip" (Scanjet-depend step 1)
su -c "pip install --upgrade pip" (Scanjet-depend step 2)
su -c "apt-get install --force-yes -y libleptonica-dev" (Scanjet-depend step 3)
su -c "apt-get install --force-yes -y tesseract-ocr" (Scanjet-depend step 4)
su -c "apt-get install --force-yes -y libtesseract-dev" (Scanjet-depend step 5)
su -c "pip install tesserocr" (Scanjet-depend step 6)
su -c "apt-get install --force-yes -y libzbar-dev" (Scanjet-depend step 7)
su -c "apt-get install --force-yes -y python-zbar" (Scanjet-depend step 8)
su -c "apt-get install --force-yes -y python-opencv" (Scanjet-depend step 9)
su -c "apt-get install --force-yes -y python-pypdf2" (Scanjet-depend step 10)
su -c "pip install imutils" (Scanjet-depend step 11)
su -c "pip install pypdfocr" (Scanjet-depend step 12)
su -c "pip install scikit-image" (Scanjet-depend step 13)
su -c "pip install scipy" (Scanjet-depend step 14)
OK
PRE-BUILD COMMANDS
------------------
OK
BUILD AND INSTALL
-----------------
Running './configure --with-hpppddir=/usr/share/ppd/HP --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --disable-qt4 --enable-qt5 --enable-doc-build --disable-cups-ppd-install --disable-foomatic-drv-install --disable-libusb01_build --disable-foomatic-ppd-install --disable-hpijs-install --disable-class-driver --disable-udev_sysfs_rules --disable-policykit --enable-cups-drv-install --enable-hpcups-install --enable-network-build --enable-dbus-build --enable-scan-build --enable-fax-build --enable-apparmor_build'
Please wait, this may take several minutes...
Command completed successfully.
Running 'make clean'
Please wait, this may take several minutes...
Command completed successfully.
Running 'make'
Please wait, this may take several minutes...
Command completed successfully.
Running 'su -c "make install"'
Please wait, this may take several minutes...
Command completed successfully.
Build complete.
POST-BUILD COMMANDS
-------------------
CLOSE HP_SYSTRAY
----------------
Sending close message to hp-systray (if it is currently running)...
OK
HPLIP UPDATE NOTIFICATION
-------------------------
Do you want to check for HPLIP updates?. (y=yes*, n=no) : y
HPLIP PLUGIN UPDATE NOTIFICATION
--------------------------------
HPLIP Plug-in's needs to be installed/updated. Do you want to update plug-in's?. (y=yes*, n=no) : y
Do you want to install plug-in's in GUI mode?. (u=GUI mode*, i=Interactive mode) : y
error: Please enter 'u', 'i', 'q' or press <enter> for the default of 'u'.
Do you want to install plug-in's in GUI mode?. (u=GUI mode*, i=Interactive mode) : u
HP Linux Imaging and Printing System (ver. 3.21.12)
Plugin Download and Install Utility ver. 2.1
Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
HP Linux Imaging and Printing System (ver. 3.21.12)
Plugin Download and Install Utility ver. 2.1
Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
qt5ct: using qt5ct plugin
Done.
7. Do you want to check for HPLIP updates?. (y=yes*, n=no) :
y
9. Do you want to install plug-in's in GUI mode?. (u=GUI mode*, i=Interactive mode) :
u
Если у тебя всё получилось, тогда os-release и lsb-release нужно восстановить из бекапа
Код: Выделить всё
cd /etc
sudo mv os-release.bak os-release
sudo mv lsb-release.bak lsb-release
Потом сделать тоже самое в фале
/usr/lib/os-release
Т.е заменить содержимое на
Код: Выделить всё
PRETTY_NAME="LMDE 4 (debbie)"
NAME="LMDE"
VERSION_ID="4"
VERSION="4 (debbie)"
ID=linuxmint
ID_LIKE=debian
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide. ... en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=debbie
DEBIAN_CODENAME=buster
.
.
Ну какбы... всё наверное. Если что-то я забыл, потом допишу. А пока так
Возможно, если ничего не выйдет, придётся подкачать пакеты
Код: Выделить всё
sudo apt install libcups2 libcups2-dev cups-bsd cups-client libcupsimage2 libcupsimage2-dev libdbus-1-dev g++ gs-esp libssl-dev libjpeg62-dev libsnmp-dev libc6 libtool libusb-1.0.0-dev make wget python-imaging policykit-1 policykit-1-gnome python-qt4 python-qt4-dbus python-dbus python-gobject python-dev python-notify python python-reportlab sane libsane-dev sane-utils xsane"
В случае если неудастся их подкачать все, тогда надо исключить из списка те, которых нету в репозитории. Не ошибешся. Консоль предупредит каких пакетов нету, вот их и нужно будет исключить