DebianThis forum is for the discussion of Debian Linux.
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.
But instead of an update I get the following result:
Code:
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:
bash : PreDepends: libc6 (>= 2.15) but 2.13-38+deb7u6 is to be installed
E: Unable to correct problems, you have held broken packages.
may help here. I'm also guessing that you already did do that, but for me that's a common error because I'm so fast to get the install, I forget to update the repository first. There are also force options for apt, however if you do that and don't have compatible libraries, then that's bad. I'd look at what it's saying it doesn't have as a dependency and try to install that. The other question I'd try to resolve is whether or not I have bash in the first place.
$ sudo cat /etc/apt/sources.list
#
# deb cdrom:[Debian GNU/Linux 7.0.0 _Wheezy_ - Official Snapshot i386 LIVE/INSTALL Binary 20130505-15:44]/ wheezy main
#deb cdrom:[Debian GNU/Linux 7.0.0 _Wheezy_ - Official Snapshot i386 LIVE/INSTALL Binary 20130505-15:44]/ wheezy main
deb http://ftp.se.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.se.debian.org/debian/ wheezy main
deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main
# wheezy-updates, previously known as 'volatile'
deb http://ftp.se.debian.org/debian/ wheezy-updates main contrib non-free
deb-src http://ftp.se.debian.org/debian/ wheezy-updates main
deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib
#For firefox download
deb http://packages.linuxmint.com debian import
apt-get dist-upgrade is skipped by many people for fear that it does a version upgrade. This is not the case. What it does is upgrade packages that may need new packages installed or some old package removed to work properly.
If you run into problems with the complete upgrade due to not keeping up as you should then you should first try, as root;
Code:
dpkg --configure -a
and then, if that doesn't do the trick and you keep getting the message about broken packages use, again as root;
Code:
apt-get -f install
which will attempt to fix the broken package problem.
A really good idea is to quit using the -y option with any command you use. That is handy for people that know exactly what the problems may be and that are sure they will not have them. As you are having them it would be a really good idea to have all the output available to you for any command you give.
... repository updates...
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
running each command individually gives me successful update, but both upgrade and dist-upgrade end as
Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
bash
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
I get no output at all with
Code:
sudo dpkg --configure -a
And I get the same result as for upgrade and dist-upgrade when running
I know that this thread is somewhat old but the solution is to comment, or remove, the linux mint repository from the apt sources.
You are correct. I solved this about a year later by figuring out that was the problem. I added the line for firefox download and it messed things up.
Forgot to update this thread for anyone else with the same issue.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.