invalid cross-device link

Bug #1276373 reported by Kai Mast
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
lxc-android-config (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Manually updated my gnexus via APT. Not sure if I broke something or if it is a problem with the package but I got the following problem:

Preparing to unpack .../lxc-android-config_0.135_all.deb ...
Leaving 'diversion of /usr/share/polkit-1/actions/org.freedesktop.NetworkManager.policy to /usr/share/polkit-1/actions/org.freedesktop.NetworkManager.policy.orig by lxc-android-config'
Unpacking lxc-android-config (0.135) over (0.126) ...
dpkg: error processing archive /var/cache/apt/archives/lxc-android-config_0.135_all.deb (--unpack):
 unable to make backup link of `./lib/udev/rules.d/70-android.rules' before installing new version: Invalid cross-device link
Errors were encountered while processing:
 /var/cache/apt/archives/lxc-android-config_0.135_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Now, I can only boot to Ubuntu via recovery mode and not to Android anymore (had a dual boot). However, I am not sure if the latter is related to this problem.

Revision history for this message
Oliver Grawert (ogra) wrote :

this expected behavior and the reason why we do not support doing dist-upgrades on the readonly images (even if you make them read-write).

dpkg uses hardlinks when replacing files. the nature of teh readonly image is that the filesystem spans across multiple partitions and bind mounts, the hardlinks do not get along with that.

Changed in lxc-android-config (Ubuntu):
status: New → Won't Fix
Revision history for this message
Dirk Duschinger (dirk-duschinger) wrote :

I've also got this problem and it keeps me from cleanly upgrading my nexus 4. Is there a workaround? Or how can I update this package?

Revision history for this message
Kai Mast (kai-mast) wrote :

Use the image-based system updates and not dpkg :)

Revision history for this message
Chris Croome (chriscroome) wrote :

Using the image-based system updates results in any additional packages that have been added needing to be reinstalled (for example screen to enable more than one terminal sessions to use used at the same time). This isn't optimial for people who want to use teminal based applications, I realise that people like this are not the key audience for Ubuntu Touch but is some consideration of users of this nature possible?

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.