"Restore default configuration" can restore Virginia/Jammy repositories on an upgraded Mint 22.3 Zena system
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 58/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- python
调研方向
首先定位 Software Sources 中 “Restore the default configuration” 的路径,并检查它在写入 official-package-repositories.list 之前如何读取 /etc/linuxmint/info 和 /etc/os-release。复现 issue 中描述的 Zena/Virginia 不匹配情况,然后验证当身份不一致时,操作会拒绝继续,或显示醒目的警告。
由索引模型根据 Issue 内容生成。
描述
Summary
On a Linux Mint 22.3 Zena system, Software Sources restored the default repositories as Linux Mint 21.3 Virginia / Ubuntu 22.04 Jammy.
The system had been upgraded to Mint 22.3 and was otherwise running predominantly Zena/Noble packages. However, an old base-files package (21.3.0) was still installed.
This produced an inconsistent system identity:
/etc/linuxmint/info:
RELEASE=22.3
CODENAME=zena
DESCRIPTION="Linux Mint 22.3 Zena"
while /etc/os-release reported:
VERSION="21.3 (Virginia)"
VERSION_CODENAME=virginia
UBUNTU_CODENAME=jammy
Software Sources consequently displayed:
Main (virginia)
Base (jammy)
Using Restore the default configuration generated an official-package-repositories.list containing Virginia/Jammy repositories, without warning that /etc/linuxmint/info identified the installed release as Zena.
Result
Subsequent APT operations started replacing some Zena/Noble packages with Virginia/Jammy packages.
Examples recorded in APT history include:
chromium:
152.0.7977.64~linuxmint1+zena
-> 152.0.7977.82~linuxmint1+virginia
and NVIDIA packages such as:
libnvidia-common-580:
580.173.02-0ubuntu0.24.04.1
-> 580.178.04-0ubuntu0.22.04.1
Other Jammy packages were also introduced into the otherwise Noble-based system.
The problem eventually became visible when Docker installed pigz 2.6 from Jammy while the system already had zlib 1.3 from Noble. unpigz then failed with:
pigz: abort: zlib version less than 1.2.3
Recovery
The system was recovered by restoring the repositories to:
deb http://packages.linuxmint.com zena main upstream import backport
deb http://archive.ubuntu.com/ubuntu noble main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu noble-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu noble-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ noble-security main restricted universe multiverse
After apt update, a simulated dist-upgrade proposed:
101 upgraded, 0 newly installed, 0 to remove
and correctly replaced the affected Jammy packages with their Noble/Zena counterparts.
The remaining identity inconsistency was traced to:
base-files:
Installed: 21.3.0
Zena version: 13ubuntu10mint22.3.0
Installing the Zena package explicitly with --allow-downgrades restored /etc/os-release to:
VERSION="22.3 (Zena)"
VERSION_CODENAME=zena
UBUNTU_CODENAME=noble
The system is now consistent again and Docker works normally with Noble's pigz 2.8.
Suggested safeguard
Before Restore the default configuration rewrites the official repositories, Software Sources could compare the release information from /etc/linuxmint/info with /etc/os-release.
If they disagree (for example Zena vs Virginia), it could either:
- refuse to restore the repositories until the inconsistency is resolved, or
- display a prominent warning explaining that the detected system identities do not match.
This would prevent an apparently harmless "restore defaults" operation from configuring repositories belonging to an older Mint/Ubuntu release.
Environment
- Linux Mint 22.3 Zena
- Ubuntu base: Noble 24.04
- Desktop: MATE
- Architecture: amd64
mintsystem: 8.6.5base-filesbefore recovery: 21.3.0base-filesafter recovery: 13ubuntu10mint22.3.0
- 主要语言
- Python
- 星标
- 59
- 派生
- 80
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
linuxmint/mintsources 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
linuxmint/mintsources#215 · 2 条评论 ·
-
manually added sources without the enabled flag show up as unchecked in "additional repositories" 未关闭
难度 3/5 1-2 天 新手友好度 55/100
linuxmint/mintsources#280 ·
-
难度 3/5 1-2 天 新手友好度 52/100
linuxmint/mintsources#278 ·
-
难度 3/5 1-2 天 新手友好度 45/100
linuxmint/mintsources#274 ·
-
难度 3/5 1-2 天 新手友好度 48/100
linuxmint/mintsources#273 · 1 条评论 ·
查看 linuxmint/mintsources 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 78/100
-
enhancement
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 74/100