Old Opera still in apt-get even after switching repository

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Old Opera still in apt-get even after switching repository

Postby Quantumboredom on Fri Feb 18, 2011 6:43 pm

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 :)
Quantumboredom
Level 1
Level 1
 
Posts: 13
Joined: Sun May 23, 2010 9:16 am

Linux Mint is funded by ads and donations.
 

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

Postby JasonLG on Sun Feb 20, 2011 5:36 am

Update apt with sudo apt-get update then check.
"I see" said the blind man to the deaf man who stuck his wooden leg out the window to check the weather.
JasonLG
Level 7
Level 7
 
Posts: 1624
Joined: Thu May 20, 2010 9:15 pm
Location: Polk City, Iowa USA

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

Postby Quantumboredom on Sun Feb 20, 2011 6:37 am

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/debian/import/binary-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
Quantumboredom
Level 1
Level 1
 
Posts: 13
Joined: Sun May 23, 2010 9:16 am

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

Postby dungbeetle on Sun Feb 20, 2011 2:22 pm

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.
Sony Vaio VGN-FW31E
User avatar
dungbeetle
Level 1
Level 1
 
Posts: 40
Joined: Mon Dec 03, 2007 2:10 pm
Location: Lincolnshire, England

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

Postby Quantumboredom on Sun Feb 20, 2011 7:49 pm

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.
Quantumboredom
Level 1
Level 1
 
Posts: 13
Joined: Sun May 23, 2010 9:16 am

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

Postby dungbeetle on Mon Feb 21, 2011 4:19 am

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
Sony Vaio VGN-FW31E
User avatar
dungbeetle
Level 1
Level 1
 
Posts: 40
Joined: Mon Dec 03, 2007 2:10 pm
Location: Lincolnshire, England

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

Postby Quantumboredom on Mon Feb 21, 2011 8:24 am

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?
Quantumboredom
Level 1
Level 1
 
Posts: 13
Joined: Sun May 23, 2010 9:16 am

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

Postby dungbeetle on Mon Feb 21, 2011 9:15 am

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.
Sony Vaio VGN-FW31E
User avatar
dungbeetle
Level 1
Level 1
 
Posts: 40
Joined: Mon Dec 03, 2007 2:10 pm
Location: Lincolnshire, England

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

Postby Quantumboredom on Mon Feb 21, 2011 10:25 am

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.
Quantumboredom
Level 1
Level 1
 
Posts: 13
Joined: Sun May 23, 2010 9:16 am

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

Postby sgosnell on Mon Feb 21, 2011 1:06 pm

Why not just comment out the linuxmint repo, at least while you install Opera? It's not hard to temporarily disable a repository.
Asus eee-pc 900 w/ 32GB SSD.
sgosnell
Level 5
Level 5
 
Posts: 686
Joined: Fri Sep 10, 2010 9:32 pm
Location: Baja Oklahoma

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

Postby dfx on Mon Feb 21, 2011 3:59 pm

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
dfx
Level 1
Level 1
 
Posts: 34
Joined: Sun Nov 14, 2010 12:35 pm

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

Postby Quantumboredom on Mon Feb 21, 2011 4:49 pm

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).
Quantumboredom
Level 1
Level 1
 
Posts: 13
Joined: Sun May 23, 2010 9:16 am

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: No registered users and 1 guest