PDA

View Full Version : help me diagnose an apt error



helios17
11-01-2004, 10:06 PM
Did an apt-upgrade and now everytime I transact with apt-get, I receive the following complaint at the end of every transaction. Would someone help me get rid of it?

thanx

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 xjewel.
Unpacking xjewel (from .../xjewel_1.6-19_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)
root@helios:/home/helios# exit
exit
helios@helios:~$

UnderScore
11-02-2004, 03:32 AM
mv: cannot stat `/usr/games/frozen-bubble.wav': No such file or directory
This problems is to to an error in the debian frozen bubble package. The error message means that it can't find that file. To get around that problem you need to create that file so the system can update/remove it. Use the following command to create it.

touch /usr/games/frozen-bubble.wav
Then rerun apt-get update and you will notice that it is successful.
I hope this helps.
James

CrashedAgain
11-02-2004, 05:30 AM
Did an apt-upgrade.....

I'm sure you have seen some of the dire warnings about upgrading Knoppix. Let us know how it works out.
A word of advice..when it asks do you want to keep your original confirmation settings or upgrade to the package maintainer's version, keep your own if you want to recognize your system afterward.

helios17
11-02-2004, 10:20 AM
Here is the output from bash after following your instructions. Im lost.


The following packages will be upgraded:
frozen-bubble-data
1 upgraded, 0 newly installed, 0 to remove and 104 not upgraded.
12 not fully installed or removed.
Need to get 0B/5155kB of archives.
After unpacking 1651kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 128880 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 ...
Removing `diversion of /usr/games/frozen-bubble to /usr/games/frozen-bubble.distrib by frozen-bubble-data'
dpkg-divert: rename involves overwriting `/usr/games/frozen-bubble' with
different file `/usr/games/frozen-bubble.distrib', not allowed
dpkg: warning - old post-removal script returned error exit status 2
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@helios:/home/helios#

CrashedAgain
11-02-2004, 03:47 PM
Here is the output from bash after following your instructions. Im lost.


The following packages will be upgraded:
frozen-bubble-data
1 upgraded, 0 newly installed, 0 to remove and 104 not upgraded.
12 not fully installed or removed.
Need to get 0B/5155kB of archives.
After unpacking 1651kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 128880 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 ...
Removing `diversion of /usr/games/frozen-bubble to /usr/games/frozen-bubble.distrib by frozen-bubble-data'
dpkg-divert: rename involves overwriting `/usr/games/frozen-bubble' with
different file `/usr/games/frozen-bubble.distrib', not allowed
dpkg: warning - old post-removal script returned error exit status 2
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@helios:/home/helios#

Try apt-get -f install or apt-get -f remove frozen*. Or try dpkg -P frozen-bubble instead of apt. Check man dpkg for 'force' options, I think there may be an 'ignore-missing' type option.

Another possiblity if apt is still working (ie can you apt-get something else...apt will not continue if there is an error condition, it will just refuse to do anything else) first check /var/cache/apt (I think thats the correct path, Im not in Linux right now) & see if there is a frozen-bubble package there. If so, delete it then do apt-get install frozen-bubble to make it download & install a new package which it should then be able to correctly remove.