"Invalid cross-device link" error appears while running apt install --fix-broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ODROID |
New
|
Undecided
|
Unassigned |
Bug Description
I just bought an ODROID M1 and it included a 16GB eMMC card with Ubuntu 20.04 LTS pre-installed on it. I booted up the machine, and ran the following:
sudo apt-get update
sudo apt-get dist-upgrade --yes
sudo do-release-upgrade
The upgrade to Ubuntu 22.04 Jammy Jellyfish failed, and the system stayed at 20.04 LTS.
-------
When I try to re-run the upgrade process with do-release-upgrade, I am getting the following output:
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
-------
Then when I try to run apt-get upgrade, I get the following:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
hplip : Depends: hplip-data (= 3.21.12+dfsg0-1) but 3.20.3+dfsg0-2 is installed
Depends: libhpmud0 (= 3.21.12+dfsg0-1) but 3.20.3+dfsg0-2 is installed
Depends: printer-
libegl-mesa0 : Depends: libgbm1 (= 22.0.5-0ubuntu0.1) but 21.2.6-
libegl1 : Depends: libglvnd0 (= 1.3.2-1~
libgles2 : Depends: libglvnd0 (= 1.3.2-1~
libsane-hpaio : Depends: libhpmud0 (>= 3.21.12+dfsg0) but 3.20.3+dfsg0-2 is installed
network-
python3-brlapi : Depends: libbrlapi0.8 (>= 6.4) but it is not installed
python3-pil : Depends: libraqm0 (>= 0.7.0) but it is not installed
python3-uno : Depends: libreoffice-common (>= 1:7.0.0~alpha~) but 1:6.4.7-
rhythmbox-plugins : Depends: librhythmbox-core10 (= 3.4.4-5ubuntu1) but 3.4.4-1ubuntu2 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
-------
When I try to run an apt --fix-broken install, I am currently getting the following
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
gir1.
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
fonts-opensymbol gir1.2-rb-3.0 hplip-data libayatana-
libreoffice-
Suggested packages:
libreoffice-base ocl-icd-libopencl1 | mesa-opencl-icd | beignet-opencl-icd gstreamer1.
rhythmbox-
The following packages will be REMOVED:
libappindicat
The following NEW packages will be installed:
libayatana-
The following packages will be upgraded:
fonts-opensymbol gir1.2-rb-3.0 hplip-data libegl1 libgbm1 libgles2 libgpgme11 libgpgmepp6 libhpmud0 libreoffice-
libxmlsec1-nss printer-
30 upgraded, 12 newly installed, 1 to remove and 791 not upgraded.
503 not fully installed or removed.
Need to get 0 B/100 MB of archives.
After this operation, 34.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Extracting templates from packages: 100%
(Reading database ... 106980 files and directories currently installed.)
Preparing to unpack .../libgbm1_
Unpacking libgbm1:arm64 (22.0.5-0ubuntu0.1) over (21.2.6-
dpkg: error processing archive /var/cache/
unable to make backup link of './usr/
Preparing to unpack .../libegl1_
Unpacking libegl1:arm64 (1.4.0-1) over (1.3.2-
dpkg: error processing archive /var/cache/
unable to make backup link of './usr/
Preparing to unpack .../libgles2_
Unpacking libgles2:arm64 (1.4.0-1) over (1.3.2-
dpkg: error processing archive /var/cache/
unable to make backup link of './usr/
Errors were encountered while processing:
/var/cache/
/var/cache/
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
-------
Question: How do I fix this "invalid cross-device link" error message, so that I can get these packages fixed into a normal state?