The simple way to fix this error is to update the package database, clean out the package cache, and download-and-reinstall the newer version. After you install the package with the --ignore-depends option, go and edit the /var/lib/dpkg/status file, and remove whatever dependency you think is not needed. Your example just has aptitude stopping installation. Try 'apt --fix-broken install' with no packages … When it says that it is not possible (and issues a message like in the question), then you should trust it.  so you can revert back any changes in case something goes wrong. This can often be successful even when apt is unable to find a solution. And then try to install package1. $ sudo apt install -f. Congratulation now you have fixed the broken package issue on Ubuntu and Debian. Note: All commands asked to be run must be run in the terminal, which can be opened by either Ctrl+Alt+T or searching for terminal in the dash. Hit Alt+F2 and run software-properties-gtk. This can be counter-productive in some cases, This will remove all cached packages belonging to the folder /var/cache/apt/archives/ and /var/cache/apt/archives/partial except the .lock files. There are many scenarios why this can happen and one has to investigate all options and try to solve the preconditions that lead to this error. So use this command. Aptitude's conflict resolver will walk you through the possible combinations of installed/removed/upgraded/etc packages that satisfy your requested actions without conflict. PPA Purge does exactly that. To subscribe to this RSS feed, copy and paste this URL into your RSS reader. Then finally, call the apt-get install: This rarely happened during my long years of linux use, but I found myself using this approach seldomly and succeeded. I'd upgraded my Debian Lenny to Squeeze, and I couldn't for the life of me figure out why PHP5, Apache, MySQL etc. The following packages have unmet dependencies: libavdevice-dev : Depends: libavdevice58 (= 7:4.3.1-4ubuntu1) but it is not going to be installed E: Unmet dependencies. As an Ubuntu user, situations don't normally arise that require you to investigate why a particular package is being installed or causing a conflict, but it's almost inevitable as you use the system more. Done The following packages were automatically installed and are no longer required: libfont-freetype-perl libfontenc1 libgmp3c2 libgsf-1-114 libgsf-1-common libpython2.6 libxcb-render-util0 libxfont1 mysql-client-core-5.5 xfonts-encodings xfonts-utils Use 'apt-get autoremove' to remove them. The repositories do include package2 in a version >= 1.8 but the package manager still wants to install an older version (1.7.5). If 'ppa-purge' command fails for some reason, you can't run 'ppa-purge' again unless you re-enable the PPA (To enable the PPA follow the same steps as disabling a PPA and Check the both lines of a particular PPA to enable it). It will probably give some suggestions about removing and installing packages, do what seems reasonable. Usually the best 1st step to resolving this is to identify the source of & . To install apt-rdpends, open up a terminal window and issue the command:Once the installation completes, you're ready to start using the tool. and see if it fixes the issue. The second one I know is: God! The thing is that the package manager (APT) tries to solve all these dependencies automatically if it is possible. Here's my advice. Using apt-get clean, apt-get autoclean, apt-get autoremove, apt-get upgrade, apt-get update, apt-get -u dist-upgrade, etc. @jrg I already have that in my answer... does every answer need to have the same thing? apt-get was no help at all. I'm attempting to create a, Actually "the exact package name", while not relevant in your question, is extremely relevant to any individual's issue in this regard. You can lock yourself out of the system, block critical services etc. It only takes a minute to sign up. These answers so far are focused on how to help the system automagically resolve such an issue, mostly hoping that it resolves itself, but not focused on understanding how to investigate dependencies. ppa-purge. Upgrade: Downloads & installs any newer versions of your installed packages. 4. Problem solved! You should keep your system up-to-date, only use trusted PPAs, and back up when everything is working properly so you can restore later. Then reinstall any needed packages. Top notch answer! Why does the Bible put the evening before the morning at the end of each day that God worked in Genesis chapter one? You can use it to try and install your package with it, instead of apt-get, but first you need to install aptitude. BTW, you have a typo in --add-architecture, and you should add a reminder to run apt-get upgrade after --add-architecture. As HP Acquires the Brand for a Big Sum. Occasionally, when I'm installing stuff, I get an error like the following: APT is a package management system for Debian and other Linux distributions based on it, such as Ubuntu. sudo apt-get install -f, 5.Purge the recently added ppa using ppa-purge This is probably the cleanest solution, and sometimes can be faster to do. The following method will work if the program that you install this library, for … When removing packages from your system with apt-get remove or apt-get purge, the package target will be removed. So I tried to remove them via the terminal (sudo apt-get check). (Beware, it might destroy your config files, so back them up!). //]]> root@host:~# apt-get autoremove. You'll be asked to save a tar.gz file with a dialog similar to the one below. Why don't currents due to revolution of electrons add up? Apt will attempt to correct broken dependencies. You can either disable, remove or purge them. Here you can also add and remove PPAs. At this point, you cannot really remove Calligra, because the package … Press simultaneously the Alt, Ctrl and T on your keyboard to open a Terminal. The following information may help to resolve the situation: The following packages have unmet dependencies: libgazebo9-dev : Depends: libgazebo9 (= 9.10.0-1~bionic) but it is not going to be installed Depends: gazebo9-plugin-base (= 9.10.0-1~bionic) E: Unable to correct problems, you have held broken packages. package2 has to be available in version >= 1.8, The package manager checked all repositories and only found version 1.7.5-1ubuntu1 that could be installed, which it won't do because it is < 1.8, open software center ,and try to install any software , If the following dialog box appeared ,press on the repair button ,and wait. How do I resolve unmet dependencies after adding a PPA? Done apt --fix-broken install. Disabling a PPA means no more updates for the packages installed from that PPA. The following packages have unmet dependencies: nginx-full: Depends: nginx-common (= 1.0.4-1ppa1~lucid) but it is not going to be installed E: Unmet dependencies. Instead of using sudo apt-get install PACKAGENAME, where PACKAGENAME is the package you’re trying to install with the apt system, use sudo apt-get install -f. The -f parameter will attempt to correct a system which has broken dependencies, after which you’ll be able to install the package in question. Held packages are actually held because there are dependency problems and conflicts which apt can’t solve. Even though there are quite a few methods above, you should also know that it’s always better to prevent such issues. Does the industry continue to produce outdated architecture CPUs with leading-edge process? Sometimes the layers of dependencies can seem overwhelming, but the concept is simple and key to understanding how software is installed/uninstalled in an Ubuntu system. : Depends: (= version) but this-version is to be installed. or. didn't want to install. remove 3rd party PPAs. For the most part, APT is easy to use for installing, removing, and updating packages. What is the Unknown (0) process with 232 threads on my iPhone? However, if you’ve forgotten to do these things, use the methods above to fix your issue, and use the prevention methods to make sure you don’, How to Fix Unmet Dependencies Error on Ubuntu. Package manager has a bug in the dependency resolution code. yes,in most cases it resolves the dependencies. At last I found there's a dependency chain like this: For the first 3 packages, apt-get log told me ' is not going to be installed', but for the last package, it shows 'libaprutil1-ldap : Depends: libaprutil1 (= 1.3.9+dfsg-3build1) but 1.3.9+dfsg-3ubuntu0.10.10.1 is to be installed'. Please do not enable the Proposed Updates as they are meant for testing/developers. And by the way, with -P option, it will purge (remove) the config-files of the selected package. apt-get autoclean clears out the local repository of retrieved package files, but unlike apt-get clean, it only removes package files that can no longer be downloaded, and are largely useless. So how can we avoid this from happening in the first place? There is NO single right answer for this question and there is NO simple answer. Is it really legal to knowingly lie in public as a public figure? Personal Package Archives are repositories that are hosted on the Launchpad, and are used to upgrade or install packages that aren’t usually available in the official repositories of Ubuntu. Package manager has access to out-dated information about packages and therefor cannot find a solution. Ask Ubuntu works best with JavaScript enabled, Start here for a quick overview of the site, Detailed answers to any questions you might have, Discuss the workings and policies of this site, Learn more about Stack Overflow the company, Learn more about hiring developers or posting ads with us, Forget the exact package name. It's what I needed to install 32-bit Wine. This seems to have been overlooked in the answers, most of which are quite good otherwise. All the repositories that you have access to don't have package2 in version >= 1.8, so you will have to find a repository that does. If you're trying to install a package which depends on many i386 packages, the above stated dependency error also would be caused if you fail to add i386 architecture by running sudo dpkg --add-architecure i386 command. Just be very careful. No matter the reasons for the problem, you can always setup for manual compilation and build the needed package and all of it's dependencies in the exact needed versions from source. You can use PPAs to install or upgrade packages that are not available in the official Ubuntu repositories. (Synaptic is also available in Ubuntu.). "': apt-get autoclean is the key in this solution. I failed to install apache2 in ubuntu 10.10. If you are not able to find a repository with versions >=1.8 then you might have to build and install package2 from source. Not sure why this was downvoted. 7 Also make sure you have all the official repositories enabled (In Software Sources). Error The following packages have unmet dependencies has plagued Ubuntu users for a while now, and there are more and more sightings of the error on various versions of Ubuntu. Atleast one of these methods should work for you, 1. For most cases,installing the package through aptitude will resolve unmet dependencies.By default aptitude package was not installed on your pc.So first install it by running. After following this guide, I found that somehow in software-properties-gtk, the box for the 'main' repos had been unchecked! Choose a better server fixed it for me. ->Make sure all the repositories are checked, click on the top right icon and chose update-available Entry in the menu, 4.type ctrl+alt+t to open terminal and type How to compensate students who face technical issues in online exams. Look in the other answers. I finally resolved this issue by descending into the dependency tree via apt-get install, illustrated with an example below. => The following packages have unmet dependencies: libc-bin : Depends: libc6 (< 2.28) but 2.29-0ubuntu2 is installed libc-dev-bin : Depends: libc6 (< 2.28) but 2.29-0ubuntu2 is installed Xbox Game Pass March Lineup Will Delight Sports Fans, DOOM 3 Comes Back to Haunt in PlayStation VR This Month, Dark Souls Fans on a Meltdown as Leaked Elden Ring Trailer Circulates Online, BioWare Officially Pulls the Plug on Anthem, HyperX Monitors On the Cards? If everything behind the scenes is working as it should, however, it's paramount to understand dependencies. If no 4 is not your case then atleast try to remove the package that is being shown as a broken dependency.Then try again installing.This is reported to have workeed for quite a few people. However, cleaning the package database can fix this, and you can do it with two commands, which I will explain below. This might actually be the best answer in this thread. Superior record of delivering simultaneous large-scale mission critical projects on time and under budget. To disable a PPA: Open Software Center > Edit > Software Sources Or. If the package installed from a PPA doesn't exist in official Ubuntu repositories then using PPA Purge is not recommended, because there's nothing to be downgraded and PPA Purge wouldn't delete it either. Else You may also want to include this warning: "Never ever upgrade your system while PPA is enabled, disable them first and then upgrade" Because, if you upgrade to a PPA version and then that PPA becomes dead, it eventually means you're dead. Packages are held because of dependency conflicts that apt cannot resolve. 9. (Mainly how to fix broken packages in linux), Apache2 installation failed on Ubuntu 12.04. The following packages have unmet dependencies: opera : Depends: gstreamer0.10-plugins-good but it is not installable Recommends: flashplugin-nonfree but it is not going to be installed E: Unmet dependencies. One of the most common causes of unmet dependencies are PPAs, especially when used to upgrade the existing package in Ubuntu repositories. I'm leaving it for now since I don't have a better answer but it is something to think about. Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. your system back to the official Ubuntu packages. Try 'apt-get -f install' with no packages (or specify a solution). This will only involve adding two letters to the apt-get command. Usually the best 1st step to resolving this is to identify the source of pkg1 & pkg2. However, any dependencies that were automatically installed in order to fulfill the installation requirements will remain behind. Remove a package without removing its dependencies. If you decide to add other repositories to sources.list, make sure that the repository is meant to work (and known to work) with Ubuntu. I just want to force install older versions of packages. By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. This command will remove only obsolete or unnecessary packages that no longer exist in the repositories. Done The following package was automatically installed and is no longer required: nsight-compute-2020.3.0 Use 'sudo apt autoremove' to remove it. 3. $ sudo apt remove --dry-run “package name” Fix Broken Packages. After a dozen failed attempts to reset my root password with mysql-server (even via --skip-grant-tables techqiue but yet failed), I finally succeed in 'twisting Linux's arm until it yelled "Uncle! Repositories that are not designed to work with your version of Ubuntu can introduce inconsistencies in your system and might force you to re-install. sudo apt-get autoclean sudo apt-get -f install sudo dpkg --configure -a sudo apt-get -f install If the output is: 0 upgraded, 0 newly installed, 0 to re… Then run this again: sudo apt-get … To install PPA Purge, you could use sudo apt-get install ppa-purge, but considering that the apt is broken, you should use this command in the Terminal (Alt, Ctrl and T simultaneously, then Enter to run): mkdir ppa-purge && cd ppa-purge && wget http://mirror.pnl.gov/ubuntu/pool/universe/p/ppa-purge/ppa-purge_0.2.8+bzr56_all.deb && wget http://mirror.pnl.gov/ubuntu//pool/main/a/aptitude/aptitude_0.6.6-1ubuntu1_i386.deb && sudo dpkg -i ./*.deb.