Outdated SourcesList entry after Opera installation or update (Debian/sid)
-
alexs last edited by alexs
@Opera Dev: Please update the SourcesList file (e.g. opera-stable.list) in
/etc/apt/sources.list.d/according to the latest Debian specifications. Currently the following notice appears after an Opera update:Notice: Some sources can be modernized. Run 'apt modernize-sources' to do so.After apt
apt modernize-sourcesthe compliant fileopera-stable.sourcesis created with a warning:Modernizing /etc/apt/sources.list.d/opera-stable.list... - Writing /etc/apt/sources.list.d/opera-stable.sources Warnung: Could not determine Signed-By for URIs: https://deb.opera.com/opera-stable/, Suites: stableI am modifying opera-stable.sources with the following correct
opera-stable.sourcesfile in/etc/apt/sources.list.d/:Types: deb URIs: https://deb.opera.com/opera-stable/ Suites: stable Components: non-free Architectures: amd64 Signed-By: /usr/share/keyrings/opera-browser.gpgHowever, after the next Opera update, a non-compliant opera-stable.list is created again, and the following warnings appear because there are now 2 SourcesList files:
Warning: Target Packages (non-free/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/opera-stable.list:4 and /etc/apt/sources.list.d/opera-stable.sources:1 Warning: Target Packages (non-free/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/opera-stable.list:4 and /etc/apt/sources.list.d/opera-stable.sources:1 Warning: Target Translations (non-free/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/opera-stable.list:4 and /etc/apt/sources.list.d/opera-stable.sources:1 Warning: Target Translations (non-free/i18n/Translation-de) is configured multiple times in /etc/apt/sources.list.d/opera-stable.list:4 and /etc/apt/sources.list.d/opera-stable.sources:1 Warning: Target DEP-11 (non-free/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/opera-stable.list:4 and /etc/apt/sources.list.d/opera-stable.sources:1 Warning: Target DEP-11 (non-free/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/opera-stable.list:4 and /etc/apt/sources.list.d/opera-stable.sources:1 Warning: Target Contents-deb (non-free/Contents-amd64) is configured multiple times in /etc/apt/sources.list.d/opera-stable.list:4 and /etc/apt/sources.list.d/opera-stable.sources:1 Warning: Target Contents-deb (non-free/Contents-all) is configured multiple times in /etc/apt/sources.list.d/opera-stable.list:4 and /etc/apt/sources.list.d/opera-stable.sources:1 Warning: Target Packages (non-free/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/opera-stable.list:4 and /etc/apt/sources.list.d/opera-stable.sources:1 Warning: Target Packages (non-free/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/opera-stable.list:4 and /etc/apt/sources.list.d/opera-stable.sources:1 Warning: Target Translations (non-free/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/opera-stable.list:4 and /etc/apt/sources.list.d/opera-stable.sources:1 Warning: Target Translations (non-free/i18n/Translation-de) is configured multiple times in /etc/apt/sources.list.d/opera-stable.list:4 and /etc/apt/sources.list.d/opera-stable.sources:1 Warning: Target DEP-11 (non-free/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/opera-stable.list:4 and /etc/apt/sources.list.d/opera-stable.sources:1 Warning: Target DEP-11 (non-free/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/opera-stable.list:4 and /etc/apt/sources.list.d/opera-stable.sources:1 Warning: Target Contents-deb (non-free/Contents-amd64) is configured multiple times in /etc/apt/sources.list.d/opera-stable.list:4 and /etc/apt/sources.list.d/opera-stable.sources:1 Warning: Target Contents-deb (non-free/Contents-all) is configured multiple times in /etc/apt/sources.list.d/opera-stable.list:4 and /etc/apt/sources.list.d/opera-stable.sources:1I currently have to delete the
opera-stable.listfile after every Opera update.Source:
https://wiki.debian.org/SourcesList#Unstable
https://deb.opera.com/manual.html -
jepjepus last edited by
@Sherlockholmes007 this is still to be solved.
I get the same issue after upgrading to Debian 13 and modernizing sources for repositories.So now you have 2 types of Debian: the modernized one (with .sources file) and the old style (with .list file).
I think that it is not so difficult checking a condition to act as it corresponds: adding or not the .list or the .sources file.
Thanks,
Joep. -
evilbunny2008 last edited by
I finally got round to modernising all my systems and hit the same problem.
Has anyone found a solution?
Making an empty file and using chattr +i on it also doesn't help because then package updates fails.
While apt in Debian 13 urges people to migrate, .sources files seem to be supported in Ubuntu 24.04 and Debian 12.
Why does the Opera package always need to create/update an apt config file any way?
-
jepjepus last edited by
I ended up commenting out the 'deb' line in the opera-stable.list file and left it coexisting with the opera-stable.sources I created.
jepjepus@debian:/etc/apt/sources.list.d$ cat opera-stable.list # This file makes sure that Opera Browser is kept up-to-date # as part of regular system upgrades #deb https://deb.opera.com/opera-stable/ stable non-free #Opera Browser (final releases) jepjepus@debian:/etc/apt/sources.list.d$ cat opera-stable.sources Types: deb URIs: https://deb.opera.com/opera-stable/ Suites: stable Components: non-free Signed-By: /usr/share/keyrings/opera.gpgOther browser's developers team already solved this issue.
Regards,
Josep -
evilbunny2008 last edited by
@jepjepus said in Outdated SourcesList entry after Opera installation or update (Debian/sid):
I ended up commenting out the 'deb' line in the opera-stable.list file and left it coexisting with the opera-stable.sources I created.
Thanks!
I hadn't considered doing that as I assumed it'd be blindly overwritten when using chattr failed to work.
-
evilbunny2008 last edited by
Now if the Opera package could stop grep'ing the /etc/apt/sources.list file that would be nice too, at least there doesn't seem to be any issues with that being a blank file I suppose.