[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problem moving /usr/share/cups/mime/mime.convs from cups-server-common to cups-core-drivers



Hi,

I need to move the file /usr/share/cups/mime/mime.convs from the cups-server-common binary package to the cups-core-drivers binary package to make it available in a level-2 printing stack for mobile devices (See https://blueprints.launchpad.net/ubuntu/+spec/client-1305-printing-stack-with-mobile-in-mind), so that cups-browsed can also auto-generate queues for IPP printers using auto-generated PPD files (instead of a System V interface script).

Now I have proceeded the same way as in commit 42270e50e1, where I have moved /usr/lib/cups/daemom/cups-exec from cups to cups-daemon, editing the debian/*.install files and adding to the entry of the cups-daemon package in debian/control a versions Breaks:/Replaces: for the cups package.

Now I have also edited the debian/*.install files and in debian/control I have added Breaks:/Replaces: for the cups-server-common package in the section of cups-core-drivers.

After building that package for testing (with a debian/changelog entry making it 2.1.0-7) and trying to install all its *.deb files I get the following errors:

----------
till@till-x1carbon:~/ubuntu/cups/git/xenial/cups-2.1.0$ sudo dpkg -i ../*.deb
(Reading database ... 379213 files and directories currently installed.)
Preparing to unpack ../cups_2.1.0-7_amd64.deb ...
Unpacking cups (2.1.0-7) over (2.1.0-4ubuntu3) ...
dpkg: warning: unable to delete old directory '/etc/cups/ppd': Directory not empty
Selecting previously unselected package cups-bsd.
Preparing to unpack ../cups-bsd_2.1.0-7_amd64.deb ...
Unpacking cups-bsd (2.1.0-7) ...
Preparing to unpack .../cups-client_2.1.0-7_amd64.deb ...
Unpacking cups-client (2.1.0-7) over (2.1.0-4ubuntu3) ...
Preparing to unpack ../cups-common_2.1.0-7_all.deb ...
Unpacking cups-common (2.1.0-7) over (2.1.0-4ubuntu3) ...
dpkg: regarding .../cups-core-drivers_2.1.0-7_amd64.deb containing cups-core-drivers:
 cups-core-drivers breaks cups-server-common (<< 2.1.0-7~)
  cups-server-common (version 2.1.0-4ubuntu3) is present and installed.

dpkg: error processing archive ../cups-core-drivers_2.1.0-7_amd64.deb (--install):
 installing cups-core-drivers would break cups-server-common, and
 deconfiguration is not permitted (--auto-deconfigure might help)
Preparing to unpack .../cups-daemon_2.1.0-7_amd64.deb ...
Warning: Stopping cups.service, but it can still be activated by:
  cups.socket
Unpacking cups-daemon (2.1.0-7) over (2.1.0-4ubuntu3) ...
Selecting previously unselected package cups-dbg.
Preparing to unpack ../cups-dbg_2.1.0-7_amd64.deb ...
Unpacking cups-dbg (2.1.0-7) ...
Selecting previously unselected package cups-ipp-utils.
Preparing to unpack .../cups-ipp-utils_2.1.0-7_amd64.deb ...
Unpacking cups-ipp-utils (2.1.0-7) ...
Preparing to unpack ../cups-ppdc_2.1.0-7_amd64.deb ...
Unpacking cups-ppdc (2.1.0-7) over (2.1.0-4ubuntu3) ...
Preparing to unpack .../cups-server-common_2.1.0-7_all.deb ...
Unpacking cups-server-common (2.1.0-7) over (2.1.0-4ubuntu3) ...
Preparing to unpack ../libcups2_2.1.0-7_amd64.deb ...
Unpacking libcups2:amd64 (2.1.0-7) over (2.1.0-4ubuntu3) ...
Preparing to unpack .../libcups2-dev_2.1.0-7_amd64.deb ...
Unpacking libcups2-dev:amd64 (2.1.0-7) over (2.1.0-4ubuntu3) ...
Preparing to unpack .../libcupscgi1_2.1.0-7_amd64.deb ...
Unpacking libcupscgi1:amd64 (2.1.0-7) over (2.1.0-4ubuntu3) ...
Selecting previously unselected package libcupscgi1-dev.
Preparing to unpack .../libcupscgi1-dev_2.1.0-7_amd64.deb ...
Unpacking libcupscgi1-dev (2.1.0-7) ...
Preparing to unpack .../libcupsimage2_2.1.0-7_amd64.deb ...
Unpacking libcupsimage2:amd64 (2.1.0-7) over (2.1.0-4ubuntu3) ...
Preparing to unpack .../libcupsimage2-dev_2.1.0-7_amd64.deb ...
Unpacking libcupsimage2-dev (2.1.0-7) over (2.1.0-4ubuntu3) ...
Preparing to unpack .../libcupsmime1_2.1.0-7_amd64.deb ...
Unpacking libcupsmime1:amd64 (2.1.0-7) over (2.1.0-4ubuntu3) ...
Selecting previously unselected package libcupsmime1-dev.
Preparing to unpack .../libcupsmime1-dev_2.1.0-7_amd64.deb ...
Unpacking libcupsmime1-dev (2.1.0-7) ...
Preparing to unpack .../libcupsppdc1_2.1.0-7_amd64.deb ...
Unpacking libcupsppdc1:amd64 (2.1.0-7) over (2.1.0-4ubuntu3) ...
Selecting previously unselected package libcupsppdc1-dev.
Preparing to unpack .../libcupsppdc1-dev_2.1.0-7_amd64.deb ...
Unpacking libcupsppdc1-dev (2.1.0-7) ...
dpkg: dependency problems prevent configuration of cups:
 cups depends on cups-core-drivers (>= 2.1.0-7); however:
  Version of cups-core-drivers on system is 2.1.0-4ubuntu3.

dpkg: error processing package cups (--install):
 dependency problems - leaving unconfigured
Setting up cups-common (2.1.0-7) ...
Setting up cups-server-common (2.1.0-7) ...
Setting up libcups2:amd64 (2.1.0-7) ...
Setting up libcups2-dev:amd64 (2.1.0-7) ...
Setting up libcupscgi1:amd64 (2.1.0-7) ...
Setting up libcupscgi1-dev (2.1.0-7) ...
Setting up libcupsimage2:amd64 (2.1.0-7) ...
Setting up libcupsimage2-dev (2.1.0-7) ...
Setting up libcupsmime1:amd64 (2.1.0-7) ...
Setting up libcupsmime1-dev (2.1.0-7) ...
Setting up libcupsppdc1:amd64 (2.1.0-7) ...
Setting up libcupsppdc1-dev (2.1.0-7) ...
Setting up cups-client (2.1.0-7) ...
Setting up cups-daemon (2.1.0-7) ...
Setting up cups-ipp-utils (2.1.0-7) ...
Setting up cups-ppdc (2.1.0-7) ...
Setting up cups-bsd (2.1.0-7) ...
Processing triggers for ufw (0.34-2) ...
Setting up cups-dbg (2.1.0-7) ...
Processing triggers for man-db (2.7.4-1) ...
Processing triggers for systemd (225-1ubuntu9) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for doc-base (0.10.6) ...
Processing 1 changed doc-base file...
Processing triggers for libc-bin (2.21-0ubuntu4) ...
Errors were encountered while processing:
 ../cups-core-drivers_2.1.0-7_amd64.deb
 cups
till@till-x1carbon:~/ubuntu/cups/git/xenial/cups-2.1.0$
----------

and by immediately repeating the same installation all gets fixed:

----------
till@till-x1carbon:~/ubuntu/cups/git/xenial/cups-2.1.0$ sudo dpkg -i ../*.deb
(Reading database ... 379409 files and directories currently installed.)
Preparing to unpack ../cups_2.1.0-7_amd64.deb ...
Unpacking cups (2.1.0-7) over (2.1.0-7) ...
Preparing to unpack ../cups-bsd_2.1.0-7_amd64.deb ...
Unpacking cups-bsd (2.1.0-7) over (2.1.0-7) ...
Preparing to unpack .../cups-client_2.1.0-7_amd64.deb ...
Unpacking cups-client (2.1.0-7) over (2.1.0-7) ...
Preparing to unpack ../cups-common_2.1.0-7_all.deb ...
Unpacking cups-common (2.1.0-7) over (2.1.0-7) ...
Preparing to unpack .../cups-core-drivers_2.1.0-7_amd64.deb ...
Unpacking cups-core-drivers (2.1.0-7) over (2.1.0-4ubuntu3) ...
Preparing to unpack .../cups-daemon_2.1.0-7_amd64.deb ...
Warning: Stopping cups.service, but it can still be activated by:
  cups.socket
Unpacking cups-daemon (2.1.0-7) over (2.1.0-7) ...
Preparing to unpack ../cups-dbg_2.1.0-7_amd64.deb ...
Unpacking cups-dbg (2.1.0-7) over (2.1.0-7) ...
Preparing to unpack .../cups-ipp-utils_2.1.0-7_amd64.deb ...
Unpacking cups-ipp-utils (2.1.0-7) over (2.1.0-7) ...
Preparing to unpack ../cups-ppdc_2.1.0-7_amd64.deb ...
Unpacking cups-ppdc (2.1.0-7) over (2.1.0-7) ...
Preparing to unpack .../cups-server-common_2.1.0-7_all.deb ...
Unpacking cups-server-common (2.1.0-7) over (2.1.0-7) ...
Preparing to unpack ../libcups2_2.1.0-7_amd64.deb ...
Unpacking libcups2:amd64 (2.1.0-7) over (2.1.0-7) ...
Preparing to unpack .../libcups2-dev_2.1.0-7_amd64.deb ...
Unpacking libcups2-dev:amd64 (2.1.0-7) over (2.1.0-7) ...
Preparing to unpack .../libcupscgi1_2.1.0-7_amd64.deb ...
Unpacking libcupscgi1:amd64 (2.1.0-7) over (2.1.0-7) ...
Preparing to unpack .../libcupscgi1-dev_2.1.0-7_amd64.deb ...
Unpacking libcupscgi1-dev (2.1.0-7) over (2.1.0-7) ...
Preparing to unpack .../libcupsimage2_2.1.0-7_amd64.deb ...
Unpacking libcupsimage2:amd64 (2.1.0-7) over (2.1.0-7) ...
Preparing to unpack .../libcupsimage2-dev_2.1.0-7_amd64.deb ...
Unpacking libcupsimage2-dev (2.1.0-7) over (2.1.0-7) ...
Preparing to unpack .../libcupsmime1_2.1.0-7_amd64.deb ...
Unpacking libcupsmime1:amd64 (2.1.0-7) over (2.1.0-7) ...
Preparing to unpack .../libcupsmime1-dev_2.1.0-7_amd64.deb ...
Unpacking libcupsmime1-dev (2.1.0-7) over (2.1.0-7) ...
Preparing to unpack .../libcupsppdc1_2.1.0-7_amd64.deb ...
Unpacking libcupsppdc1:amd64 (2.1.0-7) over (2.1.0-7) ...
Preparing to unpack .../libcupsppdc1-dev_2.1.0-7_amd64.deb ...
Unpacking libcupsppdc1-dev (2.1.0-7) over (2.1.0-7) ...
Setting up cups-common (2.1.0-7) ...
Setting up cups-server-common (2.1.0-7) ...
Setting up libcups2:amd64 (2.1.0-7) ...
Setting up libcups2-dev:amd64 (2.1.0-7) ...
Setting up libcupscgi1:amd64 (2.1.0-7) ...
Setting up libcupscgi1-dev (2.1.0-7) ...
Setting up libcupsimage2:amd64 (2.1.0-7) ...
Setting up libcupsimage2-dev (2.1.0-7) ...
Setting up libcupsmime1:amd64 (2.1.0-7) ...
Setting up libcupsmime1-dev (2.1.0-7) ...
Setting up libcupsppdc1:amd64 (2.1.0-7) ...
Setting up libcupsppdc1-dev (2.1.0-7) ...
Setting up cups-client (2.1.0-7) ...
Setting up cups-daemon (2.1.0-7) ...
Setting up cups-ipp-utils (2.1.0-7) ...
Setting up cups-ppdc (2.1.0-7) ...
Setting up cups-bsd (2.1.0-7) ...
Processing triggers for ufw (0.34-2) ...
Setting up cups-dbg (2.1.0-7) ...
Setting up cups-core-drivers (2.1.0-7) ...
Setting up cups (2.1.0-7) ...
Updating PPD files for cups ...
Processing triggers for man-db (2.7.4-1) ...
Processing triggers for systemd (225-1ubuntu9) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for doc-base (0.10.6) ...
Processing 1 changed doc-base file...
Processing triggers for libc-bin (2.21-0ubuntu4) ...
till@till-x1carbon:~/ubuntu/cups/git/xenial/cups-2.1.0$
----------

Now I want to know what I did wrong so that it did not work the first time. What do I need to do in addition?

And does it work when updating with apt-get?

I have "git push"ed my changes. Please correct if something is wrong. Thanks.

   Till


Reply to: