"Restore default configuration" can restore Virginia/Jammy repositories on an upgraded Mint 22.3 Zena system
まだ誰も着手していません。
評価
- 難易度
- 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 の不一致を再現し、その後、ID が一致しない場合に操作が続行を拒否するか、目立つ警告を表示することを確認します。
索引モデルが 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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
-
essnmx good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
-
[Feature] 奇物选择添加优先级 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
syfoud/Simulated_Scepter#174 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Giskard-AI/giskard-oss#2840 · コメント 1 件 ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success オープンarea: repo bug perceived difficulty: 2
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
yeti-platform/yeti#1380 ·