Old Opera still in apt-get even after switching repository

Archived topics about LMDE 1 and LMDE 2
Locked
Quantumboredom

Old Opera still in apt-get even after switching repository

Post by Quantumboredom »

Hi. I'm trying to install the newest version of Opera from the correct repository. Originally (presumably an oversight) the repository for opera In LMDE is set to:

deb http://deb.opera.com/opera/ stable non-free #Opera Browser (final releases)

This is in /etc/apt/sources.list.d/opera.list. I would assume this should be:

deb http://deb.opera.com/opera/ testing non-free #Opera Browser (final releases)

since we are otherwise using the testing repositories.

So I fixed the line, but it turns out that Opera 10.62 exists in the "import" part of:

deb http://packages.linuxmint.com/ debian main upstream import

So while Opera 11.01 shows up now if I do apt-cache show opera, the 10.62 version is the one selected for installation (because the opera.list file referring to the newest version gets read last?)

Is this in error? It seems redundant that you are both including Opera's repository, while at the same time overriding it with your own repository. Also is there a best-practices guide to how I should install the latest version of Opera in this situation? Should I just add the correct repository to the top of sources.list?

Third question, does the order of entries in sources.list matter? Because I think the "Software Sources" GUI application has moved them around. The mint repository:

deb http://packages.linuxmint.com/ debian main upstream import

used to be at the top of sources.list, but after playing with the software sources application it is now at the bottom.

Thanks for any help :)
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
JasonLG

Re: Old Opera still in apt-get even after switching reposito

Post by JasonLG »

Update apt with sudo apt-get update then check.
Quantumboredom

Re: Old Opera still in apt-get even after switching reposito

Post by Quantumboredom »

I've done that (i.e. I know to do apt-get update after changing software sources).

The problem is that Opera 10.62 is in mints custom repository. I.e. it is listed in packages.gz in http://packages.linuxmint.com/dists/deb ... ary-amd64/.

This seems very strange when Opera's repository is also included by itself (but it gets overridden by mints repository since that is read first). Also the included Opera repository is for the stable branch, while Opera also has one for the testing branch which LMDE is based on.

While I'm a noob and all, this does seem like a little bug. I think Opera should be removed from packages.linuxmint.com, and Opera's own debian repository should be used. The correct repository would be:
deb http://deb.opera.com/opera/ testing non-free
dungbeetle
Level 1
Level 1
Posts: 41
Joined: Mon Dec 03, 2007 2:10 pm
Location: Lincolnshire, England
Contact:

Re: Old Opera still in apt-get even after switching reposito

Post by dungbeetle »

I have Opera 11 on mint lmde

Code: Select all

mike@vaio ~ $ apt-cache policy opera
opera:
  Installed: 11.01.1190
  Candidate: 11.01.1190
  Version table:
 *** 11.01.1190 0
        500 http://deb.opera.com/opera/ stable/non-free amd64 Packages
        100 /var/lib/dpkg/status
     10.62.6438 0
        700 http://packages.linuxmint.com/ debian/import amd64 Packages
I have the following in /etc/apt/sources.list.d/opera.list

Code: Select all

# This file makes sure that Opera Browser is kept up-to-date
# as part of regular system upgrades

deb http://deb.opera.com/opera/ stable non-free #Opera Browser (final releases)

# The line above will make sure you get all final public releases.
# Uncomment the following line if you want to get alpha and beta
# releases, too.

# deb http://deb.opera.com/opera-beta/ stable non-free #Opera Browser (beta releases)
No other versions show up if I search synaptic for opera.

You could try adding the above file and (as root)

Code: Select all

apt-get update && apt-get install opera
to see if it upgrades to the new version.
Incidently, I have my debian sources pointing to squeeze now rather than testing as I want to keep this install stable.
PCSpecialist Lafite ultrabook with Skybridge i5
Quantumboredom

Re: Old Opera still in apt-get even after switching reposito

Post by Quantumboredom »

Do you have "deb http://packages.linuxmint.com/ debian main upstream import" in your sources.list? That's the problem I had, i.e. even if a newer version was available in /etc/sources.list.d/opera.list, the one from the mint repository was selected first. Right now I'm running pure debian testing though, but I could have solved the problem by placing the opera respository at the top of /etc/apt/sources.list.
dungbeetle
Level 1
Level 1
Posts: 41
Joined: Mon Dec 03, 2007 2:10 pm
Location: Lincolnshire, England
Contact:

Re: Old Opera still in apt-get even after switching reposito

Post by dungbeetle »

Quantumboredom wrote:Do you have "deb http://packages.linuxmint.com/ debian main upstream import" in your sources.list?
Yes. This is my sources.list:

Code: Select all

deb http://packages.linuxmint.com/ debian main upstream import
deb http://ftp.uk.debian.org/debian squeeze main contrib non-free
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb http://www.debian-multimedia.org squeeze main non-free

# Liquorix sources added by smxi
deb http://liquorix.net/debian/ sid main
PCSpecialist Lafite ultrabook with Skybridge i5
Quantumboredom

Re: Old Opera still in apt-get even after switching reposito

Post by Quantumboredom »

dungbeetle wrote:
Quantumboredom wrote:Do you have "deb http://packages.linuxmint.com/ debian main upstream import" in your sources.list?
Yes. This is my sources.list:

Code: Select all

deb http://packages.linuxmint.com/ debian main upstream import
deb http://ftp.uk.debian.org/debian squeeze main contrib non-free
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb http://www.debian-multimedia.org squeeze main non-free

