I am trying to install git on Ubuntu 16.04 LTS but every time I get this message. I have already uninstalled libpcre2-8-0, and synaptic shows nothing in broken packages. It shows only when I mark git-core package to install, and I don't know what to do after.  $ sudo apt install git 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:  git : Depends: libpcre2-8-0 (&gt;= 10.22) but 10.21-1 is to be installed E: Unable to correct problems, you have held broken packages.
466
Occasionally, when I'm installing stuff, I get an error like the following:  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:  package1 : Depends: package2 (&gt;= 1.8) but 1.7.5-1ubuntu1 is to be installed E: Unable to correct problems, you have held broken packages.   How can I resolve this?
81530
Whenever I click on software updater it says Failed to download repository information.  It's been saying this for the past few days now and I don't know why, my Internet connection is fine, I am able to manually download software.  Sometimes it crashes when I click okay, then attempts to look for updates again and gives me the same message.  Any ideas?  [EDIT] I just tried an answer posted where I reset where the downloads come from, but I was left with this message:  W:The repository 'http://ppa.launchpad.net/noobslab/noobslab-conky/ubuntu xenial Release' does not have a Release file.,  W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use.,  W:See apt-secure(8) manpage for repository creation and user configuration details.,  W:https://content.runescape.com/downloads/ubuntu/dists/trusty/InRelease: Signature by key AAC9264309E4D717441DB9527373B12CE03BEB4B uses weak digest algorithm (SHA1),  E:Failed to fetch http://ppa.launchpad.net/noobslab/noobslab-conky/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found,  E:Some index files failed to download. They have been ignored, or old ones used instead.
39495
From time to time, Ubuntu users encounter errors from  or , of the form:  The package some-package needs to be reinstalled, but I can't find an archive for it.  I want to know what causes this error so that I can reproduce it and try to find safe ways of fixing it, even when the broken package is important and has many dependencies.  of the  might give a bit of a clue, but I don't know how packages get the status that causes the error.  How can I produce this error for testing on my (Ubuntu MATE 17.10) system?  This is prompted by  and my long-standing discomfort with closing questions about this error against , whose answer uses dpkg --force-all to remove the offending package.  suggests this solution has worked for many users, but I am not confident that using --force-all won't cause later problems, or that it's a good idea to use this method to remove important packages like APT.
1160
Recently I have installed an older version of Ubuntu on my old machine. Whenever I try to install any software, I get an error saying it couldn't be found:  $ sudo apt-get install vlc Reading package lists... Done                Building dependency tree        Reading state information... Done     E: Couldn't find package vlc
115314
I am trying to install devstack on Ubuntu server 14.04.  I had a few problems before with HOST_IP, GIT_BASE and some updates... I fixed all of them, but now I am stuck on this one. I tried apt-get update and apt-get install libsystemd-dev, and I get  E: unable to locate package libsystemd-dev
8882
I have the message:   Error Broken count &gt;0 Check if you are using third party repositories. If so disable them, since they are a common source of problems. Furthermore run the following command in a Terminal: apt-get install -f Details: The following packages have unmet dependencies: firefox-globalmenu: Depends: firefox (= 19.0+build1-0ubuntu0.12.04.2) but 19.0+build1-0ubuntu0.12.04.1 is installed   Any suggestions?
7284
I'm getting the following error message when attempting to install libglew-dev,  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:  libcheese-gtk23 : Depends: libclutter-gtk-1.0-0 (&gt;= 0.91.8) but it is not going to be installed                    Depends: libcogl15 (&gt;= 1.15.8) but it is not going to be installed  libcheese7 : Depends: libclutter-gst-2.0-0 (&gt;= 0.10.0) but it is not going to be installed               Depends: gstreamer1.0-clutter but it is not going to be installed  libclutter-1.0-0 : Depends: libcogl-pango15 (&gt;= 1.15.8) but it is not going to be installed                     Depends: libcogl15 (&gt;= 1.15.8) but it is not going to be installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.   All those packages are however apparently already installed.  I have tried all possible solutions in  post, without any luck. I have not added any PPAs. The version of ubuntu is 14.04.2.  I have looked at similar posts, and tried the following:  Running  dpkg --get-selections | grep hold   prints nothing.  sudo apt-get -oDebug::pkgProblemResolver=true install -f   Gives me nothing of interest, 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
48066
Possible Duplicate:             TL;DR: sudo apt-get install ... saying "Unable to correct problems, you have held broken packages."   The problem  I was trying to get the WebApps feature for PP and QQ following .  I ran the sudo add-apt-repository ppa:webapps/preview command to add the repository, but i got a connection error. Since I know my current ISP gives a shaky connection, I tried again and sure enough, it worked.  Then I ran sudo apt-get install unity-webapps-preview, but I realized we had to update apt-get first, so I hit Ctrl + C to stop it. Then I ran sudo apt-get update which worked w/o a fuss, but when I ran sudo apt-get install unity-webapps-preview again later, it showed an error message. Here's the dump:  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:  unity-webapps-preview : Depends: xul-ext-unity but it is not going to be installed                          Depends: xul-ext-websites-integration but it is not going to be installed                          Depends: xul-ext-webaccounts but it is not going to be installed E: Unable to correct problems, you have held broken packages.   I think this might be because of me interrupting the earlier command. It hadn't got a chance to output anything, though — I stopped it pretty fast.  What I tried  Commands  I tried these:-   sudo apt-get install --fix-broken sudo apt-get autoclean sudo apt-get autoremove sudo apt-get -f install   But even after running sudo apt-get upgrade after every try, none of them worked.  Purging  I tried purging the repository, but that didn't work either. First, I got the package using sudoapt-get install ppa-purgeand then tried to purge the WebApps repo usingsudo ppa-purge ppa:webapps/preview`.  Manually installing dependencies  If you look at the error dump carefully, it says:     Depends: xul-ext-unity but it is not going to be installed   Depends: xul-ext-websites-integration but it is not going to be installed   Depends: xul-ext-webaccounts but it is not going to be installed   So I tried installing them manually. I ran sudo apt-get install xul-ext-unity, but got this:     Depends: xul-ext-websites-integration but it is not going to be installed   Breaks: firefox (>= 15.+) but 16.0~b6+build1-0ubuntu0.12.04.1~mfn4 is to be installed   I have no idea what the second part means, but I tried resolving the first. Running sudo apt-get install xul-ext-websites-integration gave:     xul-ext-websites-integration : Breaks: firefox (>= 15.+) but 16.0~b6+build1-0ubuntu0.12.04.1~mfn4 is to be installed   As a last resort, I tried sudo apt-get install xul-ext-webaccounts, but that gave the sane message too:     Breaks: firefox (>= 14.+) but 16.0~b6+build1-0ubuntu0.12.04.1~mfn4 is to be installed   What does Breaks: firefox (&gt;= 14.+) but 16.0~b6+build1-0ubuntu0.12.04.1~mfn4 is to be installed mean?  Research  I tried searching , looking at a couple of , looking at  and searching on AU, but to no avail. Help would be appreciated.
121282
While updating my packages on a debian based system by a   sudo apt-get update   I've got that error message :  Reading package lists... Done W: GPG error: ftp://ftp.fr.debian.org stable/non-US Release:  The following signatures were invalid: KEYEXPIRED 1138684904   What should I do to fix this ?
97738
I went to install bsnes the other day and, for whatever reason, the installation failed. Now, I cannot update, install new packages, or do basically any apt-get commands as they all try to process this broken package and fail. Attempting to install a new package also just dooms it to the same fate. The error I get is: Setting up google-chrome-stable (33.0.1750.152-1) ... /var/lib/dpkg/info/google-chrome-stable.postinst: 124: /var/lib/dpkg/info/google-chrome-stable.postinst: update-alternatives: not found dpkg: error processing google-chrome-stable (--configure):  subprocess installed post-installation script returned error exit status 127 Setting up bsnes (0.088-7) ... /var/lib/dpkg/info/bsnes.postinst: 5: /var/lib/dpkg/info/bsnes.postinst: update-alternatives: not found dpkg: error processing bsnes (--configure):  subprocess installed post-installation script returned error exit status 127 Errors were encountered while processing:  google-chrome-stable  bsnes E: Sub-process /usr/bin/dpkg returned an error code (1)  I have been searching on Google and here on Ask Ubuntu but have not found a working solution. The commonly suggested fix is to run the following: sudo apt-get clean &amp;&amp; sudo apt-get autoremove sudo apt-get -f install sudo dpkg --configure -a  This however does not work. The apt-get commands all fail with the same error as above and the dpkg command just doesn't help. The other thing they often suggest to purge it via Synaptic or the command line, which also fails.
49159
I have been running Ubuntu 12.04 for the past few weeks. I recently tried to download and install some files through the Update Manager. It located a few files, downloaded them, but then failed to install them. It gave the error:  installArchives() failed: (Reading database ...  (Reading database ... 80% dpkg: unrecoverable fatal error, aborting:  reading files list for package 'libasn1-8-heimdal': Input/output error   I tried using apt-get upgrade but a similar error was produced:  Reading package lists... Done Building dependency tree        Reading state information... Done The following packages will be upgraded:   icedtea-6-jre-cacao icedtea-6-jre-jamvm openjdk-6-jre openjdk-6-jre-headless   openjdk-6-jre-lib 5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/34.6 MB of archives. After this operation, 1,024 B of additional disk space will be used. Do you want to continue [Y/n]? y (Reading database ... 80% dpkg: unrecoverable fatal error, aborting:  reading files list for package 'libasn1-8-heimdal': Input/output error E: Sub-process /usr/bin/dpkg returned an error code (2)   Any help would be greatly appreciated. Thanks in advance.  Edit: Here's some extra information that may be useful. My original problem was that the Ubuntu Software Centre would not open. I found that the Update Manager and Synaptic Package Manager also failed to open. They all gave an error along the lines of:   "installArchives() failed: dpkg: error: reading package info file '/var/lib/dpkg/available': Input/output errorError in function:"   After much googling I seemed to fix that problem as the package managers would open again. When I then tried to download and install any updates from the Update Manager I got the error at the beginning of this post.
12214
I'm trying to figure out a way to get a list of the packages that are no longer available in the repositories that I have enabled. This workstation has been through quite a few versions of Ubuntu and has had many 3rd party repositories added and removed. I'd like to get a list of software that I have from these removed repositories, so I can clean it up or add back the appropriate repositories.
101142
I had Ubuntu 16.04 but when I upgraded it to 17.04, during the process brackets editor was removed, and now I can't install it.  $ sudo apt install brackets   Reading package lists... Done  Building dependency tree  Reading state information...  Done You might want to run 'apt --fix-broken install' to correct these.  The following packages have unmet dependencies:   brackets :     Depends: libpango1.0-0 (&gt;= 1.22.0) but it is not installable    teamviewer:i386 :     Depends: libjpeg62:i386 but it is not installable     Depends: libxtst6:i386 but it is not going to be installed  E: Unmet dependencies.  Try 'apt --fix-broken install' with no packages (or specify a solution)
42502
I removed software center from the terminal and after that I tried to install it from synaptic package manager.  Now I get a message saying that it's unable to retrieve a few packages.  Have a look:  W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/k/kdepimlibs/libkmime4_4.7.1+git111001-0ubuntu1_i386.deb   404  Not Found [IP: 91.189.92.170 80] W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/k/kdepimlibs/libkimap4_4.7.1+git111001-0ubuntu1_i386.deb   404  Not Found [IP: 91.189.92.170 80]   W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/a/akonadi/akonadi-server_1.6.1+git110927-0ubuntu1_i386.deb 404  Not Found [IP: 91.189.92.170 80]   ...   W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/k/kdepim-runtime/kdepim-runtime_4.7.1+git111001-0ubuntu1_i386.deb 404  Not Found [IP: 91.189.92.170 80]   I actually was getting report error pop-ups and was irritated with it so removed the software center and after that I never got this error.  Please help me.
92987
I have tried the following:  sudo apt-get install build-essential  Reading package lists... Done Building dependency tree        Reading state information... Done build-essential is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   But when I compile the terminal shows the following:  g++ hello.cpp -o hello The program 'g++' can be found in the following packages:  * g++  * pentium-builder Try: sudo apt-get install &lt;selected package&gt;   What should I do?
122374
I've been using Ubuntu for a few years now, but I just installed Version 16.04, and I've been having a lot of issues. I'm not a command line expert, but I tried to install some software last night, and it is creating issues (and also not working properly).   When I run sudo apt-get -f install, I see the following message:  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following additional packages will be installed:   lua-event lua-expat lua-filesystem lua-sec lua-socket lua5.1 prosody Suggested packages:   lua-zlib lua-dbi-postgresql lua-dbi-mysql lua-dbi-sqlite3 The following packages will be REMOVED:   jitsi-meet-tokens The following NEW packages will be installed:   lua-event lua-expat lua-filesystem lua-sec lua-socket lua5.1 prosody 0 upgraded, 7 newly installed, 1 to remove and 22 not upgraded. 3 not fully installed or removed. Need to get 0 B/413 kB of archives. After this operation, 2,296 kB of additional disk space will be used. Do you want to continue? [Y/n] Y (Reading database ... 176266 files and directories currently installed.) Removing jitsi-meet-tokens (1.0.962-1) ... dpkg: error processing package jitsi-meet-tokens (--remove):  subprocess installed post-removal script returned error exit status 10 Errors were encountered while processing:  jitsi-meet-tokens E: Sub-process /usr/bin/dpkg returned an error code (1)   Can someone help me figure out what I need to do to get this resolved? I'm fine with deleting jitsi, but I'm not sure if that will correct the problem.   Currently there is a red circle with a line through it in the upper right corner that indicates there may be installed packages with unmet dependencies.
114167
Suddenly my Ubuntu stopped playing video. When I open a video, the player suggests that I install  gstreamer1.0-libav. However, it fails to install.  I tried installing it manually, here is the error message:  $ sudo apt-get install gstreamer1.0-libav 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:  gstreamer1.0-libav : Depends: libavcodec54 (&gt;= 6:9.1-1) but it is not going to be installed or                                libavcodec-extra-54 (&gt;= 6:9.13) but it is not going to be installed                       Depends: libavformat54 (&gt;= 6:9.1-1) but it is not going to be installed E: Unable to correct problems, you have held broken packages.