When trying to download SWI-Prolog using sudo apt-get install swi-prolog, I got a series of errors:  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: libpython3-dev : Depends: libpython3.5-dev (&gt;= 3.5.1-2~) but it is not installable python3.5-dev : Depends: python3.5 (= 3.5.2-2ubuntu0~16.04.4) but 3.5.2-2ubuntu0~16.04.3 is to be  installed              Depends: libpython3.5-dev (= 3.5.2-2ubuntu0~16.04.4) but it is not installable              Depends: libpython3.5 (= 3.5.2-2ubuntu0~16.04.4) but 3.5.2-2ubuntu0~16.04.3 is to be  installed swi-prolog-nox : Depends: libossp-uuid16 but it is not going to be installed               Depends: libreadline7 (&gt;= 6.0) but it is not going to be installed               Depends: libssl1.1 (&gt;= 1.1.0) but it is not going to be installed               Depends: libedit-dev but it is not going to be installed               Depends: libgmp-dev but it is not going to be installed               Depends: libncursesw5-dev but it is not going to be installed               Depends: libreadline-dev but it is not going to be installed               Recommends: debhelper but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).   I did try apt-get -f install, which threw the errors:  Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... failed. The following packages have unmet dependencies: libpython3-dev : Depends: libpython3.5-dev (&gt;= 3.5.1-2~) but it is not  installable python3.5-dev : Depends: python3.5 (= 3.5.2-2ubuntu0~16.04.4) but 3.5.2-  2ubuntu0~16.04.3 is installed              Depends: libpython3.5-dev (= 3.5.2-2ubuntu0~16.04.4) but it is  not installable              Depends: libpython3.5 (= 3.5.2-2ubuntu0~16.04.4) but 3.5.2-  2ubuntu0~16.04.3 is installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by  held packages. E: Unable to correct dependencies   I also have the same problem(s) when doing a full update using sudo apt-get update or upgrade.  How can I fix these errors?  Thanks!
2011
I am not sure what caused this error, but here is what the whole error says, and also this is sitting as a notification, and preventing me from updating any software using Update Manager - Please provide some assistance or tell me how to figure out what to do to fix it.  Could not calculate the upgrade  An unresolvable problem occurred while calculating the upgrade.  Please report this bug against the 'update-manager' package and include the following error message: 'E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.'
108996
In order to install tmux 2.1, I needed to install libtinfo5 version 6, I did this by downloading a .deb archive containing libtinfo5 and installing directly with command:  sudo dpkg -i libtinfo5_6.0+20160213-1ubuntu1_amd64.deb   This satisfied tmux 2.1's dependency and tmux installed ok. Now I tried to install vnstat using  sudo apt-get install vnstat    apt-get error exited with the following  $ sudo apt-get install vnstat 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:  libncurses5 : Depends: libtinfo5 (= 5.9+20150516-2ubuntu1) but 6.0+20160213-1ubuntu1 is to be installed  libncursesw5 : Depends: libtinfo5 (= 5.9+20150516-2ubuntu1) but 6.0+20160213-1ubuntu1 is to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).   My understanding has always been that Ubuntu's package management system was capable of installing and managing multiple versions of the same package, for situations exactly like this.  In other words apt/dpkg recognises   tmux needs libtinfo5 - version 6 to work vnstat needs libtinfo5 - version 5 to work   Then apt/dpkg say's ok, I'll install both versions. I can see how certain programs like a system binary, e.g. bash or ls can only be installed once as most invocations simply say bash -c "&lt;command&gt;" and not bashv.3.2 -c "&lt;command&gt;". So my question is can the package manager install and manage multiple dependencies?, or is this just not possible because, like in the bash example above, most programs make a call to the dependency by the dependencies name without specifying version. In which case the issue is beyond the control of the package manager (i.e. its more of a programming compilation/configuration/organisation issue) and the package manager gives up at that point?
81823
Following the QGIS installation guide I have tried both UbuntuGIS and QGIS stable, but both fail with the error message:  The following packages have unmet dependencies:  python-qgis : Depends: python-qgis-common (= 2.6.1.1+trusty1) but it is not going to be installed             Depends: libqgispython2.6.1 but it is not going to be installed            Depends: libqgis-analysis2.6.1 but it is not going to be installed            Depends: libqgis-core2.6.1 but it is not going to be installed            Depends: libqgis-gui2.6.1 but it is not going to be installed            Depends: libqgis-networkanalysis2.6.1 but it is not going to be installed   qgis : Depends: libgdal1h (>= 1.8.0) but it is not going to be installed      Depends: libqgis-analysis2.6.1 but it is not going to be installed     Depends: libqgis-core2.6.1 but it is not going to be installed     Depends: libqgis-gui2.6.1 but it is not going to be installed     Depends: libqgis-networkanalysis2.6.1 but it is not going to be installed     Depends: qgis-providers (= 2.6.1.1+trusty1) but it is not going to be installed     Recommends: qgis-plugin-grass but it is not going to be installed     Recommends: qgis-plugin-globe but it is not going to be installed   E: Unable to correct problems, you have held broken packages.    I had QGISv.2.4 running on my machine with Ubuntu 12.04. After upgrading to Ubuntu 14.04 I was getting error message that pyqgis could not be loaded.  So I uninstalled QGIS using the Ubuntu Software Center and also run  sudo apt-get purge qgis   After that I tried to install the latest version of QGIS Debian Stable and UbuntuGIS unstable but getting the error messages described above.  The weird thing is that neither Ubuntu Software Center nor apt-get list have QGIS listed as installed, but if I run a search for qgis on my file system qgis and all its dependencies are still there. That's why I getting told to have broken packages.
85469
I was trying to install all python packages using sudo apt install python3*, but it gave me this error: newtron@newtron:~$ sudo apt install python3* Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package python3*
19166
I cannot install Wine on Ubuntu 14.04.  When I try to install it on the Ubuntu Software Center I always get a message that says I have unmet dependencies. I tried installing Wine through the terminal and I get this:  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  wine : Depends: wine1.6 but it is not going to be installed E: Unable to correct problems, you have held broken packages.
80654
sudo apt-get install pipelight Reading package lists... Done Building dependency tree        Reading state information... Done Package pipelight is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'pipelight' has no installation candidate
19729
I'm running ubuntu 14.04. I cannot use software center to install anything, even a local deb package so I have to rely on Terminal.  Recently I was trying to install mysql-server which generated error which I could pin-point was the required version of libstdc++6 . My system had 4.8.x while mysql 5.6 required >=4.9. Trying the usual upgrading process and unsuccessful, I consulted my sys admin, who tried installing the 4.9 package manually(using a local .deb package), which failed as well citing unmet dependencies.   At present, what I have is a system with error saying no new software can be installed.  The sudo apt-get install -f gives following output:  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... failed. The following packages have unmet dependencies:  libstdc++6 : Depends: gcc-4.9-base (= 4.9.2-10) but 4.9.1-0ubuntu1 is installed  libstdc++6:i386 : Depends: gcc-4.9-base:i386 (= 4.9.2-10) but 4.9.1-0ubuntu1 is installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.   I checked for held packages using  dpkg -l | grep ^h dpkg -l | grep hold   Result: nothing.  Also tried to find the broken package, if any but the file  /var/log/dist-upgrade/apt.log doesn't exist.  So, what should/can I do now.
97307
I keep getting this: Reading package lists... Done Building dependency tree        Reading state information... Done The following packages were automatically installed and are no longer required:   geoip-database-extra gir1.2-ayatanaappindicator3-0.1 gir1.2-gexiv2-0.10   libayatana-appindicator3-1 libayatana-indicator3-7 libjs-openlayers libnl-route-3-200   libqt5multimedia5 libsmi2ldbl libwireshark-data libwireshark10 libwiretap7 libwscodecs1   libwsutil8 python-bs4 python-certifi python-configobj python-html5lib python-httplib2   python-lxml python-olefile python-openssl python-pil python-pycurl python-requests   python-urllib3 python-webencodings wireshark wireshark-common wireshark-qt Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 34 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up install-info (6.5.0.dfsg.1-2) ... /usr/sbin/update-info-dir: 4: /etc/environment: Syntax error: Unterminated quoted string dpkg: error processing package install-info (--configure):  installed install-info package post-installation script subprocess returned error exit status 2 Errors were encountered while processing:  install-info E: Sub-process /usr/bin/dpkg returned an error code (1)  Output of cat /etc/environment: PATH=&quot;/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/java/jre1.8.0_171/bin&quot;     JAVA_HOME=&quot;/usr/java/jre1.8.0_171
113713
I am trying to install python 3.6.5_1 using Homebrew by running the following:  $ brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/f2a764ef944b1080be64bd88dca9a1d80130c558/Formula/python.rb   I am getting the following error:  Error: python contains a recursive dependency on itself: python depends on sphinx-doc sphinx-doc depends on python   How do I deal with it?
123398
I am having problems with apt on my WSL installation of Ubuntu 18.04.  Whenever I try to install a package with apt I get this:  Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: [...]  E: Could not read response to hello message from hook [ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2&gt;/dev/null || true: Success E: Could not read response to hello message from hook [ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2&gt;/dev/null || true: Success   I believe snapd/snappy is the culprit here, but I have not been able to find a way to solve this. Afaik snapd is not supported on WSL and I assume it's been installed in an update.  I am hoping to find a solution that won't require me to nuke the whole installation and having to spend hours setting everything up fresh.  Thanks in advance.  EDIT: original output from apt --version was apt 1.6.8 (amd64). An upgrade to 1.7.0 (amd64) did not seem to fix the issue.
75754
I got an error message explaining my /boot is full. trying to clean up old image files always seems to fail because of disk full errors or dependency errors. Could someone explain where I’m going wrong.   $ sudo apt-get autoremove 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.  linux-image-extra-3.13.0-44-generic : Depends: linux-image-3.13.0-44-generic but it is not installed  linux-image-extra-3.13.0-45-generic : Depends: linux-image-3.13.0-45-generic but it is not installed  linux-image-generic : Depends: linux-image-3.13.0-45-generic but it is not installed E: Unmet dependencies. Try using -f.  $ ls /boot abi-3.13.0-32-generic         initrd.img-3.13.0-43-generic abi-3.13.0-36-generic         lost+found abi-3.13.0-37-generic         memtest86+.bin abi-3.13.0-39-generic         memtest86+.elf abi-3.13.0-40-generic         memtest86+_multiboot.bin abi-3.13.0-43-generic         System.map-3.13.0-32-generic config-3.13.0-32-generic      System.map-3.13.0-36-generic config-3.13.0-36-generic      System.map-3.13.0-37-generic config-3.13.0-37-generic      System.map-3.13.0-39-generic config-3.13.0-39-generic      System.map-3.13.0-40-generic config-3.13.0-40-generic      System.map-3.13.0-43-generic config-3.13.0-43-generic      vmlinuz-3.13.0-32-generic grub                          vmlinuz-3.13.0-36-generic initrd.img-3.13.0-32-generic  vmlinuz-3.13.0-37-generic initrd.img-3.13.0-36-generic  vmlinuz-3.13.0-39-generic initrd.img-3.13.0-37-generic  vmlinuz-3.13.0-40-generic initrd.img-3.13.0-39-generic  vmlinuz-3.13.0-43-generic initrd.img-3.13.0-40-generic   I used   kernelver=$(uname -r | sed -r 's/-[a-z]+//') dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve $kernelver   to get   linux-headers-3.13.0-32 linux-headers-3.13.0-32-generic linux-headers-3.13.0-36 linux-headers-3.13.0-36-generic linux-headers-3.13.0-37 linux-headers-3.13.0-37-generic linux-headers-3.13.0-39 linux-headers-3.13.0-39-generic linux-headers-3.13.0-40 linux-headers-3.13.0-40-generic linux-headers-3.13.0-44 linux-headers-3.13.0-44-generic linux-headers-3.13.0-45 linux-headers-3.13.0-45-generic linux-image-3.13.0-32-generic linux-image-3.13.0-36-generic linux-image-3.13.0-37-generic linux-image-3.13.0-39-generic linux-image-3.13.0-40-generic   Then picking the first image to remove   $ sudo apt-get purge linux-image-3.13.0-32-generic 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.  linux-image-extra-3.13.0-32-generic : Depends: linux-image-3.13.0-32-generic but it is not going to be installed  linux-image-extra-3.13.0-44-generic : Depends: linux-image-3.13.0-44-generic but it is not going to be installed  linux-image-extra-3.13.0-45-generic : Depends: linux-image-3.13.0-45-generic but it is not going to be installed  linux-image-generic : Depends: linux-image-3.13.0-45-generic but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
144
How can I install a different version of Python using apt-get?  Obviously I realise I can install using the source tar ball, however I would prefer not to install from source and instead use the package manager, as that's what it's there for. Surely somewhere reputable builds .deb files for the latest Python releases (why python.org don't is beyond me) that I can reference.   What do I need to do to reference them and what issues might it create when upgrading to the next version?  If there is no way except for building from source, is there a (pseudo) package that I can can install that will provide all of the dependencies needed without having to find and install each individually? So that I don't get:  The necessary bits to build these optional modules were not found: _bz2                  _curses               _curses_panel       _dbm                  _gdbm                 _lzma               _sqlite3              _ssl                  _tkinter            readline              zlib
64418
I've seen several times people with unmet dependencies, which apt-get doesn't tells straightforward what's the problem, like this one:  The following packages have unmet dependencies:  libgl1-mesa-dri:i386 : Depends: libdrm-intel1:i386 (&gt;= 2.4.38) but it is not going to be installed                         Depends: libdrm-nouveau2:i386 (&gt;= 2.4.38) but it is not going to be installed                         Depends: libdrm-radeon1:i386 (&gt;= 2.4.31) but it is not going to be installed                         Depends: libdrm2:i386 (&gt;= 2.4.38) but it is not going to be installed                         Depends: libglapi-mesa:i386 but it is not going to be installed  libgl1-mesa-glx:i386 : Depends: libdrm2:i386 (&gt;= 2.3.1) but it is not going to be installed                         Depends: libglapi-mesa:i386 (= 9.2.1-1ubuntu3) but it is not going to be installed                         Depends: libx11-6:i386 (&gt;= 2:1.4.99.1) but it is not going to be installed                         Depends: libxcb-dri2-0:i386 (&gt;= 1.8) but it is not going to be installed                         Depends: libxcb-glx0:i386 (&gt;= 1.8) but it is not going to be installed                         Depends: libxcb1:i386 but it is not going to be installed                         Depends: libxdamage1:i386 (&gt;= 1:1.1) but it is not going to be installed                         Depends: libxext6:i386 but it is not going to be installed                         Depends: libxfixes3:i386 but it is not going to be installed                         Depends: libxxf86vm1:i386 but it is not going to be installed   I know that walking through all dependencies apt-get install libgl1-mesa-dri:i386 libdrm-intel1:i386 until I hit something is available, but in this case it will be a painful job due the amount of packages. Is there an easier way to do this?
121536
I am having dependency problems, whenever I do an apt-get install, I get this error message:    I already tried:   apt-get clean, update, upgrade, install -f dpkg --configure -a   What should I do now?
94503
The error looks like this:  Reading package lists... Done Building dependency tree        Reading state information... Done Package mysql-workbench is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'mysql-workbench' has no installation candidate   How do I install it?
94397
When I run sudo apt-get upgrade, the dpkg error appears and interupts the process.  Error details:  Setting up python-minimal (2.7.3-0ubuntu7.1) ... Traceback (most recent call last):   File "/usr/local/lib/python2.7/runpy.py", line 162, in _run_module_as_main     "__main__", fname, loader, pkg_name)   File "/usr/local/lib/python2.7/runpy.py", line 72, in _run_code     exec code in run_globals   File "/usr/local/lib/python2.7/compileall.py", line 16, in &lt;module&gt;     import struct   File "/usr/local/lib/python2.7/struct.py", line 1, in &lt;module&gt;     from _struct import * ImportError: No module named _struct dpkg: error processing python-minimal (--configure):  subprocess installed post-installation script returned error exit status 255 dpkg: dependency problems prevent configuration of python:  python depends on python-minimal (= 2.7.3-0ubuntu7.1); however:   Package python-minimal is not configured yet.   And this problem leads to a series of dependency problems when processing the following packages:    python  gwibber-service  libgwibber3  libgwibber-gtk3  gwibber  gwibber-service-facebook  gwibber-service-identica  gwibber-service-twitter  python-all  python-dev  python-all-dev  python-apt  python-problem-report  python-apport  python-libxml2  unity-lens-gwibber  unity-scope-video-remote   Finally, nothing I can do for this problem. And several days later, the root directory is full and I even could not uninstall any software because of this problem.
91821
I'm new to Linux and am trying to set up Python / Django on my machine!  I installed Python 3.3 from the source file and it was compiled into /usr/local/bin. Then I created a symbolic link between /usr/bin/python and /usr/local/bin/python3, so that whenever I invoke python from the command line it uses the latest version.  Now I am trying to install MySQL Python and I got the following output:  apt-get install python-mysqldb  Reading package lists... Done Building dependency tree Reading state information... Done python-mysqldb is already the newest version. The following extra packages will be installed:   apt-listchanges python-apt Suggested packages:   python-glade2 python-gtk2 python-apt-dbg python-vte python-apt-doc The following packages will be upgraded:   apt-listchanges python-apt 2 upgraded, 0 newly installed, 0 to remove and 142 not upgraded. 3 not fully installed or removed. Need to get 0 B/394 kB of archives. After this operation, 250 kB of additional disk space will be used. Do you want to continue [Y/n]? Y Traceback (most recent call last):   File "/usr/bin/apt-listchanges", line 28, in &lt;module&gt;     import apt_pkg ImportError: No module named 'apt_pkg'   Any ideas on how to fix this?  Or any tips on how to clean up this install (if this one is too broken)?