Unable to install udev package - AppArmor?

Trying to install mono and wine, a dependency called udev keeps failing.

To simulate: sudo apt-get install udev

Error:

...
Preparing to replace udev 175-0ubuntu9.10 (using .../udev_204-5ubuntu20.15_amd64.deb) ...
Adding 'diversion of /bin/udevadm to /bin/udevadm.upgrade by fake-udev'
dpkg: unrecoverable fatal error, aborting:
 failed to fstat previous diversions file: No such file or directory

sudo apt-get install udev returned exit code 100

E: Sub-process /usr/bin/dpkg returned an error code (2) Action failed: sudo apt-get install udev

We currently disallow installing udev during the build for security reasons, sorry about that.

Are you sure the packages you need require udev to be reinstalled? Could you please provide us the list of packages that need to be installed? We’ll see if we can get them on our build containers without hitting this issue.

It’s basically wine and mono-devel so that I can run node-rcedit to configure the exe for Electron.

machine:
  node:
    version: "5.0.0"
dependencies:
  pre:
    # Install Wine/Mono for Windows builds
    - sudo add-apt-repository ppa:ubuntu-wine/ppa -y
    - sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
    - echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
    - echo "deb http://download.mono-project.com/repo/debian wheezy-libtiff-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list
    - sudo apt-get -qq update
    - sudo apt-get -qq install wine mono-devel -y

Any updates?

wine absolutely needs to do things to udevadm.

Preparing to replace udev 175-0ubuntu9.10 (using .../udev_204-5ubuntu20.15_amd64.deb) ...
Adding 'diversion of /bin/udevadm to /bin/udevadm.upgrade by fake-udev'
dpkg: unrecoverable fatal error, aborting:
 failed to fstat previous diversions file: No such file or directory

Is there a chance we are running into this issue because udev seems REALLY out of date?
udev:
Installed: 175-0ubuntu9.10
Candidate: 204-5ubuntu20.15

Complete log: https://gist.github.com/drazisil/c86a7ad48a459453d84c

I’m currently seeing if we can get through this in any way. I’ll let you know within a day. Sorry for the delay.

1 Like

We have reviewed this once again, and unfortunately we don’t think we could update udev at this very moment. We’ll try to do that as soon as possible, but cannot give you a timeline for that. Sorry :disappointed: