package mouseemu 0.16-0ubuntu9 failed to install/upgrade: subprocess installed post-installation script returned error exit status 127 (/var/lib/dpkg/info/mouseemu.postinst: MAKEDEV: not found)

Bug #1672157 reported by Hicks
126
This bug affects 21 people
Affects Status Importance Assigned to Milestone
mouseemu (Ubuntu)
Triaged
Low
Unassigned

Bug Description

When installing mouseemu, the log shows:

```
apt-get install mouseemu
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed
  mouseemu
0 to upgrade, 1 to newly install, 0 to remove and 0 not to upgrade.
Need to get 18.0 kB of archives.
After this operation, 99.3 kB of additional disk space will be used.
Get:1 http://gb.archive.ubuntu.com/ubuntu yakkety/main amd64 mouseemu amd64 0.16-0ubuntu9 [18.0 kB]
Fetched 18.0 kB in 0s (325 kB/s)
Selecting previously unselected package mouseemu.
(Reading database ... 240577 files and directories currently installed.)
Preparing to unpack .../mouseemu_0.16-0ubuntu9_amd64.deb ...
Unpacking mouseemu (0.16-0ubuntu9) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up mouseemu (0.16-0ubuntu9) ...
Creating /dev/input/uinput.../var/lib/dpkg/info/mouseemu.postinst: 34: /var/lib/dpkg/info/mouseemu.postinst: MAKEDEV: not found
dpkg: error processing package mouseemu (--configure):
 subprocess installed post-installation script returned error exit status 127
Processing triggers for systemd (231-9ubuntu3) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
 mouseemu
E: Sub-process /usr/bin/dpkg returned an error code (1)
```

I'm on Xubuntu 16.10 amd64.

ProblemType: Package
DistroRelease: Ubuntu 16.10
Package: mouseemu 0.16-0ubuntu9
ProcVersionSignature: Ubuntu 4.8.0-41.44-generic 4.8.17
Uname: Linux 4.8.0-41-generic x86_64
ApportVersion: 2.20.3-0ubuntu8.2
AptOrdering:
 mouseemu:amd64: Install
 NULL: ConfigurePending
Architecture: amd64
Date: Sun Mar 12 13:58:48 2017
DuplicateSignature:
 package:mouseemu:0.16-0ubuntu9
 Setting up mouseemu (0.16-0ubuntu9) ...
 Creating /dev/input/uinput.../var/lib/dpkg/info/mouseemu.postinst: 34: /var/lib/dpkg/info/mouseemu.postinst: MAKEDEV: not found
 dpkg: error processing package mouseemu (--configure):
  subprocess installed post-installation script returned error exit status 127
ErrorMessage: subprocess installed post-installation script returned error exit status 127
InstallationDate: Installed on 2017-03-11 (1 days ago)
InstallationMedia: Xubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.2)
RelatedPackageVersions:
 dpkg 1.18.10ubuntu1
 apt 1.3.4
SourcePackage: mouseemu
Title: package mouseemu 0.16-0ubuntu9 failed to install/upgrade: subprocess installed post-installation script returned error exit status 127
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Hicks (hickscorp) wrote :
tags: removed: need-duplicate-check
tags: added: zesty
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mouseemu (Ubuntu):
status: New → Confirmed
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thanks for reporting.

I can confirm this bug is still present in mouseemu 0.16-0ubuntu10 on Ubuntu Bionic. It looks like the underlying issue is that the MAKEDEV (environment?) variable hasn't been set in the install script for the package.

tags: added: artful bionic packaging
summary: package mouseemu 0.16-0ubuntu9 failed to install/upgrade: subprocess
installed post-installation script returned error exit status 127
+ (/var/lib/dpkg/info/mouseemu.postinst: MAKEDEV: not found)
Revision history for this message
C de-Avillez (hggdh2) wrote :

bumping to triaged/low. At the moment, Bionic has the same version as 16.10.

Changed in mouseemu (Ubuntu):
importance: Undecided → Low
status: Confirmed → Triaged
Revision history for this message
Drew Folta (drewfish) wrote :

Is there a workaround, perhaps an older version or downgrade some other package?

Revision history for this message
Iain Murray (ubuntu-iainmurray) wrote :

The fix is to install the makedev package first, which provides the MAKEDEV script that's required as part of the package setup.

If a Ubuntu maintainer could add makedev to the dependencies for mouseemu, that would be great :-).

Revision history for this message
Iain Murray (ubuntu-iainmurray) wrote :

Attaching patch.

Explicit work-around in the mean time:
sudo apt-get purge mouseemu
sudo apt-get install makedev mouseemu

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "mouseemu_makedev_depends.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
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.