/ Forside / Teknologi / Operativsystemer / Linux / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Linux
#NavnPoint
o.v.n. 11177
peque 7911
dk 4814
e.c 2359
Uranus 1334
emesen 1334
stone47 1307
linuxrules 1214
Octon 1100
10  BjarneD 875
apt-get kan ikke installere / afinstallere
Fra : Heine Laursen


Dato : 09-09-04 23:10

Systemet er debian unstable.

Det er pakken frozen-buble-data der giver problemet. Jeg har forsøgt at
opdatere frozen bubble. Men dette fejler!


root@sid# apt-get install frozen-bubble-data Reading Package Lists...
Done
Building Dependency Tree... Done
Recommended packages:
frozen-bubble
The following packages will be upgraded:
frozen-bubble-data
1 upgraded, 0 newly installed, 0 to remove and 154 not upgraded. 4 not
fully installed or removed.
Need to get 0B/5155kB of archives.
After unpacking 1651kB of additional disk space will be used. (Reading
database ... 121928 files and directories currently installed.) Preparing
to replace frozen-bubble-data 1.0.0-4 (using
..../frozen-bubble-data_1.0.0-6_all.deb) ... Unpacking replacement
frozen-bubble-data ... mv: cannot stat `/usr/games/frozen-bubble.wav': No
such file or directory dpkg: warning - old post-removal script returned
error exit status 1 dpkg - trying script from the new package instead ...
dpkg: error processing
/var/cache/apt/archives/frozen-bubble-data_1.0.0-6_all.deb (--unpack):
there is no script in the new version of the package - giving up
preinst called with unknown argument `abort-upgrade' dpkg: error while
cleaning up:
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/frozen-bubble-data_1.0.0-6_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1) root@sid#


dpkg -r frozen-bubble-data
forslår at jeg opgradere pakken da den ikke kan afinstalleres så jeg har
prøvet frozen-bubble fra både stable, testing og unstable. Alle 3 fejler
med lignende fejlmeddelse som oven over

Jeg prøver på at installere libavcodec og følgende sker!


root@sid# apt-get install libavcodec1 Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
frozen-bubble-data libfaad2-0 libimlib2
Suggested packages:
imlib2-loaders
The following NEW packages will be installed:
libavcodec1 libfaad2-0 libimlib2
The following held packages will be changed:
frozen-bubble-data
The following packages will be upgraded:
frozen-bubble-data
1 upgraded, 3 newly installed, 0 to remove and 50 not upgraded. 2 not
fully installed or removed.
Need to get 0/6280kB of archives. After unpacking 4846kB of
additional disk space will be used. Do you want to continue? [Y/n] y
(Reading database ... 121905 files and directories currently installed.)
Preparing to replace frozen-bubble-data 1.0.0-4 (using
..../frozen-bubble-data_1.0.0-6_all.deb) ... Unpacking replacement
frozen-bubble-data ... mv: cannot stat `/usr/games/frozen-bubble.wav': No
such file or directory dpkg: warning - old post-removal script returned
error exit status 1 dpkg - trying script from the new package instead ...
dpkg: error processing
/var/cache/apt/archives/frozen-bubble-data_1.0.0-6_all.deb (--unpack):
there is no script in the new version of the package - giving up
preinst called with unknown argument `abort-upgrade' dpkg: error while
cleaning up:
subprocess pre-installation script returned error exit status 1
Selecting previously deselected package libfaad2-0. Unpacking libfaad2-0
(from .../libfaad2-0_2.0.0-sarge0.0_i386.deb) ... Selecting previously
deselected package libimlib2. Unpacking libimlib2 (from
..../libimlib2_1.1.0-12.3_i386.deb) ... Selecting previously deselected
package libavcodec1. Unpacking libavcodec1 (from
..../libavcodec1_1%3a0.4.8-sarge0.0_i386.deb) ... Errors were encountered
while processing:
/var/cache/apt/archives/frozen-bubble-data_1.0.0-6_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Dette medføre så at jeg ikke kan installere pakker. Jeg har aldrig nogen
sinde stødt på sådan en fejl før. Hvordan får jeg fjernet/repereret
frozen-bubble-data så jeg igen kan bruge debians pakke system?

--
Mvh
Heine Laursen

 
 
Peter Makholm (10-09-2004)
Kommentar
Fra : Peter Makholm


Dato : 10-09-04 06:27

Heine Laursen <gozar@myrealbox.com> writes:

> .../frozen-bubble-data_1.0.0-6_all.deb) ... Unpacking replacement
> frozen-bubble-data ... mv: cannot stat `/usr/games/frozen-bubble.wav': No
> such file or directory dpkg: warning - old post-removal script returned
> error exit status 1 dpkg - trying script from the new package instead ...
> dpkg: error processing

Der er slet ikke nogen fil der hedder /usr/games/frozen-bubble.wav i
nogle af frozen-bubble pakkerne.

Prøv at se om der er refereret til den i
/var/lib/dpkg/info/frozen-bubble.{pre,post}{inst,rm}

Det virker som en pakkefejl, men der ser ikke ud til at være noget i
BTS. Men fejlen ligger nok i 1.0.0-4.

> Dette medføre så at jeg ikke kan installere pakker. Jeg har aldrig nogen
> sinde stødt på sådan en fejl før. Hvordan får jeg fjernet/repereret
> frozen-bubble-data så jeg igen kan bruge debians pakke system?

Prøv at sætte frozen-bubble-data på hold.

echo frozen-bubble-data hold | dpkg --set-selections

Jeg ved ikke helt om det vil hjælpe her.

--
Peter Makholm | According to the hacker ethic, the meaning of life
peter@makholm.net | is not Friday, but it is not Sunday either
http://hacking.dk | -- Pekka Himanen

Heine Laursen (10-09-2004)
Kommentar
Fra : Heine Laursen


Dato : 10-09-04 18:37

Den Fri, 10 Sep 2004 07:26:58 +0200. skrev Peter Makholm:

> Heine Laursen <gozar@myrealbox.com> writes:
>
>> .../frozen-bubble-data_1.0.0-6_all.deb) ... Unpacking replacement
>> frozen-bubble-data ... mv: cannot stat `/usr/games/frozen-bubble.wav': No
>> such file or directory dpkg: warning - old post-removal script returned
>> error exit status 1 dpkg - trying script from the new package instead ...
>> dpkg: error processing
>
> Der er slet ikke nogen fil der hedder /usr/games/frozen-bubble.wav i
> nogle af frozen-bubble pakkerne.
>
> Prøv at se om der er refereret til den i
> /var/lib/dpkg/info/frozen-bubble.{pre,post}{inst,rm}

Det er der.
Jeg udkommenterede linien og kørte derefter komandoen:
dpkg-divert --package frozen-bubble-data --remove /usr/games/frozen-bubble

efter et par apt-get remove og dpkg -r meldte dpkg pluselig at den ikke
kunde afinstallere frozen-bubble-data pga diren
/usr/share/games/frozen-bubble ikke var tom. Så jeg flyttede filerne og
en dpkg-r frozen-bubble-data fjernede pakken.

Så nu virker apt-het normalt igen.
Tak for hjælpen.

--
Mvh
Heine Laursen

Søg
Reklame
Statistik
Spørgsmål : 177560
Tips : 31968
Nyheder : 719565
Indlæg : 6408946
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste