Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello Guys I got some issues thats driving me crazy.
I have unbuntu 12 installed with kde desktop installed ontop of gnome.
I have an issue when i try to install certain packages I get this same message.
Code:
udo apt-get install php5-cli
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.
bamfdaemon : Depends: libglib2.0-0 (>= 2.35.9) but 2.34.1-1ubuntu1 is to be installed
indicator-appmenu : Depends: libbamf3-0 (>= 0.3.0) but it is not going to be installed
libnih1 : PreDepends: libc6 (< 2.16) but 2.17-0ubuntu5 is to be installed
php5-cli : Depends: php5-common (= 5.4.6-1ubuntu1.4) but it is not going to be installed
unity : Depends: libbamf3-0 (>= 0.3.0) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
when i try apt-get -f install
Code:
sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies.
bamfdaemon : Depends: libglib2.0-0 (>= 2.35.9) but 2.34.1-1ubuntu1 is installed
indicator-appmenu : Depends: libbamf3-0 (>= 0.3.0) but it is not installed
libnih1 : PreDepends: libc6 (< 2.16) but 2.17-0ubuntu5 is installed
unity : Depends: libbamf3-0 (>= 0.3.0) but it is not installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
I have done apt-get upgrade / update / clean / autoclean etc etc
here is my list of repositories
Code:
#############################################################
################### OFFICIAL UBUNTU REPOS ###################
#############################################################
###### Ubuntu Main Repos
deb http://uk.archive.ubuntu.com/ubuntu/ quantal main universe restricted multiverse
deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal main universe restricted multiverse
###### Ubuntu Update Repos
deb http://uk.archive.ubuntu.com/ubuntu/ quantal-security main universe restricted multiverse
deb http://uk.archive.ubuntu.com/ubuntu/ quantal-updates main universe restricted multiverse
deb http://uk.archive.ubuntu.com/ubuntu/ quantal-proposed main universe restricted multiverse
deb http://uk.archive.ubuntu.com/ubuntu/ quantal-backports main universe restricted multiverse
deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal-security main universe restricted multiverse
deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal-updates main universe restricted multiverse
deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal-proposed main universe restricted multiverse
deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal-backports main universe restricted multiverse
##############################################################
##################### UNOFFICIAL REPOS ######################
##############################################################
###### 3rd Party Binary Repos
#### Google Chrome Browser - http://www.google.com/linuxrepositories/
## Run this command: wget -q https://dl-ssl.google.com/linux/linux_signing_key.pub -O- | sudo apt-key add -
deb http://dl.google.com/linux/chrome/deb/ stable main
#### Pidgin - http://pidgin.im
## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A1F196A8
deb http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu quantal main
#### Spotify for Linux Preview - http://www.spotify.com/
## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4E9CFF4E
deb http://repository.spotify.com stable non-free
#### Tor: anonymity online - http://www.torproject.org/
## Run this command: gpg --keyserver subkeys.pgp.net --recv 886DDD89 && gpg --export --armor 94C09C7F | sudo apt-key add -
deb http://deb.torproject.org/torproject.org quantal main
#### VirtualBox - http://www.virtualbox.org
## Run this command: wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
deb http://download.virtualbox.org/virtualbox/debian quantal contrib
#### Wine - https://launchpad.net/~ubuntu-wine/+archive/ppa/
## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F9CB8DB0
deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu quantal main
####### 3rd Party Source Repos
#### Pidgin (Source) - http://pidgin.im
## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A1F196A8
deb-src http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu quantal main
#### Tor: anonymity online (Source) - http://www.torproject.org/
## Run this command: gpg --keyserver subkeys.pgp.net --recv 886DDD89 && gpg --export --armor 94C09C7F | sudo apt-key add -
deb-src http://deb.torproject.org/torproject.org quantal main
#### Wine (Source) - https://launchpad.net/~ubuntu-wine/+archive/ppa/
## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F9CB8DB0
deb-src http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu quantal main
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900
Rep:
In your sources.list you have a few thigns that could cause this problem. I would change this
Code:
#############################################################
################### OFFICIAL UBUNTU REPOS ###################
#############################################################
###### Ubuntu Main Repos
deb http://uk.archive.ubuntu.com/ubuntu/ quantal main universe restricted multiverse
deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal main universe restricted multiverse
###### Ubuntu Update Repos
deb http://uk.archive.ubuntu.com/ubuntu/ quantal-security main universe restricted multiverse
deb http://uk.archive.ubuntu.com/ubuntu/ quantal-updates main universe restricted multiverse
deb http://uk.archive.ubuntu.com/ubuntu/ quantal-proposed main universe restricted multiverse
deb http://uk.archive.ubuntu.com/ubuntu/ quantal-backports main universe restricted multiverse
deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal-security main universe restricted multiverse
deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal-updates main universe restricted multiverse
deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal-proposed main universe restricted multiverse
deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal-backports main universe restricted multiverse
to this
Code:
#############################################################
################### OFFICIAL UBUNTU REPOS ###################
#############################################################
###### Ubuntu Main Repos
deb http://uk.archive.ubuntu.com/ubuntu/ quantal main universe restricted multiverse
deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal main universe restricted multiverse
###### Ubuntu Update Repos
deb http://uk.archive.ubuntu.com/ubuntu/ quantal-security main universe restricted multiverse
deb http://uk.archive.ubuntu.com/ubuntu/ quantal-updates main universe restricted multiverse
#deb http://uk.archive.ubuntu.com/ubuntu/ quantal-proposed main universe restricted multiverse
#deb http://uk.archive.ubuntu.com/ubuntu/ quantal-backports main universe restricted multiverse
deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal-security main universe restricted multiverse
deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal-updates main universe restricted multiverse
deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal-proposed main universe restricted multiverse
deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal-backports main universe restricted multiverse
at the very least but I would even do this
Code:
#############################################################
################### OFFICIAL UBUNTU REPOS ###################
#############################################################
###### Ubuntu Main Repos
deb http://uk.archive.ubuntu.com/ubuntu/ quantal main universe restricted multiverse
#deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal main universe restricted multiverse
###### Ubuntu Update Repos
deb http://uk.archive.ubuntu.com/ubuntu/ quantal-security main universe restricted multiverse
deb http://uk.archive.ubuntu.com/ubuntu/ quantal-updates main universe restricted multiverse
#deb http://uk.archive.ubuntu.com/ubuntu/ quantal-proposed main universe restricted multiverse
#deb http://uk.archive.ubuntu.com/ubuntu/ quantal-backports main universe restricted multiverse
#deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal-security main universe restricted multiverse
#deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal-updates main universe restricted multiverse
#deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal-proposed main universe restricted multiverse
#deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal-backports main universe restricted multiverse
What does this do? In your original sources.list you have proposed updates and backports listed. Proposed updates are not fully tested and backports may not be complete yet. Comment these out at least, I would even comment out all the deb-src but thats just me, and then apt-get update to reset the package lists and then try installing what you want to install.
#############################################################
################### OFFICIAL UBUNTU REPOS ###################
#############################################################
###### Ubuntu Main Repos
deb http://uk.archive.ubuntu.com/ubuntu/ quantal main universe restricted multiverse
#deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal main universe restricted multiverse
###### Ubuntu Update Repos
deb http://uk.archive.ubuntu.com/ubuntu/ quantal-security main universe restricted multiverse
deb http://uk.archive.ubuntu.com/ubuntu/ quantal-updates main universe restricted multiverse
#deb http://uk.archive.ubuntu.com/ubuntu/ quantal-proposed main universe restricted multiverse
#deb http://uk.archive.ubuntu.com/ubuntu/ quantal-backports main universe restricted multiverse
#deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal-security main universe restricted multiverse
#deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal-updates main universe restricted multiverse
#deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal-proposed main universe restricted multiverse
#deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal-backports main universe restricted multiverse
Still have the same issue it always shows the same dependencies.
Code:
sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies.
bamfdaemon : Depends: libglib2.0-0 (>= 2.35.9) but 2.34.1-1ubuntu1 is installed
indicator-appmenu : Depends: libbamf3-0 (>= 0.3.0) but it is not installed
libnih1 : PreDepends: libc6 (< 2.16) but 2.17-0ubuntu5 is installed
unity : Depends: libbamf3-0 (>= 0.3.0) but it is not installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900
Rep:
Is the package in the Ubuntu repository or in one of the extra repositoris you have listed? If it is in the Ubuntu repository comment the others #####Unofficial###### out by placing a # in front of each line.
Then
Code:
sudo apt-get update
apt-get upgrade
apt-get install <package name here>
Is the package in the Ubuntu repository or in one of the extra repositoris you have listed? If it is in the Ubuntu repository comment the others #####Unofficial###### out by placing a # in front of each line.
Then
Code:
sudo apt-get update
apt-get upgrade
apt-get install <package name here>
I get this when i run upgrade
Code:
sudo apt-get upgrade
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.
bamfdaemon : Depends: libglib2.0-0 (>= 2.35.9) but 2.34.1-1ubuntu1 is installed
indicator-appmenu : Depends: libbamf3-0 (>= 0.3.0) but it is not installed
libnih1 : PreDepends: libc6 (< 2.16) but 2.17-0ubuntu5 is installed
unity : Depends: libbamf3-0 (>= 0.3.0) but it is not installed
E: Unmet dependencies. Try using -f.
im not sure about what repository the package is in i dont know how to check?
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900
Rep:
Quote:
Originally Posted by MrPromoter
I get this when i run upgrade
Code:
sudo apt-get upgrade
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.
bamfdaemon : Depends: libglib2.0-0 (>= 2.35.9) but 2.34.1-1ubuntu1 is installed
indicator-appmenu : Depends: libbamf3-0 (>= 0.3.0) but it is not installed
libnih1 : PreDepends: libc6 (< 2.16) but 2.17-0ubuntu5 is installed
unity : Depends: libbamf3-0 (>= 0.3.0) but it is not installed
E: Unmet dependencies. Try using -f.
im not sure about what repository the package is in i dont know how to check?
You're not really giving much information as to what you're doing, either that or you're not doing everything suggested and you are telling me everything you are doing. Please follow the suggestions as given and respond to each point so I'm not chasing my tail trying to help you.
Your output tells me, I may be wrong, that your "Unofficial" repositories are possibly causing this problem. I would comment the "Unofficial" lines out. Do this by placing a # infront of all the "Unofficial" deb lines. I would then
Code:
sudo apt-get update
sudo apt-get upgrade
If you still get errors then install the packages that are not installed. For example
Code:
unity : Depends: libbamf3-0 (>= 0.3.0) but it is not installed
I would install libbamf3-0. Do this process 1 step at a time for each error. Your other option is to
I have tried everything you have suggest. As for what I am doing when I try to install any package via apt-get i get all them errors.
I have now removed all repos but
Code:
##############################################################
################### OFFICIAL UBUNTU REPOS ###################
#############################################################
###### Ubuntu Main Repos
deb http://uk.archive.ubuntu.com/ubuntu/ quantal main universe restricted multiverse
###### Ubuntu Update Repos
deb http://uk.archive.ubuntu.com/ubuntu/ quantal-security main universe restricted multiverse
deb http://uk.archive.ubuntu.com/ubuntu/ quantal-updates main universe restricted multiverse
When I run update it updates fine but when I run upgrade I get the same errors
Code:
sudo apt-get upgrade
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.
bamfdaemon : Depends: libglib2.0-0 (>= 2.35.9) but 2.34.1-1ubuntu1 is installed
indicator-appmenu : Depends: libbamf3-0 (>= 0.3.0) but it is not installed
libnih1 : PreDepends: libc6 (< 2.16) but 2.17-0ubuntu5 is installed
unity : Depends: libbamf3-0 (>= 0.3.0) but it is not installed
E: Unmet dependencies. Try using -f.
I also get this same message when I run sudo apt-get -f install
I have also tried to install all packages manually only to get a similar message as demonstrated here
Code:
sudo apt-get install libbamf3-0
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.
bamfdaemon : Depends: libglib2.0-0 (>= 2.35.9) but 2.34.1-1ubuntu1 is to be installed
libbamf3-0 : Depends: bamfdaemon (= 0.3.6-0ubuntu2) but 0.4.0daily13.04.03-0ubuntu1 is to be installed
libnih1 : PreDepends: libc6 (< 2.16) but 2.17-0ubuntu5 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
followed by the sudo apt-get install -f
Code:
sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies.
bamfdaemon : Depends: libglib2.0-0 (>= 2.35.9) but 2.34.1-1ubuntu1 is installed
indicator-appmenu : Depends: libbamf3-0 (>= 0.3.0) but it is not installed
libnih1 : PreDepends: libc6 (< 2.16) but 2.17-0ubuntu5 is installed
unity : Depends: libbamf3-0 (>= 0.3.0) but it is not installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
#############################################################
################### OFFICIAL UBUNTU REPOS ###################
#############################################################
###### Ubuntu Main Repos
deb http://uk.archive.ubuntu.com/ubuntu/ quantal main universe restricted multiverse
#deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal main universe restricted multiverse
###### Ubuntu Update Repos
deb http://uk.archive.ubuntu.com/ubuntu/ quantal-security main universe restricted multiverse
deb http://uk.archive.ubuntu.com/ubuntu/ quantal-updates main universe restricted multiverse
deb http://uk.archive.ubuntu.com/ubuntu/ quantal-proposed main universe restricted multiverse
deb http://uk.archive.ubuntu.com/ubuntu/ quantal-backports main universe restricted multiverse
these are my current repose im not sure which would be conflicting?
also how to fix the packages issue that you just mentioned im a bit of a linux newbie
Your libc6 is from raring (probably seemed like a good idea at the time, right?), so your quantal install is now hideously broken.
Probably try to upgrade fully to raring, or try to downgrade libc6 (and whatever else you "upgraded") (good luck!), or (best/quickest idea) reinstall.
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900
Rep:
Quote:
Originally Posted by MrPromoter
Code:
#############################################################
################### OFFICIAL UBUNTU REPOS ###################
#############################################################
###### Ubuntu Main Repos
deb http://uk.archive.ubuntu.com/ubuntu/ quantal main universe restricted multiverse
#deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal main universe restricted multiverse
###### Ubuntu Update Repos
deb http://uk.archive.ubuntu.com/ubuntu/ quantal-security main universe restricted multiverse
deb http://uk.archive.ubuntu.com/ubuntu/ quantal-updates main universe restricted multiverse
deb http://uk.archive.ubuntu.com/ubuntu/ quantal-proposed main universe restricted multiverse
deb http://uk.archive.ubuntu.com/ubuntu/ quantal-backports main universe restricted multiverse
these are my current repose im not sure which would be conflicting?
also how to fix the packages issue that you just mentioned im a bit of a linux newbie
They were not the repositories you used when you started the thread. You had many more and they had different requirements, that has caused your system to to have conflicts.
It is fixable, using aptitude, but I agree with descendant_command the quickest way to sort this out would be to reinstall Quantal or the upgrade fully to the next version which will pull in newer packages. Be very aware that dist-upgrade of a broken system, any system actually, can sometimes not work so youa re just better off biting the bullet and do a clean (new) install of whatever version (supported and preferably an LTS) version of Ubuntu you want to use.
Your libc6 is from raring (probably seemed like a good idea at the time, right?), so your quantal install is now hideously broken.
Probably try to upgrade fully to raring, or try to downgrade libc6 (and whatever else you "upgraded") (good luck!), or (best/quickest idea) reinstall.
Im not really sure what you mean by raring? how to upgrade fully to raring? or what should i search for on google. I dont really want to reinstall.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.