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 08-08-2007, 02:12 PM   #1
guldo
Member
 
Registered: Aug 2003
Location: Morio Cho
Distribution: debian sid
Posts: 124

Rep: Reputation: 15
can't install anything on lenny


Hello,
after an upgrade, about 10 days ago, I have a messed up system.
If I try to install some package, apt would remove lots of needed packages.
For instance:
Code:
# apt-get -su install spe | grep -E "^Remv.*"
Remv build-essential [11.3]
Remv g++ [4:4.1.1-15]
Remv g++-2.95 [1:2.95.4-27] [libstdc++2.10-dev ]
Remv libstdc++2.10-dev [1:2.95.4-27]
Remv libgtkmm-2.4-dev [1:2.8.8-1]
Remv libglibmm-2.4-dev [2.12.10-0.1]
Remv libsigc++-2.0-dev [2.0.17-2]
Remv g++-4.1 [4.1.1-21] [libstdc++6-4.1-dev ]
Remv libstdc++6-4.1-dev [4.1.1-21]
Remv gedit [2.10.5-2]
Remv gpdf [2.10.0-2]
Remv ipodder [2.1.9-5]
Remv libglade2-dev [1:2.6.0-4]
Remv libgtk2.0-dev [2.8.20-7]
Remv libpango1.0-dev [1.14.8-5]
Remv libxft-dev [2.1.12-2]
Remv libcairo2-dev [1.4.10-1]
Remv libfontconfig1-dev [2.4.2-1.2]
Remv libfreetype6-dev [2.2.1-6]
Remv xlibs-static-dev [6.9.0.dfsg.1-5]
Remv libxv-dev [6.9.0.dfsg.1-5]
Remv libbz2-dev [1.0.3-6]
Remv libxrandr-dev [6.9.0.dfsg.1-5]
Remv libxcursor-dev [1:1.1.8-2]
Remv libxrender-dev [1:0.9.0.2-1]
Remv libexpat1-dev [1.95.8-3.4]
Remv libpng12-dev [1.2.15~beta5-2]
Remv zlib1g-dev [1:1.2.3.3.dfsg-5]
Remv libtool [1.5.22-4]
Remv libncurses5-dev [5.6-3]
Remv libc6-dev [2.5-9+b1]
Remv streamtuner [0.99.99-5] []
Remv python-qt3 [3.15-4] []
Remv python2.3-pyrss2gen [1.0.0-1] [python-pyrss2gen ]
Remv python-xmms [2.06-3.1] []
Remv python-newt [0.51.6-31] []
Remv python-qtext [3.15-4] []
Remv libgnomedb2-3 [1.0.4-8]
Remv libeel2-2 [2.10.1-3]
Remv libgnome-desktop-2 [2.10.2-1]
Remv libpanel-applet2-0 [2.10.2-1]
Remv libgnomeui-0 [2.10.1-1] []
Remv libbonoboui2-0 [2.10.1-1]
Remv libgnome2-0 [2.10.1-1]
Remv libssp0 [4.1.1-21] []
I tried a few packages, and the problem could be related to python... maybe...
Actually, a "# apt-get -su install xmcd" works.

Any clues?
 
Old 08-08-2007, 03:04 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,647

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
post your /etc/apt/sources.list, and, if they exist, /etc/apt/preferences and /etc/apt/apt.conf.
 
Old 08-08-2007, 03:11 PM   #3
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
I recall seeing a bug for apt during a recent upgrade that said apt wanted to remove a bunch of stuff when you attempted an upgrade.. my guess is you installed this buggy version of apt and now have been bitten by that bug...

I would suggest when you get this worked out you install apt-listbugs so that in the future you can dodge issues like this by canceling an update that would prove perilous to your system. ALWAYS review the bug list before upgrading on testing or unstable.. apt-listbugs automates this process for you.

http://bugs.debian.org/cgi-bin/pkgre...t;dist=testing

Code:
Outstanding bugs -- Grave functionality bugs; Unclassified (2 bugs)

    * #431737: Wants to autoremove a lot!
      Package: apt (apt 0.7.3); Severity: grave; Reported by: David <david.maillists@gmail.com>; 35 days old; Modified 8 days ago.
    * #432913: apt segfaults when reading package list
      Package: apt (apt 0.7.3); Severity: grave; Reported by: agarberisoft@aim.com; 26 days old; Modified 14 days ago.

Last edited by farslayer; 08-08-2007 at 03:14 PM.
 
Old 08-08-2007, 04:07 PM   #4
guldo
Member
 
Registered: Aug 2003
Location: Morio Cho
Distribution: debian sid
Posts: 124

Original Poster
Rep: Reputation: 15
Thank you both.

http://guldo.joolo.com/sources.list.txt
http://guldo.joolo.com/preferences.txt

As for the apt version, I have this:
Code:
$ apt-get -v
apt 0.6.46 per linux i386 compilato il Sep 21 2006 10:33:09
Thanks farslayer for the info about apt-listbugs.
 
Old 08-08-2007, 04:23 PM   #5
hitest
Senior Member
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Distribution: Slackware, OpenBSD
Posts: 4,190

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
I always keep a back-up of sources.list in case apt-get breaks.
 
Old 08-08-2007, 04:45 PM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 64
Quote:
Originally Posted by guldo
Thank you both.

http://guldo.joolo.com/sources.list.txt
http://guldo.joolo.com/preferences.txt

As for the apt version, I have this:
Code:
$ apt-get -v
apt 0.6.46 per linux i386 compilato il Sep 21 2006 10:33:09
Thanks farslayer for the info about apt-listbugs.
There is no way your apt should be that old if you are running lenny/testing.

Code:
apt-cache policy apt
apt:
  Installed: 0.7.3
  Candidate: 0.7.3
  Version table:
     0.7.6 0
        600 http://ftp2.de.debian.org sid/main Packages
 *** 0.7.3 0
        990 http://ftp2.de.debian.org testing/main Packages
        100 /var/lib/dpkg/status
You should use apt-get install apt to get a newer version of it and since you posted no /etc/apt/apt.conf file you should create one with at least the first and third line below in my file.

Code:
cat /etc/apt/apt.conf
APT::Default-Release "testing";
APT::Get::Show-Versions "true";
APT::Cache-Limit 20000000;
APT::Get::Purge;
APT::Clean-Installed;
APT::Install-Recommends=False;
Plus you may want to change the preferences file to similar to mine.

Code:
cat /etc/apt/preferences
Package: *
Pin: origin debian-multimedia.org
Pin-Priority: 990

Package: *
Pin: release testing
Pin-Priority: 900

Package: *
Pin: release unstable
Pin-Priority: 600
Bumping the testing score up to the 900 and if you want the Debian Multimedia packages installed over the stock Debian ones all the time then add it in as well. You will want to edit your sources.list and remove the backports line it not applicable to the setup you are running. Then once you have made the changes apt-get update and apt-get -s dist-upgrade to get everything up to date with your lenny/testing distro remove the -s from the command if everything looks like its going alright.
 
Old 08-08-2007, 05:31 PM   #7
guldo
Member
 
Registered: Aug 2003
Location: Morio Cho
Distribution: debian sid
Posts: 124

Original Poster
Rep: Reputation: 15
I see...
Thank you very, very much.

A dist-upgrade would remove about 20 libraries, but all are replaced by newer versions, afaics.
A few are removed that I cannot understand:
Code:
Remv libgnome-desktop-2 [2.10.2-1]
Remv libpanel-applet2-0 [2.10.2-1]
Remv libssp0 [4.1.1-21] []
Remv libwxgtk2.4 [2.4.3.1]
I'm not sure I don't need the first three, but I don't think I need them, based on what I read in their description.
Maybe libpanel, but... I'll try and see. (I don't have gnome, anyway)
As for libwxgtk2.4, I think I should be able to replace it with libwxgtk2.4-1 or libwxgtk2.6-0.

Thanks

Last edited by guldo; 08-08-2007 at 05:35 PM.
 
Old 08-08-2007, 06:13 PM   #8
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 64
Quote:
Originally Posted by guldo
I see...
Thank you very, very much.

A dist-upgrade would remove about 20 libraries, but all are replaced by newer versions, afaics.
A few are removed that I cannot understand:
Code:
Remv libgnome-desktop-2 [2.10.2-1]
Remv libpanel-applet2-0 [2.10.2-1]
Those would be for gnome 2.10 the old version since you do not use it then they do not matter.
Quote:
Code:
Remv libssp0 [4.1.1-21] []
Remv libwxgtk2.4 [2.4.3.1]
I'm not sure I don't need the first three, but I don't think I need them, based on what I read in their description.
Maybe libpanel, but... I'll try and see. (I don't have gnome, anyway)
As for libwxgtk2.4, I think I should be able to replace it with libwxgtk2.4-1 or libwxgtk2.6-0.

Thanks
The libspp0 is for C compiler stack protection probably not needed by you and your right the others can replace the wxgtk if needed.
 
Old 08-08-2007, 06:43 PM   #9
guldo
Member
 
Registered: Aug 2003
Location: Morio Cho
Distribution: debian sid
Posts: 124

Original Poster
Rep: Reputation: 15
mmh... I get lots of bug notices, now that I've installed listbugs.
Well, ok, that's what listbugs is supposed to be there for...
I'll take some time to carefully check them over.
(anyway the log file is here)

Thanks anyway,
bye
 
Old 08-09-2007, 04:45 PM   #10
guldo
Member
 
Registered: Aug 2003
Location: Morio Cho
Distribution: debian sid
Posts: 124

Original Poster
Rep: Reputation: 15
I think I have a problem with dist-upgrade... ...
Code:
Preconfiguring packages ...
(Reading database ... 116799 files and directories currently installed.)
Removing dbus-1-dev ...
Removing gedit ...
Removing gpdf ...
/var/lib/dpkg/info/gpdf.prerm: line 5: gconf-schemas: command not found
dpkg: error processing gpdf (--remove):
 subprocess pre-removal script returned error exit status 127
Errors were encountered while processing:
 gpdf
E: Sub-process /usr/bin/dpkg returned an error code (1)
How should I do it?
Removing gpdf alone returns the same error.
:help:
 
Old 08-09-2007, 05:20 PM   #11
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 64
Quote:
Originally Posted by guldo
I think I have a problem with dist-upgrade... ...
Code:
Preconfiguring packages ...
(Reading database ... 116799 files and directories currently installed.)
Removing dbus-1-dev ...
Removing gedit ...
Removing gpdf ...
/var/lib/dpkg/info/gpdf.prerm: line 5: gconf-schemas: command not found
dpkg: error processing gpdf (--remove):
 subprocess pre-removal script returned error exit status 127
Errors were encountered while processing:
 gpdf
E: Sub-process /usr/bin/dpkg returned an error code (1)
How should I do it?
Removing gpdf alone returns the same error.
:help:
On my install that file is in the gconf2 package try seeing if it will let you install this package then do the removal or depending on the use of the gconf-schemas in the file /var/lib/dpkg/info/gpdf.prerm you might be able to edit the file and remove/comment out the line 5 reference to it to let it uninstall/upgrade like you want.

Code:
apt-file search gconf-schemas
gconf2: usr/sbin/gconf-schemas
gconf2: usr/sbin/gconf-schemas
 
Old 08-09-2007, 05:35 PM   #12
guldo
Member
 
Registered: Aug 2003
Location: Morio Cho
Distribution: debian sid
Posts: 124

Original Poster
Rep: Reputation: 15
Actually, I already have gconf2.
Code:
debian:~# cat /var/lib/dpkg/info/gpdf.prerm
#!/bin/sh
set -e
# Automatically added by dh_gconf
if [ "$1" = remove ] || [ "$1" = upgrade ]; then
        gconf-schemas --unregister gpdf.schemas 
fi
# End automatically added section
debian:~#
but I don't have any gconf-shemas command, that is, "locate gconf-schemas" returns nothing.
I can just commented it out, as you suggest. Thanks.

Anyway, I also get an error by apt-listbugs... it cannot download bug information, and asks me to abort the dist-upgrade. I don't.
Yesterday apt-listbugs ran with no problem.
I just hope it's fine, and proceed with the dist-upgrade.

Thank you.
 
Old 08-09-2007, 05:51 PM   #13
guldo
Member
 
Registered: Aug 2003
Location: Morio Cho
Distribution: debian sid
Posts: 124

Original Poster
Rep: Reputation: 15

Code:
Running mktexlsr. This may take some time... done.
Building format(s) --all.
        This may take some time... 
fmtutil-sys failed. Output has been stored in
/tmp/fmtutil.ncnS9370
Please include this file if you report a bug.

dpkg: error processing texlive-base-bin (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of texlive-base:
 texlive-base depends on texlive-base-bin (>= 2007-8); however:
  Package texlive-base-bin is not configured yet.
dpkg: error processing texlive-base (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-fonts-recommended:
 texlive-fonts-recommended depends on texlive-base (>= 2007-7); however:
  Package texlive-base is not configured yet.
dpkg: error processing texlive-fonts-recommended (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-latex-base:
 texlive-latex-base depends on texlive-base (>= 2007-7); however:
  Package texlive-base is not configured yet.
dpkg: error processing texlive-latex-recommended (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive:
 texlive depends on texlive-fonts-recommended (>= 2007-7); however:
  Package texlive-fonts-recommended is not configured yet.
 texlive depends on texlive-latex-recommended (>= 2007-7); however:
  Package texlive-latex-recommended is not configured yet.
 texlive depends on texlive-latex-base (>= 2007-7); however:
  Package texlive-latex-base is not configured yet.
dpkg: error processing texlive (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of tetex-bin:
 tetex-bin depends on texlive (>= 2007-7); however:
  Package texlive is not configured yet.
dpkg: error processing tetex-bin (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 texlive-base-bin
 texlive-base
 texlive-fonts-recommended
 texlive-latex-base
 texlive-latex-recommended
 texlive
 tetex-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)
debian:~#
So it's a fmtutil error.

By looking into "/tmp/fmtutil.ncnS9370" and googling, I found this;
but it does not work anyway:
Code:
debian:~# dpkg -i --force-confmiss /var/cache/apt/archives/texlive-base-bin_2007-12_i386.deb 
(Reading database ... 141861 files and directories currently installed.)
Preparing to replace texlive-base-bin 2007-12 (using .../texlive-base-bin_2007-12_i386.deb) ...
Unpacking replacement texlive-base-bin ...
Setting up texlive-base-bin (2007-12) ...
Running mktexlsr. This may take some time... done.
Building format(s) --all.
        This may take some time... 
fmtutil-sys failed. Output has been stored in
/tmp/fmtutil.eOg10862
Please include this file if you report a bug.

dpkg: error processing texlive-base-bin (--install):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 texlive-base-bin
debian:~#
Any advice?

Thanks
 
Old 08-10-2007, 12:04 AM   #14
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 64
Quote:
Originally Posted by guldo

Code:
Running mktexlsr. This may take some time... done.
Building format(s) --all.
        This may take some time... 
fmtutil-sys failed. Output has been stored in
/tmp/fmtutil.ncnS9370
Please include this file if you report a bug.

dpkg: error processing texlive-base-bin (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of texlive-base:
 texlive-base depends on texlive-base-bin (>= 2007-8); however:
  Package texlive-base-bin is not configured yet.
dpkg: error processing texlive-base (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-fonts-recommended:
 texlive-fonts-recommended depends on texlive-base (>= 2007-7); however:
  Package texlive-base is not configured yet.
dpkg: error processing texlive-fonts-recommended (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-latex-base:
 texlive-latex-base depends on texlive-base (>= 2007-7); however:
  Package texlive-base is not configured yet.
dpkg: error processing texlive-latex-recommended (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive:
 texlive depends on texlive-fonts-recommended (>= 2007-7); however:
  Package texlive-fonts-recommended is not configured yet.
 texlive depends on texlive-latex-recommended (>= 2007-7); however:
  Package texlive-latex-recommended is not configured yet.
 texlive depends on texlive-latex-base (>= 2007-7); however:
  Package texlive-latex-base is not configured yet.
dpkg: error processing texlive (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of tetex-bin:
 tetex-bin depends on texlive (>= 2007-7); however:
  Package texlive is not configured yet.
dpkg: error processing tetex-bin (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 texlive-base-bin
 texlive-base
 texlive-fonts-recommended
 texlive-latex-base
 texlive-latex-recommended
 texlive
 tetex-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)
debian:~#
So it's a fmtutil error.

By looking into "/tmp/fmtutil.ncnS9370" and googling, I found this;
but it does not work anyway:
Code:
debian:~# dpkg -i --force-confmiss /var/cache/apt/archives/texlive-base-bin_2007-12_i386.deb 
(Reading database ... 141861 files and directories currently installed.)
Preparing to replace texlive-base-bin 2007-12 (using .../texlive-base-bin_2007-12_i386.deb) ...
Unpacking replacement texlive-base-bin ...
Setting up texlive-base-bin (2007-12) ...
Running mktexlsr. This may take some time... done.
Building format(s) --all.
        This may take some time... 
fmtutil-sys failed. Output has been stored in
/tmp/fmtutil.eOg10862
Please include this file if you report a bug.

dpkg: error processing texlive-base-bin (--install):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 texlive-base-bin
debian:~#
Any advice?

Thanks
I would just remove the packages here it does not seem to want to take a whole hell of a lot with it when doing so.

Code:
apt-get -s remove texlive-base-bin texlive
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package texlive is not installed, so not removed
The following packages were automatically installed and are no longer required:
   libkpathsea4 (2007-12)
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
   kdegraphics (3.5.7-2)
   kdvi (3.5.7-2)
   texlive-base (2007-10)
   texlive-base-bin (2007-12)
   texlive-fonts-recommended (2007-10)
0 upgraded, 0 newly installed, 5 to remove and 1 not upgraded.
Remv kdegraphics [4:3.5.7-2]
Remv kdvi [4:3.5.7-2]
Remv texlive-fonts-recommended [2007-10]
Remv texlive-base [2007-10]
Remv texlive-base-bin [2007-12]
If you want you can use apt-get -s remove texlive-base-bin texlive > removals.txt to get a list of the removed packages then simply reinstall later.
 
Old 08-11-2007, 12:03 PM   #15
guldo
Member
 
Registered: Aug 2003
Location: Morio Cho
Distribution: debian sid
Posts: 124

Original Poster
Rep: Reputation: 15
Thanks a lot.
I uninstalled everything related to tetex, so I could complete a dist-upgrade.
Now texlive replaces tetex, so I will install texlive as soon as I can.

Thank you,
bye
 
  


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
The state of Lenny dkpw Debian 15 08-10-2007 08:37 PM
ffmpeg on lenny Tom Brown Linux - Software 3 07-28-2007 08:15 PM
Lenny vs Etch kz_chopper Debian 3 07-14-2007 06:51 PM
Apt-get lenny? Bjorne Debian 7 05-17-2007 09:33 AM
hello Im lenny lenny123 Linux - Hardware 2 06-25-2006 08:04 PM


All times are GMT -5. The time now is 03:39 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration