linuxmint / linuxmint/mintsources
Modernized sources not handled for official package repositories
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 59
- Forks
- 80
- PR merge metrics
- No merged PRs in 30d
Description
mintsources won't recognize that the official package repositories .list has been converted to .sources format using apt modernize-sources and will just create a default .list file again, which will not only dismiss previous settings and mirrors, but also causes a heap of apt warnings because of duplicate entries:
Warning: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/official-package-repositories.list:5 and /etc/apt/sources.list.d/official-package-repositories.sources:4
Warning: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/official-package-repositories.list:5 and /etc/apt/sources.list.d/official-package-repositories.sources:4
Warning: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/official-package-repositories.list:5 and /etc/apt/sources.list.d/official-package-repositories.sources:4
Warning: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/official-package-repositories.list:5 and /etc/apt/sources.list.d/official-package-repositories.sources:4
Warning: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/official-package-repositories.list:5 and /etc/apt/sources.list.d/official-package-repositories.sources:4
Warning: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/official-package-repositories.list:5 and /etc/apt/sources.list.d/official-package-repositories.sources:4
Warning: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/official-package-repositories.list:5 and /etc/apt/sources.list.d/official-package-repositories.sources:4
Warning: Target Contents-deb (main/Contents-amd64) is configured multiple times in /etc/apt/sources.list.d/official-package-repositories.list:5 and /etc/apt/sources.list.d/official-package-repositories.sources:4
Warning: Target Contents-deb (main/Contents-i386) is configured multiple times in /etc/apt/sources.list.d/official-package-repositories.list:5 and /etc/apt/sources.list.d/official-package-repositories.sources:4
Warning: Target Contents-deb (main/Contents-all) is configured multiple times in /etc/apt/sources.list.d/official-package-repositories.list:5 and /etc/apt/sources.list.d/official-package-repositories.sources:4
Warning: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/official-package-repositories.list:5 and /etc/apt/sources.list.d/official-package-repositories.sources:4
Warning: Target Packages (contrib/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/official-package-repositories.list:5 and /etc/apt/sources.list.d/official-package-repositories.sources:4
Warning: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/official-package-repositories.list:5 and /etc/apt/sources.list.d/official-package-repositories.sources:4
[...]
mintsources 2.3.6, LMDE7
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the mintsources code that handles official-package-repositories.list and repository files under /etc/apt/sources.list.d. Reproduce the LMDE7 case with an official-package-repositories.sources file created by apt modernize-sources. Done means existing .sources settings and mirrors are preserved, no duplicate .list is created, and the apt warnings no longer occur.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, python
- Domain
- operating-systems, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100