我从 ubuntu 16 升级到了 18。重新启动后,窗口管理器尚未加载,我的意思是我看不到窗口面板和所有窗口标题。
为了修复它我尝试过:
sudo apt install lightdma
但得到:
Reading package lists... Done
Building dependency tree
Reading state information... Done
lightdm is already the newest version (1.26.0-0ubuntu1).
lightdm set to manually installed.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libasan2-armel-cross : Depends: libc6-armel-cross (>= 2.27) but 2.23-0ubuntu3cross1 is to be installed
libasan2-armhf-cross : Depends: libc6-armhf-cross (>= 2.27) but 2.23-0ubuntu3cross1 is to be installed
libatomic1-armel-cross : Depends: libc6-armel-cross (>= 2.27) but 2.23-0ubuntu3cross1 is to be installed
libatomic1-armhf-cross : Depends: libc6-armhf-cross (>= 2.27) but 2.23-0ubuntu3cross1 is to be installed
libgcc1-armel-cross : Depends: libc6-armel-cross (>= 2.27) but 2.23-0ubuntu3cross1 is to be installed
libgcc1-armhf-cross : Depends: libc6-armhf-cross (>= 2.27) but 2.23-0ubuntu3cross1 is to be installed
libgomp1-armel-cross : Depends: libc6-armel-cross (>= 2.27) but 2.23-0ubuntu3cross1 is to be installed
libgomp1-armhf-cross : Depends: libc6-armhf-cross (>= 2.27) but 2.23-0ubuntu3cross1 is to be installed
libsfasan2-armhf-cross : Depends: libc6-armel-cross (>= 2.27) but 2.23-0ubuntu3cross1 is to be installed
libsfatomic1-armhf-cross : Depends: libc6-armel-cross (>= 2.27) but 2.23-0ubuntu3cross1 is to be installed
libsfgomp1-armhf-cross : Depends: libc6-armel-cross (>= 2.27) but 2.23-0ubuntu3cross1 is to be installed
libsfstdc++6-armhf-cross : Depends: libc6-armel-cross (>= 2.27) but 2.23-0ubuntu3cross1 is to be installed
libsfubsan0-armhf-cross : Depends: libc6-armel-cross (>= 2.27) but 2.23-0ubuntu3cross1 is to be installed
libstdc++6-armel-cross : Depends: libc6-armel-cross (>= 2.27) but 2.23-0ubuntu3cross1 is to be installed
libstdc++6-armhf-cross : Depends: libc6-armhf-cross (>= 2.27) but 2.23-0ubuntu3cross1 is to be installed
libubsan0-armel-cross : Depends: libc6-armel-cross (>= 2.27) but 2.23-0ubuntu3cross1 is to be installed
libubsan0-armhf-cross : Depends: libc6-armhf-cross (>= 2.27) but 2.23-0ubuntu3cross1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
我听从了建议并尝试:
sudo apt-get -f install
得到:
The following additional packages will be installed:
libc6-armel-cross libc6-armhf-cross libc6-dev-armel-cross
libc6-dev-armhf-cross
The following packages will be upgraded:
libc6-armel-cross libc6-armhf-cross libc6-dev-armel-cross
libc6-dev-armhf-cross
4 upgraded, 0 newly installed, 0 to remove and 943 not upgraded.
17 not fully installed or removed.
Need to get 0 B/5871 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 325049 files and directories currently installed.)
Preparing to unpack .../libc6-dev-armel-cross_2.27-3ubuntu1cross1.1_all.deb ...
Unpacking libc6-dev-armel-cross (2.27-3ubuntu1cross1.1) over (2.23-0ubuntu3cross1) ...
dpkg: error processing archive /var/cache/apt/archives/libc6-dev-armel-cross_2.27-3ubuntu1cross1.1_all.deb (--unpack):
unable to open '/usr/arm-linux-gnueabi/lib/Mcrt1.o.dpkg-new': No such file or directory
No apport report written because the error message indicates an issue on the local system
Preparing to unpack .../libc6-armel-cross_2.27-3ubuntu1cross1.1_all.deb ...
Unpacking libc6-armel-cross (2.27-3ubuntu1cross1.1) over (2.23-0ubuntu3cross1) ...
dpkg: error processing archive /var/cache/apt/archives/libc6-armel-cross_2.27-3ubuntu1cross1.1_all.deb (--unpack):
unable to open '/usr/arm-linux-gnueabi/lib/ld-2.27.so.dpkg-new': No such file or directory
No apport report written because the error message indicates an issue on the local system
Preparing to unpack .../libc6-dev-armhf-cross_2.27-3ubuntu1cross1.1_all.deb ...
Unpacking libc6-dev-armhf-cross (2.27-3ubuntu1cross1.1) over (2.23-0ubuntu3cross1) ...
dpkg: error processing archive /var/cache/apt/archives/libc6-dev-armhf-cross_2.27-3ubuntu1cross1.1_all.deb (--unpack):
unable to open '/usr/arm-linux-gnueabihf/lib/Mcrt1.o.dpkg-new': No such file or directory
No apport report written because the error message indicates an issue on the local system
Preparing to unpack .../libc6-armhf-cross_2.27-3ubuntu1cross1.1_all.deb ...
Unpacking libc6-armhf-cross (2.27-3ubuntu1cross1.1) over (2.23-0ubuntu3cross1) ...
dpkg: error processing archive /var/cache/apt/archives/libc6-armhf-cross_2.27-3ubuntu1cross1.1_all.deb (--unpack):
unable to open '/usr/arm-linux-gnueabihf/lib/ld-2.27.so.dpkg-new': No such file or directory
No apport report written because MaxReports is reached already
Errors were encountered while processing:
/var/cache/apt/archives/libc6-dev-armel-cross_2.27-3ubuntu1cross1.1_all.deb
/var/cache/apt/archives/libc6-armel-cross_2.27-3ubuntu1cross1.1_all.deb
/var/cache/apt/archives/libc6-dev-armhf-cross_2.27-3ubuntu1cross1.1_all.deb
/var/cache/apt/archives/libc6-armhf-cross_2.27-3ubuntu1cross1.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
尝试过:
sudo apt update --fix-missing && sudo apt upgrade
全部都一样:
Errors were encountered while processing:
/var/cache/apt/archives/libc6-dev-armel-cross_2.27-3ubuntu1cross1.1_all.deb
/var/cache/apt/archives/libc6-armel-cross_2.27-3ubuntu1cross1.1_all.deb
/var/cache/apt/archives/libc6-dev-armhf-cross_2.27-3ubuntu1cross1.1_all.deb
/var/cache/apt/archives/libc6-armhf-cross_2.27-3ubuntu1cross1.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
所以问题是如何忽略/删除这些包或者加载窗口管理器?
PS 在登录页面上显示海狸标识与16.04版本(升级之前我的电脑上就有这个版本)但是:
>lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic