[Gutsy] Unable to upgrade or reinstall cupsys after trying to upgrade

Bug #130014 reported by Shirish Agarwal
6
Affects Status Importance Assigned to Milestone
cupsys (Ubuntu)
New
Undecided
Martin Pitt

Bug Description

Binary package hint: cupsys

I was trying to update/upgrade cupsys when the following issues cropped up.

shirish@Mugglewille:~$ sudo aptitude upgrade
[sudo] password for shirish:
W: The "upgrade" command is deprecated; use "safe-upgrade" instead.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages will be upgraded:
  cupsys
1 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/1880kB of archives. After unpacking 0B will be used.
Do you want to continue? [Y/n/?] Y
Preconfiguring packages ...
(Reading database ... 190537 files and directories currently installed.)
Preparing to replace cupsys 1.2.12-1ubuntu1 (using .../cupsys_1.2.12-1ubuntu2_i386.deb) ...
Ignoring nonregistered document cupsys
 * Stopping Common Unix Printing System: cupsd [ OK ]
chown: cannot access `/var/run/cups': No such file or directory
dpkg: error processing /var/cache/apt/archives/cupsys_1.2.12-1ubuntu2_i386.deb (--unpack):
 subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/cupsys_1.2.12-1ubuntu2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
shirish@Mugglewille:~$ dpkg -l cupsys
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 cupsys 1.2.12-1ubuntu1 Common UNIX Printing System(tm) - server

Trying to reinstall it again just to be sure gave me this :-

shirish@Mugglewille:~$ sudo aptitude reinstall cupsys
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages will be REINSTALLED:
  cupsys
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Error!
E: I wasn't able to locate file for the cupsys package. This might mean you need to manually fix this package.

Then I tried to remove the package & came across this :-

shirish@Mugglewille:~$ sudo apt-get remove --purge cupsys
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libots0 xfce4-xkb-plugin xdg-user-dirs-gtk system-config-printer libaiksaurusgtk-1.2-0c2a abiword-common
  xfce4-taskmanager abiword latex-xft-fonts libaiksaurus-1.2-0c2a gnumeric-common xubuntu-artwork-usplash
  python-exo xfce4-appfinder gnumeric-gtk gxine abiword-help libwpd-stream8c2a thunar-archive-plugin
  libaiksaurus-1.2-data libgdome2-0 thunar-volman-plugin mozilla-thunderbird xfce4-dict-plugin
  libgdome2-cpp-smart0c2a python-cups vim-runtime xubuntu-docs libgtkmathview0c2a gqview abiword-plugins xfburn
  xarchiver
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  bluez-cups* cupsys* cupsys-driver-gutenprint* hal-cups-utils* hplip* ubuntu-desktop* xubuntu-desktop*
0 upgraded, 0 newly installed, 7 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 14.4MB disk space will be freed.
Do you want to continue [Y/n]? n
Abort.

I finally went ahead, removed & purged & installed cupsys again, while installing it shows :-

shirish@Mugglewille:~$ sudo aptitude install cupsys
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following NEW packages will be installed:
  cupsys
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/1880kB of archives. After unpacking 9867kB will be used.
Writing extended state information... Done
Preconfiguring packages ...
Selecting previously deselected package cupsys.
(Reading database ... 185675 files and directories currently installed.)
Unpacking cupsys (from .../cupsys_1.2.12-1ubuntu2_i386.deb) ...
Setting up cupsys (1.2.12-1ubuntu2) ...
Installing new version of config file /etc/init.d/cupsys ...
invoke-rc.d: unknown initscript, /etc/init.d/apparmor not found.

Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Building tag database... Done

I will give further info. as things happen.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

The

invoke-rc.d: unknown initscript, /etc/init.d/apparmor not found.

is because the binary package cupsys has no dependency on Apparmor. There needs to be added

apparmor, apparmor-utils, apparmor-profiles

to the "Depends:" line in the "cupsys" section of the debian/control file.

Changed in cupsys:
assignee: nobody → pitti
Revision history for this message
Shirish Agarwal (shirishag75) wrote :

I uninstalled cupsys, which in turn uninstalled xubuntu-desktop ubuntu-desktop
Then installed cupsys which installed the latest version & then installed ubuntu-desktop xubuntu-desktop on top of it, While have no wonder atm but atleast its installed & there. Keep the bug open so Martin can add the depends which is needed after which he can close it ;)

Revision history for this message
Shirish Agarwal (shirishag75) wrote :

I looked up & there was a similar bug in the previous cycle although the differences are there between that & this

https://bugs.edge.launchpad.net/ubuntu/+source/cupsys/+bug/95562

Attaching the output of sudo dpkg -i -D2 /var/cache/apt/archives/cupsys_*

Named it as cupsys_experiment (rolleyes)

Revision history for this message
Shirish Agarwal (shirishag75) wrote :

Giving a stop command does the stop, no issues there

shirish@Mugglewille:~$ sudo /etc/init.d/cupsys stop
 * Stopping Common Unix Printing System: cupsd [ OK ]

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.