Upgrade LXC container from Ubuntu Lucid to Precise

Through the release upgrade process there is an error:

unable to make backup link of `./lib/init/fstab’ before installing new version: Invalid cross-device link

$ apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  mountall
The following packages will be upgraded:
  mountall
1 upgraded, 0 newly installed, 0 to remove and 246 not upgraded.
8 not fully installed or removed.
Need to get 0B/67.8kB of archives.
After this operation, 5,120B of additional disk space will be used.
Do you want to continue [Y/n]? 
(Reading database ... 18882 files and directories currently installed.)
Preparing to replace mountall 2.15.3 (using .../mountall_2.36.4_amd64.deb) ...
Moving obsolete conffile /etc/init/mounted-varrun.conf out of the way...
Unpacking replacement mountall ...
dpkg: error processing /var/cache/apt/archives/mountall_2.36.4_amd64.deb (--unpack):
 unable to make backup link of `./lib/init/fstab' before installing new version: Invalid cross-device link
Reinstalling /etc/init/mounted-varrun.conf that was moved away
Errors were encountered while processing:
 /var/cache/apt/archives/mountall_2.36.4_amd64.deb
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB

Total disk space freed by localepurge: 0 KiB

Stop the container and run this command from the host:

$ lxc-unshare -s MOUNT -- chroot rootfs apt-get -f install
avatar

About tompos

Hungary, Budapest
This entry was posted in IT, Linux, Ubuntu. Bookmark the permalink.

Leave a Reply