При команді установки пакету, консоль видає:
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
▼Повний вивід, якщо цікавить
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
apache2 : PreDepends: dpkg (>= 1.17.14)
bash-completion : PreDepends: dpkg (>= 1.15.7.2~)
build-essential : Depends: dpkg-dev (>= 1.17.11) but it is not going to be installed
cups-daemon : PreDepends: dpkg (>= 1.15.7.2)
dash : Depends: dpkg (>= 1.15.0)
dh-strip-nondeterminism : Depends: debhelper but it is not going to be installed
fontconfig : PreDepends: dpkg (>= 1.16.1)
fonts-kacst : PreDepends: dpkg (>= 1.15.6~)
fonts-kacst-one : PreDepends: dpkg (>= 1.15.6~)
fonts-nanum : PreDepends: dpkg (>= 1.15.7.2)
fonts-sil-abyssinica : PreDepends: dpkg (>= 1.15.6~)
fonts-takao-pgothic : PreDepends: dpkg (>= 1.15.6~)
gir1.2-gudev-1.0 : PreDepends: dpkg (>= 1.17.14)
grub-pc : PreDepends: dpkg (>= 1.17.13)
imagemagick-common : PreDepends: dpkg (>= 1.15.7.2)
install-info : PreDepends: dpkg (>= 1.16.1)
language-pack-en : PreDepends: dpkg (>= 1.16.1)
language-pack-en-base : PreDepends: dpkg (>= 1.16.1)
language-pack-gnome-en : PreDepends: dpkg (>= 1.16.1)
language-pack-gnome-en-base : PreDepends: dpkg (>= 1.16.1)
language-selector-common : PreDepends: dpkg (>= 1.15.7.2)
libglib2.0-0 : PreDepends: dpkg (>= 1.17.21)
libglib2.0-0:i386 : PreDepends: dpkg:i386 (>= 1.17.21)
libmagickcore-6.q16-2 : PreDepends: dpkg (>= 1.17.6)
libmagickwand-6.q16-2 : PreDepends: dpkg (>= 1.17.6)
libmtp9 : PreDepends: dpkg (>= 1.15.7.2)
libpaper1 : Depends: dpkg (>= 1.17.2)
libqt5svg5 : PreDepends: dpkg (>= 1.15.6~)
libqt5webkit5 : PreDepends: dpkg (>= 1.15.6~)
libquvi7 : PreDepends: dpkg (>= 1.15.6)
libreoffice-common : PreDepends: dpkg (>= 1.15.7.2~)
libsane-common : PreDepends: dpkg (>= 1.15.7.2)
libsmbclient : PreDepends: dpkg (>= 1.15.6~)
libubuntugestures5 : PreDepends: dpkg (>= 1.15.6~)
libubuntutoolkit5 : PreDepends: dpkg (>= 1.15.6~)
libunity-gtk2-parser0 : PreDepends: dpkg (>= 1.15.7.2)
libunity-gtk3-parser0 : PreDepends: dpkg (>= 1.15.7.2)
libvlc5 : PreDepends: dpkg (>= 1.17.14)
libvlccore8 : PreDepends: dpkg (>= 1.17.14)
libwbclient0 : PreDepends: dpkg (>= 1.15.6~)
lightdm : PreDepends: dpkg (>= 1.15.7.2)
man-db : PreDepends: dpkg (>= 1.16.1~)
mountall : PreDepends: dpkg (>= 1.15.7.2)
openssh-client : Depends: dpkg (>= 1.7.0)
pcmciautils : PreDepends: dpkg (>= 1.15.7.2)
perl : PreDepends: dpkg (>= 1.17.17)
perl-base : PreDepends: dpkg (>= 1.17.17)
perl-modules-5.22 : PreDepends: dpkg (>= 1.17.17)
pkg-config : Depends: dpkg-dev but it is not going to be installed
Depends: libdpkg-perl but it is not going to be installed
plainbox-provider-resource-generic : Depends: dpkg (>= 1.13)
poppler-data : PreDepends: dpkg (>= 1.15.6~)
popularity-contest : Depends: dpkg (>= 1.10)
Recommends: cron or
cron-daemon
ppa-purge : Depends: dpkg (>= 1.16.1)
python-minimal : Depends: dpkg (>= 1.13.20)
python3-minimal : Depends: dpkg (>= 1.13.20)
qml-module-qtgraphicaleffects : PreDepends: dpkg (>= 1.15.6~)
qml-module-ubuntu-components : PreDepends: dpkg (>= 1.15.6~)
qml-module-ubuntu-layouts : PreDepends: dpkg (>= 1.15.6~)
qml-module-ubuntu-performancemetrics : PreDepends: dpkg (>= 1.15.6~)
qml-module-ubuntu-test : PreDepends: dpkg (>= 1.15.6~)
sgml-base : PreDepends: dpkg (>= 1.16.4)
ubuntu-core-launcher : PreDepends: dpkg (>= 1.15.7.2)
ubuntu-drivers-common : PreDepends: dpkg (>= 1.15.7.2)
ubuntu-ui-toolkit-theme : PreDepends: dpkg (>= 1.15.6~)
udev : PreDepends: dpkg (>= 1.17.14)
unity-gtk2-module : PreDepends: dpkg (>= 1.15.7.2)
unity-gtk3-module : PreDepends: dpkg (>= 1.15.7.2)
vlc : PreDepends: dpkg (>= 1.17.14)
vlc-nox : PreDepends: dpkg (>= 1.17.14)
vlc-plugin-fluidsynth : PreDepends: dpkg (>= 1.17.14)
vlc-plugin-jack : PreDepends: dpkg (>= 1.17.14)
vlc-plugin-notify : PreDepends: dpkg (>= 1.17.14)
vlc-plugin-samba : PreDepends: dpkg (>= 1.17.14)
vlc-plugin-sdl : PreDepends: dpkg (>= 1.17.14)
vlc-plugin-svg : PreDepends: dpkg (>= 1.17.14)
vlc-plugin-zvbi : PreDepends: dpkg (>= 1.17.14)
wine-stable-amd64 : PreDepends: dpkg (>= 1.14.12ubuntu3)
zeitgeist-core : PreDepends: dpkg (>= 1.15.7.2)
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Запускаю:
sudo apt-get -f install -y
Отримую:
dpkg: warning: 'dpkg-deb' not found in PATH or not executable
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable
dpkg: error: 2 expected programs not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
E: Sub-process /usr/bin/dpkg returned an error code (2)
В интернеті пишуть, що це проблема відсутності secure_path в файлі /etc/sudoers, але він у мене вказаний:
$ sudo grep ^Defaults /etc/sudoers
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
Тому я й прийшов спитатися поради на форумі як цю проблему вирішити