<SOLVED>When versions are same, packages installed from Testing

Archived topics about LMDE 1 and LMDE 2
Locked
User avatar
Fred Barclay
Level 12
Level 12
Posts: 4185
Joined: Sat Sep 13, 2014 11:12 am
Location: USA primarily

<SOLVED>When versions are same, packages installed from Testing

Post by Fred Barclay »

G'day chaps! I've noticed a pecularity with my machine. Whenever a package, say "aircrack-ng", has the same version number in the Debian Testing repo as in Stable, the package is pulled from the Testing repo, even though Stable is pinned higher than Testing. I'd like to stop this from happening; I only want a few specific packages (such as firejail) from Testing.

My Testing repos:

Code: Select all

fred@aussie ~ $ cat /etc/apt/sources.list.d/debian-testing.list
deb http://httpredir.debian.org/debian/ testing main
deb-src http://httpredir.debian.org/debian/ testing main

deb http://security.debian.org/ testing/updates main
deb-src http://security.debian.org/ testing/updates main
My Stable repos:

Code: Select all

fred@aussie ~ $ cat /etc/apt/sources.list.d/official-package-repositories.list
deb http://packages.linuxmint.com betsy main upstream import 

deb ftp://<removed-for-privacy>/ jessie main contrib non-free
deb ftp://<removed-for-privacy>/ jessie-updates main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free

deb http://www.deb-multimedia.org jessie main non-free

deb http://extra.linuxmint.com betsy main
Looking over my pin priorities, I noticed that Jessie doesn't actually have a pin; however, apt policy <package> clearly shows a higher priority for Jessie than Testing:

Code: Select all

fred@aussie ~ $ apt policy aircrack-ng
aircrack-ng:
  Installed: 1:1.2-0~beta3-4
  Candidate: 1:1.2-0~beta3-4
  Version table:
 *** 1:1.2-0~beta3-4 0
        300 http://httpredir.debian.org/debian/ testing/main amd64 Packages
        500 ftp://<removed-for-privacy>/ jessie/main amd64 Packages
        100 /var/lib/dpkg/status
Should I create a pin for packages from Jessie; and if so, what priority should I give them to supercede those from Testing while not interfering with the Mint repos?

Thanks!
Fred

EDIT: Just to be clear:
When a package has a different version in Stable then in Testing, the package is installed from Stable.
Only when a package has the same version in both Stable and Testing does apt-get install from the Testing repo.
I want to stop this behaviour, so that all packages are installed from Stable, except for the few from Testing that I explicitly installed with apt-get -t testing install <package>.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Image
"Once you can accept the universe as matter expanding into nothing that is something, wearing stripes with plaid comes easy."
- Albert Einstein
grizzler

Re: When versions are same, packages installed from Testing

Post by grizzler »

Creating another pin file won't change anything. Jessie already has a higher pin value (500) than Stretch.

I'm not sure why you think the package was installed specifically from Testing in this case, unless it's the fact that both sources are listed together. Which makes sense, I suppose, as Jessie and Stretch provide the exact same file from the pool directory (e.g. ftp://ftp.debian.org/debian/pool/main/a/aircrack-ng).
This will always happen when version numbers are identical. There's no way to store two files with the exact same name in the same directory.

Edit
Use apt-show-versions -b | grep testing to see what the system thinks is installed from testing.
User avatar
Fred Barclay
Level 12
Level 12
Posts: 4185
Joined: Sat Sep 13, 2014 11:12 am
Location: USA primarily

Re: When versions are same, packages installed from Testing

Post by Fred Barclay »

Hi grizzler. :)

aircrack-ng was definitely installed from the testing repo:

Code: Select all

fred@aussie ~ $ sudo apt-get install aircrack-ng
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  ieee-data
The following NEW packages will be installed:
  aircrack-ng ieee-data
0 upgraded, 2 newly installed, 0 to remove and 12 not upgraded.
Need to get 1,265 kB of archives.
After this operation, 6,065 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://httpredir.debian.org/debian/ testing/main aircrack-ng amd64 1:1.2-0~beta3-4 [435 kB]
...
Betsy thinks the following are installed from testing:

Code: Select all

fred@aussie ~ $ apt-show-versions -b | grep testing
firejail:amd64/testing
gpredict:amd64/testing
libjpeg-progs:amd64/testing
libjpeg9:amd64/testing
Firejail and gpredict I expected, though I'm not sure about the libjpeg packages. (Maybe a dependency? I'll have to check.) However, I also know that aircrack-ng and etherape were installed from testing as well; but as you see they're not shown here.

Thanks!
Image
"Once you can accept the universe as matter expanding into nothing that is something, wearing stripes with plaid comes easy."
- Albert Einstein
killer de bug

Re: When versions are same, packages installed from Testing

Post by killer de bug »

Could you please post the output of

Code: Select all

inxi -r && apt policy
User avatar
Fred Barclay
Level 12
Level 12
Posts: 4185
Joined: Sat Sep 13, 2014 11:12 am
Location: USA primarily

Re: When versions are same, packages installed from Testing

Post by Fred Barclay »

Here you go:

Code: Select all

fred@aussie ~ $ inxi -r && apt policy
Repos:     Active apt sources in file: /etc/apt/sources.list.d/arc-theme.list
           deb http://download.opensuse.org/repositories/home:/Horst3180/Debian_8.0/ /
           Active apt sources in file: /etc/apt/sources.list.d/debian-testing.list
           deb http://httpredir.debian.org/debian/ testing main
           deb-src http://httpredir.debian.org/debian/ testing main
           deb http://security.debian.org/ testing/updates main
           deb-src http://security.debian.org/ testing/updates main
           Active apt sources in file: /etc/apt/sources.list.d/jessie-backports.list
           deb http://httpredir.debian.org/debian jessie-backports main contrib non-free
           Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
           deb http://packages.linuxmint.com betsy main upstream import
           deb ftp://debian.cites.illinois.edu/pub/debian/ jessie main contrib non-free
           deb ftp://debian.cites.illinois.edu/pub/debian/ jessie-updates main contrib non-free
           deb http://security.debian.org/ jessie/updates main contrib non-free
           deb http://www.deb-multimedia.org jessie main non-free
           deb http://extra.linuxmint.com betsy main
           Active apt sources in file: /etc/apt/sources.list.d/official-source-repositories.list
           deb-src http://packages.linuxmint.com betsy main upstream import
           deb-src ftp://debian.cites.illinois.edu/pub/debian/ jessie main contrib non-free
           deb-src ftp://debian.cites.illinois.edu/pub/debian/ jessie-updates main contrib non-free
           deb-src http://security.debian.org/ jessie/updates main contrib non-free
           deb-src http://www.deb-multimedia.org jessie main non-free
           deb-src http://extra.linuxmint.com betsy main
           Active apt sources in file: /etc/apt/sources.list.d/solydxk.list
           deb http://repository.solydxk.com/ solydxk main upstream import
           Active apt sources in file: /etc/apt/sources.list.d/vbox.list
           deb http://download.virtualbox.org/virtualbox/debian jessie contrib
           Active apt sources in file: /etc/apt/sources.list.d/vivaldi-beta.list
           deb http://repo.vivaldi.com/beta/deb/ stable main
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://repo.vivaldi.com/beta/deb/ stable/main i386 Packages
     release o=Vivaldi Technologies,a=stable,l=Official Vivaldi package repository,c=main
     origin repo.vivaldi.com
 500 http://repo.vivaldi.com/beta/deb/ stable/main amd64 Packages
     release o=Vivaldi Technologies,a=stable,l=Official Vivaldi package repository,c=main
     origin repo.vivaldi.com
 500 http://download.virtualbox.org/virtualbox/debian/ jessie/contrib i386 Packages
     release o=Oracle Corporation,n=jessie,l=Oracle Corporation,c=contrib
     origin download.virtualbox.org
 500 http://download.virtualbox.org/virtualbox/debian/ jessie/contrib amd64 Packages
     release o=Oracle Corporation,n=jessie,l=Oracle Corporation,c=contrib
     origin download.virtualbox.org
 150 http://repository.solydxk.com/ solydxk/import i386 Packages
     release v=1,o=SolydXK,a=solydxk,n=solydxk-8,l=SolydXK,c=import
     origin repository.solydxk.com
 150 http://repository.solydxk.com/ solydxk/upstream i386 Packages
     release v=1,o=SolydXK,a=solydxk,n=solydxk-8,l=SolydXK,c=upstream
     origin repository.solydxk.com
 150 http://repository.solydxk.com/ solydxk/main i386 Packages
     release v=1,o=SolydXK,a=solydxk,n=solydxk-8,l=SolydXK,c=main
     origin repository.solydxk.com
 150 http://repository.solydxk.com/ solydxk/import amd64 Packages
     release v=1,o=SolydXK,a=solydxk,n=solydxk-8,l=SolydXK,c=import
     origin repository.solydxk.com
 150 http://repository.solydxk.com/ solydxk/upstream amd64 Packages
     release v=1,o=SolydXK,a=solydxk,n=solydxk-8,l=SolydXK,c=upstream
     origin repository.solydxk.com
 150 http://repository.solydxk.com/ solydxk/main amd64 Packages
     release v=1,o=SolydXK,a=solydxk,n=solydxk-8,l=SolydXK,c=main
     origin repository.solydxk.com
 500 http://extra.linuxmint.com/ betsy/main i386 Packages
     release v=2,o=linuxmint,a=betsy,n=betsy,l=linuxmint,c=main
     origin extra.linuxmint.com
 500 http://extra.linuxmint.com/ betsy/main amd64 Packages
     release v=2,o=linuxmint,a=betsy,n=betsy,l=linuxmint,c=main
     origin extra.linuxmint.com
 500 http://www.deb-multimedia.org/ jessie/non-free i386 Packages
     release o=Unofficial Multimedia Packages,a=stable,n=jessie,l=Unofficial Multimedia Packages,c=non-free
     origin www.deb-multimedia.org
 500 http://www.deb-multimedia.org/ jessie/main i386 Packages
     release o=Unofficial Multimedia Packages,a=stable,n=jessie,l=Unofficial Multimedia Packages,c=main
     origin www.deb-multimedia.org
 500 http://www.deb-multimedia.org/ jessie/non-free amd64 Packages
     release o=Unofficial Multimedia Packages,a=stable,n=jessie,l=Unofficial Multimedia Packages,c=non-free
     origin www.deb-multimedia.org
 500 http://www.deb-multimedia.org/ jessie/main amd64 Packages
     release o=Unofficial Multimedia Packages,a=stable,n=jessie,l=Unofficial Multimedia Packages,c=main
     origin www.deb-multimedia.org
 500 http://security.debian.org/ jessie/updates/non-free Translation-en
 500 http://security.debian.org/ jessie/updates/main Translation-en
 500 http://security.debian.org/ jessie/updates/contrib Translation-en
 500 http://security.debian.org/ jessie/updates/non-free i386 Packages
     release v=8,o=Debian,a=stable,n=jessie,l=Debian-Security,c=non-free
     origin security.debian.org
 500 http://security.debian.org/ jessie/updates/contrib i386 Packages
     release v=8,o=Debian,a=stable,n=jessie,l=Debian-Security,c=contrib
     origin security.debian.org
 500 http://security.debian.org/ jessie/updates/main i386 Packages
     release v=8,o=Debian,a=stable,n=jessie,l=Debian-Security,c=main
     origin security.debian.org
 500 http://security.debian.org/ jessie/updates/non-free amd64 Packages
     release v=8,o=Debian,a=stable,n=jessie,l=Debian-Security,c=non-free
     origin security.debian.org
 500 http://security.debian.org/ jessie/updates/contrib amd64 Packages
     release v=8,o=Debian,a=stable,n=jessie,l=Debian-Security,c=contrib
     origin security.debian.org
 500 http://security.debian.org/ jessie/updates/main amd64 Packages
     release v=8,o=Debian,a=stable,n=jessie,l=Debian-Security,c=main
     origin security.debian.org
 500 ftp://debian.cites.illinois.edu/pub/debian/ jessie-updates/non-free Translation-en
 500 ftp://debian.cites.illinois.edu/pub/debian/ jessie-updates/main Translation-en
 500 ftp://debian.cites.illinois.edu/pub/debian/ jessie-updates/contrib Translation-en
 500 ftp://debian.cites.illinois.edu/pub/debian/ jessie-updates/non-free i386 Packages
     release o=Debian,a=stable-updates,n=jessie-updates,l=Debian,c=non-free
     origin debian.cites.illinois.edu
 500 ftp://debian.cites.illinois.edu/pub/debian/ jessie-updates/contrib i386 Packages
     release o=Debian,a=stable-updates,n=jessie-updates,l=Debian,c=contrib
     origin debian.cites.illinois.edu
 500 ftp://debian.cites.illinois.edu/pub/debian/ jessie-updates/main i386 Packages
     release o=Debian,a=stable-updates,n=jessie-updates,l=Debian,c=main
     origin debian.cites.illinois.edu
 500 ftp://debian.cites.illinois.edu/pub/debian/ jessie-updates/non-free amd64 Packages
     release o=Debian,a=stable-updates,n=jessie-updates,l=Debian,c=non-free
     origin debian.cites.illinois.edu
 500 ftp://debian.cites.illinois.edu/pub/debian/ jessie-updates/contrib amd64 Packages
     release o=Debian,a=stable-updates,n=jessie-updates,l=Debian,c=contrib
     origin debian.cites.illinois.edu
 500 ftp://debian.cites.illinois.edu/pub/debian/ jessie-updates/main amd64 Packages
     release o=Debian,a=stable-updates,n=jessie-updates,l=Debian,c=main
     origin debian.cites.illinois.edu
 500 ftp://debian.cites.illinois.edu/pub/debian/ jessie/non-free Translation-en
 500 ftp://debian.cites.illinois.edu/pub/debian/ jessie/main Translation-en
 500 ftp://debian.cites.illinois.edu/pub/debian/ jessie/contrib Translation-en
 500 ftp://debian.cites.illinois.edu/pub/debian/ jessie/non-free i386 Packages
     release v=8.3,o=Debian,a=stable,n=jessie,l=Debian,c=non-free
     origin debian.cites.illinois.edu
 500 ftp://debian.cites.illinois.edu/pub/debian/ jessie/contrib i386 Packages
     release v=8.3,o=Debian,a=stable,n=jessie,l=Debian,c=contrib
     origin debian.cites.illinois.edu
 500 ftp://debian.cites.illinois.edu/pub/debian/ jessie/main i386 Packages
     release v=8.3,o=Debian,a=stable,n=jessie,l=Debian,c=main
     origin debian.cites.illinois.edu
 500 ftp://debian.cites.illinois.edu/pub/debian/ jessie/non-free amd64 Packages
     release v=8.3,o=Debian,a=stable,n=jessie,l=Debian,c=non-free
     origin debian.cites.illinois.edu
 500 ftp://debian.cites.illinois.edu/pub/debian/ jessie/contrib amd64 Packages
     release v=8.3,o=Debian,a=stable,n=jessie,l=Debian,c=contrib
     origin debian.cites.illinois.edu
 500 ftp://debian.cites.illinois.edu/pub/debian/ jessie/main amd64 Packages
     release v=8.3,o=Debian,a=stable,n=jessie,l=Debian,c=main
     origin debian.cites.illinois.edu
 500 http://packages.linuxmint.com/ betsy/import i386 Packages
     release v=2,o=linuxmint,a=betsy,n=betsy,l=linuxmint,c=import
     origin packages.linuxmint.com
 700 http://packages.linuxmint.com/ betsy/upstream i386 Packages
     release v=2,o=linuxmint,a=betsy,n=betsy,l=linuxmint,c=upstream
     origin packages.linuxmint.com
 500 http://packages.linuxmint.com/ betsy/main i386 Packages
     release v=2,o=linuxmint,a=betsy,n=betsy,l=linuxmint,c=main
     origin packages.linuxmint.com
 500 http://packages.linuxmint.com/ betsy/import amd64 Packages
     release v=2,o=linuxmint,a=betsy,n=betsy,l=linuxmint,c=import
     origin packages.linuxmint.com
 700 http://packages.linuxmint.com/ betsy/upstream amd64 Packages
     release v=2,o=linuxmint,a=betsy,n=betsy,l=linuxmint,c=upstream
     origin packages.linuxmint.com
 500 http://packages.linuxmint.com/ betsy/main amd64 Packages
     release v=2,o=linuxmint,a=betsy,n=betsy,l=linuxmint,c=main
     origin packages.linuxmint.com
 500 http://httpredir.debian.org/debian/ jessie-backports/non-free Translation-en
 500 http://httpredir.debian.org/debian/ jessie-backports/main Translation-en
 500 http://httpredir.debian.org/debian/ jessie-backports/contrib Translation-en
 400 http://httpredir.debian.org/debian/ jessie-backports/non-free i386 Packages
     release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=non-free
     origin httpredir.debian.org
 400 http://httpredir.debian.org/debian/ jessie-backports/contrib i386 Packages
     release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=contrib
     origin httpredir.debian.org
 400 http://httpredir.debian.org/debian/ jessie-backports/main i386 Packages
     release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=main
     origin httpredir.debian.org
 400 http://httpredir.debian.org/debian/ jessie-backports/non-free amd64 Packages
     release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=non-free
     origin httpredir.debian.org
 400 http://httpredir.debian.org/debian/ jessie-backports/contrib amd64 Packages
     release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=contrib
     origin httpredir.debian.org
 400 http://httpredir.debian.org/debian/ jessie-backports/main amd64 Packages
     release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=main
     origin httpredir.debian.org
 500 http://security.debian.org/ testing/updates/main Translation-en
 300 http://security.debian.org/ testing/updates/main i386 Packages
     release o=Debian,a=testing,n=stretch,l=Debian-Security,c=main
     origin security.debian.org
 300 http://security.debian.org/ testing/updates/main amd64 Packages
     release o=Debian,a=testing,n=stretch,l=Debian-Security,c=main
     origin security.debian.org
 500 http://httpredir.debian.org/debian/ testing/main Translation-en
 300 http://httpredir.debian.org/debian/ testing/main i386 Packages
     release o=Debian,a=testing,n=stretch,l=Debian,c=main
     origin httpredir.debian.org
 300 http://httpredir.debian.org/debian/ testing/main amd64 Packages
     release o=Debian,a=testing,n=stretch,l=Debian,c=main
     origin httpredir.debian.org
 500 http://download.opensuse.org/repositories/home:/Horst3180/Debian_8.0/  Packages
     release o=obs://build.opensuse.org/home:Horst3180/Debian_8.0,n=Debian_8.0,l=home:Horst3180,c=
     origin download.opensuse.org
Pinned packages:
Thanks!
Image
"Once you can accept the universe as matter expanding into nothing that is something, wearing stripes with plaid comes easy."
- Albert Einstein
killer de bug

Re: When versions are same, packages installed from Testing

Post by killer de bug »

I'm wondering if it's not only a question of alphabetical sort.
As a test, would you mind renaming this file: /etc/apt/sources.list.d/debian-testing.list in /etc/apt/sources.list.d/zz-debian-testing.list
and then installing something and see if the package is taken from stable or testing? :)
User avatar
Fred Barclay
Level 12
Level 12
Posts: 4185
Joined: Sat Sep 13, 2014 11:12 am
Location: USA primarily

Re: When versions are same, packages installed from Testing

Post by Fred Barclay »

Sorry to be a bit late. I had a few things pop up...
killer de bug wrote:would you mind renaming this file...?
Yes, I mind. I can't! I shan't! I won't! :P

Anyways, that does seem to be a (the?) issue:

Code: Select all

fred@aussie ~ $ sudo mv /etc/apt/sources.list.d/debian-testing.list /etc/apt/sources.list.d/zz-debian-testing.list
fred@aussie ~ $ sudo apt-get install aircrack-ng
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  ieee-data
The following NEW packages will be installed:
  aircrack-ng ieee-data
0 upgraded, 2 newly installed, 0 to remove and 12 not upgraded.
Need to get 1,265 kB of archives.
After this operation, 6,065 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 ftp://debian.cites.illinois.edu/pub/debian/ jessie/main aircrack-ng amd64 1:1.2-0~beta3-4 [435 kB]
...
Any ideas why it works like this? Why would alphabetical order take preference over my pins?
Image
"Once you can accept the universe as matter expanding into nothing that is something, wearing stripes with plaid comes easy."
- Albert Einstein
killer de bug

Re: When versions are same, packages installed from Testing

Post by killer de bug »

I'm not sure.

Please note that you have 2 lines with a priority of 500 for testing:

Code: Select all

500 http://security.debian.org/ testing/updates/main Translation-en
I'm not sure if this is important or not.

Here the software version is the same in both repo. Therefore I assume that apt only grabs the first address to download this software. The priority is not used, as there is nothing to distinguish.
First address is in the file with the smallest name when sorted alphabetically. Therefore placing a z at the beginning of the name is sending it at the last position.

That's only a guess!
grizzler

Re: When versions are same, packages installed from Testing

Post by grizzler »

That's indeed exactly how it works.

See this AskUbuntu posting, under Explanation.

Pinning decides which version to use. Several sources with the same version? First one in the file(s) wins!
killer de bug

Re: When versions are same, packages installed from Testing

Post by killer de bug »

Thanks for the link. :wink:

Fred, there is an easy fix for you then!

Rename the /etc/apt/sources.list.d/official-package-repositories.list with /etc/apt/sources.list.d/[b]a[/b]fficial-package-repositories.list
Therefore it will always be first.

And if someone ask about the typo, just tell them to look in a dictionary :mrgreen:
User avatar
Fred Barclay
Level 12
Level 12
Posts: 4185
Joined: Sat Sep 13, 2014 11:12 am
Location: USA primarily

Re: When versions are same, packages installed from Testing

Post by Fred Barclay »

Looks good so far. :)

I'm wondering if this will affect my ability to change mirrors (which I have to do a lot due to traveling). I'd test it right now but I'm getting the usual "Hash sum mismatch" so I'm having to wait for the situation to stabilise.
Image
"Once you can accept the universe as matter expanding into nothing that is something, wearing stripes with plaid comes easy."
- Albert Einstein
User avatar
Fred Barclay
Level 12
Level 12
Posts: 4185
Joined: Sat Sep 13, 2014 11:12 am
Location: USA primarily

Re: When versions are same, packages installed from Testing

Post by Fred Barclay »

Indeed, changing mirrors does present a problem:

Before changing mirrors:

Code: Select all

fred@aussie ~ $ inxi -r
Repos:     Active apt sources in file: /etc/apt/sources.list.d/afficial-package-repositories.list
           deb http://packages.linuxmint.com betsy main upstream import
           deb ftp://debian.cites.illinois.edu/pub/debian/ jessie main contrib non-free
           deb ftp://debian.cites.illinois.edu/pub/debian/ jessie-updates main contrib non-free
           deb http://security.debian.org/ jessie/updates main contrib non-free
           deb http://www.deb-multimedia.org jessie main non-free
           deb http://extra.linuxmint.com betsy main
           Active apt sources in file: /etc/apt/sources.list.d/arc-theme.list
           deb http://download.opensuse.org/repositories/home:/Horst3180/Debian_8.0/ /
           Active apt sources in file: /etc/apt/sources.list.d/jessie-backports.list
           deb http://httpredir.debian.org/debian jessie-backports main contrib non-free
           Active apt sources in file: /etc/apt/sources.list.d/official-source-repositories.list
           deb-src http://packages.linuxmint.com betsy main upstream import
           deb-src ftp://debian.cites.illinois.edu/pub/debian/ jessie main contrib non-free
           deb-src ftp://debian.cites.illinois.edu/pub/debian/ jessie-updates main contrib non-free
           deb-src http://security.debian.org/ jessie/updates main contrib non-free
           deb-src http://www.deb-multimedia.org jessie main non-free
           deb-src http://extra.linuxmint.com betsy main
           Active apt sources in file: /etc/apt/sources.list.d/solydxk.list
           deb http://repository.solydxk.com/ solydxk main upstream import
           Active apt sources in file: /etc/apt/sources.list.d/vbox.list
           deb http://download.virtualbox.org/virtualbox/debian jessie contrib
           Active apt sources in file: /etc/apt/sources.list.d/vivaldi-beta.list
           deb http://repo.vivaldi.com/beta/deb/ stable main
           Active apt sources in file: /etc/apt/sources.list.d/zz-debian-testing.list
           deb http://httpredir.debian.org/debian/ testing main
           deb-src http://httpredir.debian.org/debian/ testing main
           deb http://security.debian.org/ testing/updates main
           deb-src http://security.debian.org/ testing/updates main
After changing mirrors:

Code: Select all

fred@aussie ~ $ inxi -r
Repos:     Active apt sources in file: /etc/apt/sources.list.d/afficial-package-repositories.list
           deb http://packages.linuxmint.com betsy main upstream import
           deb ftp://debian.cites.illinois.edu/pub/debian/ jessie main contrib non-free
           deb ftp://debian.cites.illinois.edu/pub/debian/ jessie-updates main contrib non-free
           deb http://security.debian.org/ jessie/updates main contrib non-free
           deb http://www.deb-multimedia.org jessie main non-free
           deb http://extra.linuxmint.com betsy main
           Active apt sources in file: /etc/apt/sources.list.d/arc-theme.list
           deb http://download.opensuse.org/repositories/home:/Horst3180/Debian_8.0/ /
           Active apt sources in file: /etc/apt/sources.list.d/jessie-backports.list
           deb http://httpredir.debian.org/debian jessie-backports main contrib non-free
           Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
           deb http://mirrors.advancedhosters.com/linuxmint/packages betsy main upstream import
           deb ftp://debian.cites.illinois.edu/pub/debian/ jessie main contrib non-free
           deb ftp://debian.cites.illinois.edu/pub/debian/ jessie-updates main contrib non-free
           deb http://security.debian.org/ jessie/updates main contrib non-free
           deb http://www.deb-multimedia.org jessie main non-free
           deb http://extra.linuxmint.com betsy main
           Active apt sources in file: /etc/apt/sources.list.d/solydxk.list
           deb http://repository.solydxk.com/ solydxk main upstream import
           Active apt sources in file: /etc/apt/sources.list.d/vbox.list
           deb http://download.virtualbox.org/virtualbox/debian jessie contrib
           Active apt sources in file: /etc/apt/sources.list.d/vivaldi-beta.list
           deb http://repo.vivaldi.com/beta/deb/ stable main
           Active apt sources in file: /etc/apt/sources.list.d/zz-debian-testing.list
           deb http://httpredir.debian.org/debian/ testing main
           deb-src http://httpredir.debian.org/debian/ testing main
           deb http://security.debian.org/ testing/updates main
           deb-src http://security.debian.org/ testing/updates main
As you can see, "afficial-package-repositories" is untouched. However, in the first case (before mirror changes), there is no "official-package-repositories"; while after changing mirrors, official-package-repositories has been added. (The official-source-repo has also been removed, but that's not a bit concern.)
I expect that this will cause problems, since I now have two repos with the same package bases. For now I'm just deleting the official-package-repositories.list, but I'm thinking the safest course of action would be to reinstate the official-package-repo and just rename all additional repos with lower-alphabetical names.
Image
"Once you can accept the universe as matter expanding into nothing that is something, wearing stripes with plaid comes easy."
- Albert Einstein
killer de bug

Re: When versions are same, packages installed from Testing

Post by killer de bug »

Yes I was expecting that MintSources would create a new official-package-repositories.list.

Therefore the only solution I see, if you need this tool, is to rename your other files with a letter higher than o.
Or you may want to try to place all these additional files in a subfolder. I don't know how apt would react to this. :)
User avatar
Fred Barclay
Level 12
Level 12
Posts: 4185
Joined: Sat Sep 13, 2014 11:12 am
Location: USA primarily

Re: When versions are same, packages installed from Testing

Post by Fred Barclay »

killer de bug wrote:
Or you may want to try to place all these additional files in a subfolder. I don't know how apt would react to this. :)
Only one way to find out! :P

Or I could just copy my additional repos to /etc/apt/sources.list ...but that's the boring solution. :lol:
Image
"Once you can accept the universe as matter expanding into nothing that is something, wearing stripes with plaid comes easy."
- Albert Einstein
User avatar
Fred Barclay
Level 12
Level 12
Posts: 4185
Joined: Sat Sep 13, 2014 11:12 am
Location: USA primarily

Re: When versions are same, packages installed from Testing

Post by Fred Barclay »

Apt doesn't like subfolders, apparently. It refused to recongnise /etc/apt/sources.list.d/additional-repos/some-repo.list. I probably could hack my way around it, but why?

I'm not really a fan of adding all the repos inside /etc/apt/sources.list, so I'm just going to keep the debian-testing.list named as zz-debian-testing.list.

Thanks, grizzler and KDB!
Image
"Once you can accept the universe as matter expanding into nothing that is something, wearing stripes with plaid comes easy."
- Albert Einstein
killer de bug

Re: When versions are same, packages installed from Testing

Post by killer de bug »

Fred Barclay wrote: I'm not really a fan of adding all the repos inside /etc/apt/sources.list
Opposite for me. I only use this guy :mrgreen:
Locked

Return to “LMDE Archive”