apt-get -f install

FreeBSD, Gentoo, openSUSE, CentOS, Ubuntu, Debian
erpod
Posts: 8
Joined: 2005-08-07 17:56

apt-get -f install

Post by erpod » 2007-03-11 05:12

Nach

apt-get upgrade

bekomme ich ein

Code: Select all

You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
  libc6-dev: Depends: libc6 (= 2.3.2.ds1-22sarge5) but 2.3.2.ds1-22sarge4 is installed
  locales: Depends: glibc-2.3.2.ds1-22sarge5
E: Unmet dependencies. Try using -f.
Der mix-up kommt davon dass ich damals rum experimentiert musste mit sarge5 pkg.
Server ist inswischen in Production, wer kann mit ein kleines rat geben?

apt-get -f install

Code: Select all

Do you want to continue? [Y/n]
(Reading database ... 31291 files and directories currently installed.)
Preparing to replace libc6 2.3.2.ds1-22sarge4 (using .../libc6_2.3.2.ds1-22sarge5_i386.deb) ...
Unpacking replacement libc6 ...
dpkg: error processing /var/cache/apt/archives/libc6_2.3.2.ds1-22sarge5_i386.deb (--unpack):
 trying to overwrite `/usr/share/zoneinfo/Pacific/Palau', which is also in package tzdata
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libc6_2.3.2.ds1-22sarge5_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
hilft nicht

Ich habe versucht :

# apt-get install --reinstall libc6

Hilft nicht

Code: Select all

Reading Package Lists... Done
Building Dependency Tree... Done
Suggested packages:
  glibc-doc
The following packages will be upgraded:
  libc6
1 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
2 not fully installed or removed.
Need to get 0B/5029kB of archives.
After unpacking 262kB of additional disk space will be used.
(Reading database ... 31291 files and directories currently installed.)
Preparing to replace libc6 2.3.2.ds1-22sarge4 (using .../libc6_2.3.2.ds1-22sarge5_i386.deb) ...
Unpacking replacement libc6 ...
dpkg: error processing /var/cache/apt/archives/libc6_2.3.2.ds1-22sarge5_i386.deb (--unpack):
 trying to overwrite `/usr/share/zoneinfo/Pacific/Palau', which is also in package tzdata
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libc6_2.3.2.ds1-22sarge5_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


lucki2
Posts: 427
Joined: 2006-10-03 01:31

Re: apt-get -f install

Post by lucki2 » 2007-03-26 21:29

Hi,

Probier das:

Code: Select all

dpkg -i --force-overwrite /var/cache/apt/archives/libc6_2.3.2.ds1-22sarge5_i386.deb 
...
Wenn dann die Zeitzone von Palau(wo ist das?) nicht mehr stimmt, schrei noch mal...

lucki2
Posts: 427
Joined: 2006-10-03 01:31

Re: apt-get -f install

Post by lucki2 » 2007-03-26 21:42

Nochmal Hi,
damit wir nicht in Probleme kommen wenn die Zeitzone dir wichtig und tatsächlich falsch sein sollte ...
also mit
cp /usr/share/zoneinfo/Pacific/Palau /usr/share/zoneinfo/Pacific/Palau.back
ein backup machen.
dann ... dpkg -i --forceo-verwrite ...
und schliesslich wenn sie falsch ist das backup zurückspielen
mv /usr/share/zoneinfo/Pacific/Palau.back /usr/share/zoneinfo/Pacific/Palau
oder löschen:
rm /usr/share/zoneinfo/Pacific/Palau.back
;)