Apt layer does not remove previously defined repositories
Bug #1716846 reported by
Antti Rahikainen
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Apt layer |
Confirmed
|
High
|
Unassigned |
Bug Description
When setting a repository through install_sources and install_keys it creates a new entry to /etc/apt/
If for whatever reason that repository is not available anymore, modifying the install_sources and install_keys to point new repositories old entries are not removed.
This causes update-config hook to fail as it is not able run "apt update" successfully.
To post a comment you must log in.
One method would be rendering the defined repositories under sources.list.d and trusted.gpg.d respectively and render those again whenever the config optionsa are changed.