从 Ubuntu 16.04 升级到 Ubuntu 18.04 后出现错误!

从 Ubuntu 16.04 升级到 Ubuntu 18.04 后出现错误!

运行后,sudo apt update && sudo apt -y dist-upgrade我得到了损坏的 python3 包错误(未满足的依赖项),但我没有费心去纠正它,而是重新启动。重新启动后,我无法登录,不知怎么的,我找到了一个解决方法(基本上是按 ctrl + alt + f4 并在登录后输入 startx)。但现在当我执行 uname -a 时,我得到的是:

Linux horcrux 4.4.0-187-generic #217-Ubuntu SMP Tue Jul 21 04:18:15 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

lsb_release -a 结果:

Distributor ID: Ubuntu
Description:    Ubuntu 16.04.6 LTS
Release:    16.04
Codename:   xenial

所以基本上这仍然意味着我有一个 Ubuntu 16.04 的内核,对吧?但是我的整个 GUI 现在都是 Ubuntu 18.04 的,还有我的 glibc。以下是我到目前为止尝试过的:

  • 执行sudo do-release-upgarde但是它返回 Abort 而没有任何错误。
  • 已尝试sudo apt-get -f installsudo apt install --fix-missing但收效甚微。

还有其他方法可以解决这个问题吗?

编辑:ldd --version

ldd (Ubuntu GLIBC 2.27-3ubuntu1.2) 2.27
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

apt-cache 策略 libc-bin

  Installed: 2.27-3ubuntu1.2
  Candidate: 2.27-3ubuntu1.2
  Version table:
 *** 2.27-3ubuntu1.2 100
        100 /var/lib/dpkg/status
     2.23-0ubuntu11.2 500
        500 http://in.archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages
        500 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
     2.23-0ubuntu3 500
        500 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 Packages

来源.列表.d/

aims-ubuntu-sagemath-xenial.list                       ondrej-ubuntu-php-xenial.list
aims-ubuntu-sagemath-xenial.list.save                  ondrej-ubuntu-php-xenial.list.save
cybermax-dexter-ubuntu-sdl2-backport-xenial.list       openjdk-r-ubuntu-ppa-xenial.list
cybermax-dexter-ubuntu-sdl2-backport-xenial.list.save  openjdk-r-ubuntu-ppa-xenial.list.save
deadsnakes-ubuntu-ppa-xenial.list                      pgdg.list
deadsnakes-ubuntu-ppa-xenial.list.save                 pgdg.list.save
diwic-ubuntu-hda-xenial.list                           samoilov-lex-ubuntu-aftl-stable-xenial.list
diwic-ubuntu-hda-xenial.list.save                      samoilov-lex-ubuntu-aftl-stable-xenial.list.save
fossfreedom-ubuntu-packagefixes-xenial.list            sublime-text.list
fossfreedom-ubuntu-packagefixes-xenial.list.save       sublime-text.list.save
google-chrome.list                                     system76-ubuntu-pop-xenial.list
google-chrome.list.save                                system76-ubuntu-pop-xenial.list.save
hda-me-ubuntu-xscreensaver-xenial.list                 teams.list
hda-me-ubuntu-xscreensaver-xenial.list.save            teams.list.save
jonathonf-ubuntu-python-3_6-xenial.list                ubuntu-audio-dev-ubuntu-alsa-daily-xenial.list
jonathonf-ubuntu-python-3_6-xenial.list.save           ubuntu-audio-dev-ubuntu-alsa-daily-xenial.list.save
kazam-team-ubuntu-stable-series-xenial.list            webupd8team-ubuntu-java-xenial.list
kazam-team-ubuntu-stable-series-xenial.list.save       webupd8team-ubuntu-java-xenial.list.save
nodesource.list                                        zman0900-ubuntu-ppa-xenial.list
nodesource.list.save                                   zman0900-ubuntu-ppa-xenial.list.save

这是我的命令历史记录: https://docs.google.com/document/d/1tGXEvYnnUgxh6Zf9CfIeSPshTIXDL6iFJ5S3m849JLU/edit?usp=sharing

相关内容