LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-10-2011, 12:54 PM   #1
prickee
LQ Newbie
 
Registered: Oct 2009
Posts: 28

Rep: Reputation: 0
Trying to fix Broken packages -f


Here is what I get:

$ 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:
base-files : PreDepends: awk
base-passwd : Depends: libc6 (>= 2.1) but it is not installed
dpkg : PreDepends: libbz2-1.0 but it is not installed
PreDepends: libc6 (>= 2.6) but it is not installed
PreDepends: libselinux1 (>= 1.32) but it is not installed
PreDepends: zlib1g (>= 1:1.1.4) but it is not installed
PreDepends: coreutils (>= 5.93-1) but it is not installed
PreDepends: xz-utils but it is not installed
man-db : Depends: groff-base (>= 1.18.1.1-15) but it is not installed
Depends: bsdmainutils but it is not installed
Depends: debconf (>= 1.2.0) but it is not installed or
debconf-2.0
Depends: libc6 (>= 2.8) but it is not installed
Depends: libgdbm3 (>= 1.8.3) but it is not installed
Depends: zlib1g (>= 1:1.1.4) but it is not installed
E: Unmet dependencies. Try using -f.

And then:

$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
sensible-utils gcc-4.4-base
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
gcc-4.4-base sensible-utils
The following packages will be REMOVED:
base-files base-passwd dpkg man-db
The following NEW packages will be installed:
gcc-4.4-base sensible-utils
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
base-files base-passwd dpkg
0 upgraded, 2 newly installed, 4 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 128 kB of archives.
After this operation, 10.5 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
?]


In Synaptic I show I have 4 broken packages:
base-files
base-passwd
dpkg
man-db
 
Old 05-10-2011, 02:22 PM   #2
arochester
Member
 
Registered: May 2006
Distribution: Debian
Posts: 614

Rep: Reputation: 98
Have you tried Synaptic>Edit>Fix broken packages?
 
Old 05-10-2011, 06:08 PM   #3
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,037

Rep: Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407
Hm, that looks a little bit of a mess. What did you do to get it into this state? Eg did you try to install packages from unstable on a stable system? Perhaps posting the contents of your /etc/apt/sources.list and/or /etc/apt/sources.list.d/*.list could help too.

Evo2.
 
Old 05-10-2011, 08:56 PM   #4
countach74
Member
 
Registered: Feb 2011
Distribution: Ubuntu 10.04, Debian Squeeze
Posts: 46

Rep: Reputation: 8
Definitely looks like a repository configuration problem. I agree, post your sources.list and any files in sources.list.d.
 
Old 05-10-2011, 09:51 PM   #5
prickee
LQ Newbie
 
Registered: Oct 2009
Posts: 28

Original Poster
Rep: Reputation: 0
I used synaptic and tried to fix and I get this error E: Could not perform immediate configuration on 'libc6'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)

When I select for removal I get
Removing this package may render the system unusable.
Are you sure you want to do that?


###Debian Squeeze sources.list###

##Debian Official DVD
# deb cdrom:[Debian GNU/Linux 6.0.1a _Squeeze_ - Official i386 DVD Binary-1 20110322-15:11]/ squeeze contrib main
# deb cdrom:[Debian GNU/Linux 6.0.1a _Squeeze_ - Official i386 DVD Binary-1 20110322-15:11]/ squeeze contrib main

##Debian.org:
deb http://http.us.debian.org/debian/ squeeze main contrib non-free
deb http://ftp.us.debian.org/debian/ squeeze main contrib non-free
deb http://ftp.debian.org/debian squeeze-updates main

##Debian security updates:
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free

##Proposed Updates for the next point release
deb http://http.us.debian.org/debian/ squeeze-proposed-updates main contrib non-free

##Multimedia
deb ftp://ftp.debian-multimedia.org stable main non-free
deb ftp://ftp.debian-multimedia.org squeeze main non-free

##Wine repositories:
deb http://www.lamaresh.net/apt squeeze main
## wget -O - http://www.lamaresh.net/apt/key.gpg | apt-key add - ##

##Squeeze (stable) Kirya
deb http://packages.kirya.net/debian/ squeeze main contrib non-free
deb-src http://packages.kirya.net/debian/ squeeze main contrib non-free
deb http://packages.kirya.net/debian/ squeeze-backports main contrib non-free
deb-src http://packages.kirya.net/debian/ squeeze-backports main contrib non-free

##Debian Mozilla Team
deb http://mozilla.debian.net/ squeeze-backports iceweasel-4.0

##Cairo-Dock
deb http://download.tuxfamily.org/glxdock/repository/debian stable cairo-dock

##Debian Squeeze Backports
deb http://backports.debian.org/debian-backports squeeze-backports main

##Testing
deb http://ftp.debian.org/debian/ testing main contrib non-free
deb-src http://ftp.debian.org/debian/ testing main contrib non-free
deb http://security.debian.org/ testing/updates main contrib
 
Old 05-10-2011, 09:58 PM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,037

Rep: Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407
You have both stable and testing in your sources.list ... that can be a problem.

I generally don't run mixed systems like that, but it is my understanding that if you want to you need to be a little bit careful about what is in your /etc/apt/apt.conf. I think you might need a line like:

Code:
APT::Default-Release "stable";
Anyone with experience running mixed systems care to comment?

Evo2.
 
Old 05-10-2011, 10:06 PM   #7
prickee
LQ Newbie
 
Registered: Oct 2009
Posts: 28

Original Poster
Rep: Reputation: 0
I comment out testing as I agree mixed system not sure if it's a good idea. My curiosity...
Nothing in apt.conf
Did update&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:
base-files : PreDepends: awk
base-passwd : Depends: libc6 (>= 2.1) but it is not installed
dpkg : PreDepends: libbz2-1.0 but it is not installed
PreDepends: libc6 (>= 2.6) but it is not installed
PreDepends: libselinux1 (>= 1.32) but it is not installed
PreDepends: zlib1g (>= 1:1.1.4) but it is not installed
PreDepends: coreutils (>= 5.93-1) but it is not installed
PreDepends: xz-utils but it is not installed
man-db : Depends: groff-base (>= 1.18.1.1-15) but it is not installed
Depends: bsdmainutils but it is not installed
Depends: debconf (>= 1.2.0) but it is not installed or
debconf-2.0
Depends: libc6 (>= 2.8) but it is not installed
Depends: libgdbm3 (>= 1.8.3) but it is not installed
Depends: zlib1g (>= 1:1.1.4) but it is not installed
E: Unmet dependencies. Try using -f.

Last edited by prickee; 05-10-2011 at 10:14 PM.
 
Old 05-10-2011, 10:22 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866
You already have a mixed system, commenting out the testing repository will not help here. I would recommend to backup your data, then re-install and do not mix repositories unless you know exactly what you are doing and how to fix things when it breaks.
 
1 members found this post helpful.
Old 05-10-2011, 11:07 PM   #9
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,037

Rep: Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407
Hi,

I think a reinstall may not be required, instead you may be able to just downgrade to stable.

See for example:
http://www.debian.org/doc/manuals/re...cy_downgrading

Note that in this example the downgrade is from unstable to testing, where you want to downgrade from testing to stable.

HTH,

Evo2.
 
1 members found this post helpful.
Old 05-10-2011, 11:50 PM   #10
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I thought backports wasn't available in squeeze.
Because the op has backports in sources.list
 
Old 05-10-2011, 11:56 PM   #11
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866
Backports is available for Squeeze, like it is for every stable version.
 
1 members found this post helpful.
Old 05-11-2011, 12:42 AM   #12
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I'll have to add it back to my repos then, I was getting errors on my machine when I had it last.
 
Old 05-11-2011, 07:20 AM   #13
prickee
LQ Newbie
 
Registered: Oct 2009
Posts: 28

Original Poster
Rep: Reputation: 0
So I believe I'm going to try and downgrade first. Other than that how is my source list?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fix broken packages ervini Linux Mint 1 12-18-2010 07:59 PM
Fix broken packages ervini LQ Suggestions & Feedback 1 12-18-2010 06:53 PM
could not apply changes. Fix broken packages first amritpalpathak Linux - Software 2 04-24-2010 12:32 AM
[SOLVED] How do you fix broken libraries? NightSky Slackware 30 01-12-2008 05:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration