[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

dpkg disaster recovery



Hi,

Perhaps someone could help with my problem:

I run potato, but wanted to upgrade the whois from the stable whois_4.4.14.deb to the unstable whois_4.5.19_i386.deb.  In order to achieve this, I ran the following commands (to meet the required dependencies):

% dpkg -i libc6_2.2.5-1_i386.deb
% dpkg -i whois_4.5.19_i386.deb

All very well.  But now it starts to go wrong: apt-get informs me that locales has unmet dependecies, so I update to the newer version - all the time checking http://www.debian.org/distrib/packages for dependencies, but in reality just digging myself into a hole :(

So, I continue:

% dpkg -i locales_2.2.5-1_all.deb

but this won't work because it requires a newer version of libc6-dev.  So I decide:  enough.  Just reinstall the stable packages and to hell with whois - it's just getting too messy and I only wanted to update my whois.

So I try:
% dpkg -i whois_4.4.14.deb
% dpkg -i locales_2.1.3-19.deb
dpkg: `ldconfig' not found on PATH.
dpkg: 1 expected program(s) not found on PATH.
NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
% env
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin
% dpkg -l ldconfig
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
un  ldconfig       <none>         (no description available)

I also tried:

% dpkg -i libc6_2.1.3-19.deb

but get the same problem.

If I try doing an upgrade:

% apt-get dist-upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these.
Sorry, but the following packages have unmet dependencies:
  libc6-dev: Depends: libc6 (= 2.1.3-20) but 2.1.3-19 is installed
E: Unmet dependencies. Try using -f.
% apt-get -f install
Building Dependency Tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libc6 locales 
2 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 packages not fully installed or removed.
Need to get 0B/4185kB of archives. After unpacking 0B will be used.
Do you want to continue? [Y/n] 
dpkg: `ldconfig' not found on PATH.
dpkg: 1 expected program(s) not found on PATH.
NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
E: Sub-process /usr/bin/dpkg returned an error code (2)

So, finally, just to let you know where we're up to:

% dpkg -l whois libc6 locales
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name                 Version              Description
+++-====================-====================-========================================================
ii  whois                4.4.14               whois client
iF  libc6                2.1.3-19             GNU C Library: Shared libraries and Timezone data
iU  locales              2.1.3-19             GNU C Library: National Language (locale) data [binary]

So does anyone have any ideas how I get out of this self-made mess?

Help would be greatly appreciated!

kar



Reply to: