[Gutsy] Unable to upgrade or reinstall cupsys after trying to upgrade
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@
[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_
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/
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/
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@
Desired=
| Status=
|/ Err?=(none)
||/ 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@
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@
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-
xfce4-taskmanager abiword latex-xft-fonts libaiksaurus-
python-exo xfce4-appfinder gnumeric-gtk gxine abiword-help libwpd-stream8c2a thunar-
libaiksaurus-
libgdome2-
xarchiver
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
bluez-cups* cupsys* cupsys-
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@
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_
Setting up cupsys (1.2.12-1ubuntu2) ...
Installing new version of config file /etc/init.d/cupsys ...
invoke-rc.d: unknown initscript, /etc/init.
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.
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.