dpkg in feisty doesnt work properly after dpkg fails on updates/installing apps.

Bug #96939 reported by John Vivirito
4
Affects Status Importance Assigned to Milestone
dpkg (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: dpkg

When doing upgrades one upgrade failed to overwrite a file. So i tried sudo dpkg --configure -a and it told me -o is not an option. the following is the commands that were ran.

Calculating upgrade... Done
The following packages will be REMOVED:
  totem-xine-dbgsym
The following NEW packages will be installed:
  mscompress
The following packages will be upgraded:
  cupsys-driver-gutenprint foo2zjs gimp-print libgutenprint2
  libgutenprintui2-1 libtotem-plparser1 python-central totem totem-mozilla
  totem-xine
10 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 4614kB of archives.
After unpacking 2060kB disk space will be freed.
Get:1 http://archive.ubuntu.com feisty/main libgutenprint2 5.0.0.99.1-0ubuntu2 [917kB]
Get:2 http://archive.ubuntu.com feisty/main cupsys-driver-gutenprint 5.0.0.99.1-0ubuntu2 [1002kB]
Get:3 http://archive.ubuntu.com feisty/main mscompress 0.3-2 [7870B]
Get:4 http://archive.ubuntu.com feisty/main foo2zjs 20061224-0ubuntu3 [998kB]
Get:5 http://archive.ubuntu.com feisty/main libgutenprintui2-1 5.0.0.99.1-0ubuntu2 [131kB]
Get:6 http://archive.ubuntu.com feisty/main gimp-print 5.0.0.99.1-0ubuntu2 [113kB]
Get:7 http://archive.ubuntu.com feisty/main libtotem-plparser1 2.18.0-0ubuntu2 [42.2kB]
Get:8 http://archive.ubuntu.com feisty/main python-central 0.5.12ubuntu3 [32.6kB]
Get:9 http://archive.ubuntu.com feisty/universe totem-xine 2.18.0-0ubuntu2 [1340kB]
Get:10 http://archive.ubuntu.com feisty/main totem 2.18.0-0ubuntu2 [15.5kB]
Get:11 http://archive.ubuntu.com feisty/main totem-mozilla 2.18.0-0ubuntu2 [15.2kB]
Fetched 4614kB in 3m9s (24.4kB/s)
(Reading database ... 188101 files and directories currently installed.)
Removing totem-xine-dbgsym ...
(Reading database ... 188090 files and directories currently installed.)
Preparing to replace libgutenprint2 5.0.0.99.1-0ubuntu1 (using .../libgutenprint2_5.0.0.99.1-0ubuntu2_i386.deb) ...
Unpacking replacement libgutenprint2 ...
Preparing to replace cupsys-driver-gutenprint 5.0.0.99.1-0ubuntu1 (using .../cupsys-driver-gutenprint_5.0.0.99.1-0ubuntu2_i386.deb) ...
Unpacking replacement cupsys-driver-gutenprint ...
Selecting previously deselected package mscompress.
Unpacking mscompress (from .../mscompress_0.3-2_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/mscompress_0.3-2_i386.deb (--unpack):
 trying to overwrite `/usr/bin/msexpand', which is also in package foo2zjs
Preparing to replace foo2zjs 20061224-0ubuntu2 (using .../foo2zjs_20061224-0ubuntu3_i386.deb) ...
Unpacking replacement foo2zjs ...
Preparing to replace libgutenprintui2-1 5.0.0.99.1-0ubuntu1 (using .../libgutenprintui2-1_5.0.0.99.1-0ubuntu2_i386.deb) ...
Unpacking replacement libgutenprintui2-1 ...
Preparing to replace gimp-print 5.0.0.99.1-0ubuntu1 (using .../gimp-print_5.0.0.99.1-0ubuntu2_i386.deb) ...
Unpacking replacement gimp-print ...
Preparing to replace libtotem-plparser1 2.18.0-0ubuntu1 (using .../libtotem-plparser1_2.18.0-0ubuntu2_i386.deb) ...
Unpacking replacement libtotem-plparser1 ...
Preparing to replace python-central 0.5.12ubuntu2 (using .../python-central_0.5.12ubuntu3_all.deb) ...
Unpacking replacement python-central ...
Preparing to replace totem-xine 2.18.0-0ubuntu1 (using .../totem-xine_2.18.0-0ubuntu2_i386.deb) ...
Unpacking replacement totem-xine ...
Preparing to replace totem 2.18.0-0ubuntu1 (using .../totem_2.18.0-0ubuntu2_all.deb) ...
Unpacking replacement totem ...
Preparing to replace totem-mozilla 2.18.0-0ubuntu1 (using .../totem-mozilla_2.18.0-0ubuntu2_all.deb) ...
Unpacking replacement totem-mozilla ...
Errors were encountered while processing:
 /var/cache/apt/archives/mscompress_0.3-2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
gnomefreak@FeistyFawn:~$ sudo dpkg -configure -a
dpkg: unknown option -o

Type dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --license for copyright license and lack of warranty (GNU GPL) [*].

Options marked [*] produce a lot of output - pipe it through `less' or `more' !
gnomefreak@FeistyFawn:~$ sudo dpkg -i --force-overwrite /var/cache/apt/archives/mscompress_0.3-2_i386.deb
(Reading database ... 188089 files and directories currently installed.)
Unpacking mscompress (from .../mscompress_0.3-2_i386.deb) ...
Setting up mscompress (0.3-2) ...
gnomefreak@FeistyFawn:~$ sudo dpkg --configure -a
Setting up foo2zjs (20061224-0ubuntu3) ...

Setting up libtotem-plparser1 (2.18.0-0ubuntu2) ...

Setting up libgutenprint2 (5.0.0.99.1-0ubuntu2) ...

Setting up python-central (0.5.12ubuntu3) ...
Setting up totem-xine (2.18.0-0ubuntu2) ...

Setting up totem (2.18.0-0ubuntu2) ...
Setting up totem-mozilla (2.18.0-0ubuntu2) ...
Setting up libgutenprintui2-1 (5.0.0.99.1-0ubuntu2) ...

Setting up cupsys-driver-gutenprint (5.0.0.99.1-0ubuntu2) ...
 * Restarting Common Unix Printing System: cupsd [ OK ]

Setting up gimp-print (5.0.0.99.1-0ubuntu2) ...

gnomefreak@FeistyFawn:~$

ProblemType: Bug
Architecture: i386
Date: Tue Mar 27 08:03:51 2007
DistroRelease: Ubuntu 7.04
Uname: Linux FeistyFawn 2.6.20-13-generic #2 SMP Sun Mar 25 00:21:25 UTC 2007 i686 GNU/Linux

Revision history for this message
Ian Jackson (ijackson) wrote :

You typed
  dpkg -configure -a
when you meant
  dpkg --configure -a

dpkg's response was correct.

Changed in dpkg:
status: Unconfirmed → Rejected
Revision history for this message
John Vivirito (gnomefreak) wrote :

ok sorry i missed a -. shoudlnt the message be something other than "dpkg: unknown option -o" since there is no -o flaged typed? I see this as confusing to new users as well as others.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.