# Liquorix sources added by smxi
deb http://liquorix.net/debian/ sid main
Very odd. I wonder what the difference is, but I guess it isn't important. Maybe synaptic handles it differently from apt-get. I.e. synaptic automatically chooses the newest one, while apt-get chooses from the repository that is read first. If you do "apt-cache show opera", do you have both versions then?
dungbeetle
Level 1
Level 1
Posts: 41
Joined: Mon Dec 03, 2007 2:10 pm
Location: Lincolnshire, England
Contact:

Re: Old Opera still in apt-get even after switching reposito

Post by dungbeetle »

Yes, interestingly, it shows both:

Code: Select all

mike@vaio ~ $ apt-cache show opera
Package: opera
Version: 10.62.6438
Architecture: amd64
Depends: libc6 (>= 2.7-1), libfontconfig1 (>= 2.4.0), libfreetype6 (>= 2.3.5), libgcc1 (>= 1:4.1.1), libglib2.0-0 (>= 2.16.0), libgstreamer-plugins-base0.10-0 (>= 0.10.16), libgstreamer0.10-0 (>= 0.10.15), libice6 (>= 1:1.0.0), libsm6, libstdc++6 (>= 4.1.1), libx11-6, libxext6, libxft2 (>> 2.1.1), libxml2 (>= 2.6.27), libxrender1, libxt6, zlib1g (>= 1:1.1.4), gstreamer0.10-plugins-good, libxft2, libxrender1, debconf (>= 0.5) | debconf-2.0
Recommends: ttf-linux-libertine | ttf-freefont | ttf-dejavu | ttf-mscorefonts-installer
Suggests: flashplugin-nonfree, cups-client
Provides: www-browser, mail-reader, imap-client, news-reader
Installed-Size: 35688
Maintainer: Opera Packaging Team <packager@opera.com>
Bugs: https://bugs.opera.com/wizard/
Homepage: http://www.opera.com/browser/
Priority: optional
Section: non-free/web
Filename: pool/import/o/opera/opera_10.62.6438_amd64.deb
Size: 15754638
SHA1: 41487255135e0b972d65e9a6bb605f2ea73d37eb
MD5sum: 737c0082add3dfa0cdd6eae0dc53a9da
Description: A fast and secure web browser and Internet suite
 Opera is a small, fast, customizable, powerful and user-friendly web
 browser, as well as an Internet suite, including an email client, an IRC
 client, web developer tools (Opera Dragonfly), and a personal web server
 (Opera Unite).

Package: opera
Version: 11.01.1190
Architecture: amd64
Depends: libc6 (>= 2.3.2), libfontconfig1 (>= 2.4.0), libfreetype6 (>= 2.3.5), libgcc1 (>= 1:4.1.1), libglib2.0-0 (>= 2.16.0), libgstreamer-plugins-base0.10-0 (>= 0.10.16), libgstreamer0.10-0 (>= 0.10.15), libice6 (>= 1:1.0.0), libsm6, libstdc++6 (>= 4.1.1), libx11-6, libxext6, libxft2 (>> 2.1.1), libxml2 (>= 2.6.27), libxrender1, libxt6, zlib1g (>= 1:1.1.4), gstreamer0.10-plugins-good, debconf (>= 0.5) | debconf-2.0, ttf-dejavu | ttf-freefont | ttf-linux-libertine | ttf-liberation | ttf-mscorefonts-installer
Recommends: flashplugin-nonfree, cups-client
Provides: www-browser, mail-reader, imap-client, news-reader
Installed-Size: 33291
Maintainer: Opera Packaging Team <packager@opera.com>
Bugs: https://bugs.opera.com/wizard/
Homepage: http://www.opera.com/browser/
Priority: optional
Section: non-free/web
Filename: pool/non-free/o/opera/opera_11.01.1190_amd64.deb
Size: 10596292
MD5sum: bc8dda2f239d14b27291907031a9188f
Description: A fast and secure web browser and Internet suite
 Opera is a small, fast, customizable, powerful and user-friendly web
 browser, as well as an Internet suite, including an email client, an IRC
 client, web developer tools (Opera Dragonfly), and a personal web server
 (Opera Unite).

mike@vaio ~ $ 
I have been trying to remember what route I used to install it. It was either by using smxi or by getting the .deb direct from the opera website, and I am thinking it was the latter.....

Edit: I am now pretty sure I grabbed the .deb from the opera site. This link may be useful. http://www.opera.com/support/mastering/sysadmin/
I think that anything under sources.list.d must over-ride entries in sources.list.
Best idea is to download the .deb as it also installs the keyring for the repo and sets everything up.
PCSpecialist Lafite ultrabook with Skybridge i5
Quantumboredom

Re: Old Opera still in apt-get even after switching reposito

Post by Quantumboredom »

Thanks for the link :). Nice that the installer is smart enough to add it's own opera.list, guess I'll just download the .deb from Opera from now on.
sgosnell

Re: Old Opera still in apt-get even after switching reposito

Post by sgosnell »

Why not just comment out the linuxmint repo, at least while you install Opera? It's not hard to temporarily disable a repository.
dfx

Re: Old Opera still in apt-get even after switching reposito

Post by dfx »

You can use pinning to prefer the version from opera repo. I added the follwing on top of /etc/apt/preferences. This way you should also get updates if available

Code: Select all

Package: opera
Pin: release o=Opera Software ASA
Pin-Priority: 800
Another possibility installing the current version is to force it during installation

Code: Select all

aptitude install opera=11.01.1190
Quantumboredom

Re: Old Opera still in apt-get even after switching reposito

Post by Quantumboredom »

Alright there are plenty of ways to get the latest Opera version :). But I still say that Opera probably shouldn't be in the mint repository at all. It seems much better to only point to Opera's repository (since it is made for debian testing anyway).
Locked

Return to “LMDE Archive”