不久前我全新安装了 21.10,今天我想升级到 22.04。
但是,我已经通过 Mint 存储库安装了 Chromium,因为它不再位于 Ubuntu 存储库中。之后,我的系统信息告诉我,我正在运行 Mint 20.3,但事实并非如此。
lsb_release -a 说:
No LSB modules are available.
Distributor ID: Linuxmint
Description: Linux Mint 20.3
Release: 20.3
Codename: una
cat /etc/*-release 的输出显示:
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=20.3
DISTRIB_CODENAME=una
DISTRIB_DESCRIPTION="Linux Mint 20.3 Una"
NAME="Linux Mint"
VERSION="20.3 (Una)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 20.3"
VERSION_ID="20.3"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=una
UBUNTU_CODENAME=focal
apt-cache policy base-files 的输出是:
base-files:
Installiert: 20.3.0
Installationskandidat: 20.3.0
Versionstabelle:
*** 20.3.0 100
-1 http://packages.linuxmint.com una/upstream amd64 Packages
100 /var/lib/dpkg/status
11.1ubuntu5 500
500 http://gb.archive.ubuntu.com/ubuntu impish/main amd64 Packages
grep -Ev '(^#|^$|deb-src)' /etc/apt/sources.list /etc/apt/sources.list.d/| nl 给了我:
1 /etc/apt/sources.list:deb http://gb.archive.ubuntu.com/ubuntu/ impish main restricted
2 /etc/apt/sources.list:deb http://gb.archive.ubuntu.com/ubuntu/ impish-updates main restricted
3 /etc/apt/sources.list:deb http://gb.archive.ubuntu.com/ubuntu/ impish universe
4 /etc/apt/sources.list:deb http://gb.archive.ubuntu.com/ubuntu/ impish-updates universe
5 /etc/apt/sources.list:deb http://gb.archive.ubuntu.com/ubuntu/ impish multiverse
6 /etc/apt/sources.list:deb http://gb.archive.ubuntu.com/ubuntu/ impish-updates multiverse
7 /etc/apt/sources.list:deb http://gb.archive.ubuntu.com/ubuntu/ impish-backports main restricted universe multiverse
8 /etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu impish-security main restricted
9 /etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu impish-security universe
10 /etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu impish-security multiverse
11 /etc/apt/sources.list.d/gerardpuig-ubuntu-ppa-impish.list:deb http://ppa.launchpad.net/gerardpuig/ppa/ubuntu/ impish main
12 /etc/apt/sources.list.d/google-earth-pro.list:deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main
13 /etc/apt/sources.list.d/insync.list:deb http://apt.insync.io/ubuntu impish non-free contrib
14 /etc/apt/sources.list.d/mint-una.list:deb http://packages.linuxmint.com una upstream
15 /etc/apt/sources.list.d/mono-official-stable.list:deb https://download.mono-project.com/repo/ubuntu stable-focal main
16 /etc/apt/sources.list.d/signal-xenial.list:deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main
cat /var/log/installer/media-info 告诉我:
Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
这正是我安装的!所以我运行的是 21.10,但 Chromium 安装“劫持”了我的系统,并告诉我我使用的是 Mint 20.3
当我尝试的时候
sudo do-release-upgrade -d
但未能成功:
“Ubuntu 的新发布版本将在开发版本中搜索更新,但只能从最简单的版本开始。”
(抱歉,我是用德语系统,希望它能让我理解它所告诉我的内容。基本上:不会让你将 Mint 更新到 Ubuntu)
我已经尝试清除 Chromium,但没有成功。
那么,我该怎么做才能将系统升级到 22.04,而无需重新安装?我如何才能“摆脱”错误的系统解释?
答案1
成功了!强制“基础文件”使用 impish 存储库作为源,一切恢复正常。双启动 GRUB 屏幕仍然显示它是 Mint,但系统升级后就消失了。谢谢!