x11-common is uninstallable

Bug #28911 reported by Michael Bienia
10
Affects Status Importance Assigned to Milestone
xorg (Ubuntu)
Fix Released
Critical
Daniel Stone

Bug Description

Selecting previously deselected package x11-common.
(Reading database ... 75415 files and directories currently installed.)
Unpacking x11-common (from .../x11-common_7.0.0-0ubuntu1_all.deb) ...
/var/lib/dpkg/tmp.ci/config: line 28: laptop-detect: command not found
/var/lib/dpkg/tmp.ci/preinst: line 35: laptop-detect: command not found
dpkg: error processing /var/cache/apt/archives/x11-common_7.0.0-0ubuntu1_all.deb (--unpack):
 subprocess pre-installation script returned error exit status 10
/var/lib/dpkg/tmp.ci/postrm: line 32: laptop-detect: command not found
Errors were encountered while processing:
 /var/cache/apt/archives/x11-common_7.0.0-0ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

after I installed laptop-detect it still doesn't install:

Preconfiguring packages ...
(Reading database ... 75434 files and directories currently installed.)
Unpacking x11-common (from .../x11-common_7.0.0-0ubuntu1_all.deb) ...
dpkg: error processing /var/cache/apt/archives/x11-common_7.0.0-0ubuntu1_all.deb (--unpack):
 subprocess pre-installation script returned error exit status 10
Errors were encountered while processing:
 /var/cache/apt/archives/x11-common_7.0.0-0ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Adam Conrad (adconrad) wrote :

Preinst dies if you don't have xserver-common installed anymore, too (say, if you're doing a fresh install, or upgraded with "apt-get --purge dist-upgrade")

Tossing a set -x in the preinst and repacking the deb, we get a tail of:

+ read -r _db_internal_line
+ RET='10 xserver-common/xwrapper/allowed_users doesn'\''t exist'
+ return 10

Revision history for this message
Nafallo Bjälevik (nafallo) wrote :

I can confirm this one on amd64. I guess it's time to "_totally_ blame daniels!" :-).

Changed in xorg:
assignee: nobody → daniels
status: Unconfirmed → Confirmed
Daniel Stone (daniels)
Changed in xorg:
status: Confirmed → Fix Committed
Revision history for this message
Daniel Stone (daniels) wrote :

get your blame while it's hot.

xorg (7.0.0-0ubuntu2) dapper; urgency=low

  * Add laptop-detect dependency to x11-common, make preinst slightly more,
    er, robust, in the face of failure (closes: Malone#28911).
  * Add dependencies in laptop-detect, xresprobe, mdetect and discover1 to
    xserver-xorg.

 -- Daniel Stone <email address hidden> Thu, 19 Jan 2006 08:33:23 +1100

Changed in xorg:
status: Fix Committed → Fix Released
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.