Outdated SourcesList entry after Opera installation or update (Debian/sid)
-
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.
-
i5513 last edited by
Hello, How can we report a bug about this? Seems like I cannot create an account at https://bugs.opera.com
This change to opera-stable.postinst would solve the problem:
--- /tmp/opera-stable.postinst.current 2026-09-24 23:36:55.706764023 +0200 +++ /tmp/opera-stable.postinst.proposed 2026-09-24 23:44:53.964246904 +0200 @@ -3,6 +3,7 @@ . /usr/share/debconf/confmodule +APT_SOURCES_FILE="/etc/apt/sources.list.d/opera-stable.sources" APT_FILE="/etc/apt/sources.list.d/opera-stable.list" OPERA_REPO="deb.opera.com\/opera-stable\/" @@ -17,7 +18,7 @@ chmod 4755 /usr/lib/x86_64-linux-gnu/opera-stable/opera_sandbox db_get opera-stable/add-deb-source if [ "$RET" = true ]; then - if [ ! -f $APT_FILE ]; then + if [ ! -f $APT_FILE ] && [ ! -f $APT_SOURCES_FILE ]; then cat > $APT_FILE <<EOF # This file makes sure that Opera Browser is kept up-to-date # as part of regular system upgrades