[Solved] Official repositories change when changing mirrors

Archived topics about LMDE 1 and LMDE 2
Locked
bvhoesel

[Solved] Official repositories change when changing mirrors

Post by bvhoesel »

After successful upgrade I changed the mirrors via Menu -> System -> Administration -> Software Sources (also reachable from Synaptic) for 'Main' and 'Base'.
Afterwards I realized the file official-package-repositories.list has been changed with repositories which look like those from LMDE 1.
For the upgrade the file was changed as specified:

Code: Select all

deb http://packages.linuxmint.com betsy main upstream import
deb http://http.debian.net/debian jessie main contrib non-free
deb http://http.debian.net/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
After switching mirrors it looks something like:

Code: Select all

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

deb http://debian.linuxmint.com/latest/ testing main contrib non-free
deb http://debian.linuxmint.com/latest/security testing/updates main contrib non-free
deb http://debian.linuxmint.com/latest/multimedia testing main non-free

deb http://extra.linuxmint.com debian main
This has certainly effect on the origins of packages. It misses the stable origins but has testing origins. This results in version differences.
One difference I noticed on the Software Sources window between a upgraded system and a new installed system is in the addition between brackets after 'Main' and 'Base'. In the updated system I see:

Code: Select all

Main (debian)
Base (testing)
In the newly installed system is reads:

Code: Select all

Main (betsy)
Base (jessie)
I suppose in the updated system in the Software Sources definition is not updated to the configuration as seen in the new system.
How to resolves this? What file(s) to update.
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.
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: Official repositories change when changing mirrors

Post by Monsta »

Post the output of:

Code: Select all

cat /etc/lsb-release

Code: Select all

cat /etc/linuxmint/info
bvhoesel

Re: Official repositories change when changing mirrors

Post by bvhoesel »

On the upgraded system the content is as follows (this holds for both my upgraded systems):

cat /etc/lsb-release

Code: Select all

DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=1
DISTRIB_CODENAME=debian
DISTRIB_DESCRIPTION="Linux Mint Debian Edition"
cat /etc/linuxmint/info

Code: Select all

RELEASE=1
CODENAME=debian
EDITION="Debian 64-bit"
DESCRIPTION="Linux Mint Debian Edition"
DESKTOP=Gnome
TOOLKIT=GTK
NEW_FEATURES_URL=http://www.linuxmint.com/rel_debian_whatsnew.php
RELEASE_NOTES_URL=http://www.linuxmint.com/rel_debian.php
USER_GUIDE_URL=http://www.linuxmint.com/documentation.php
GRUB_TITLE=Linux Mint Debian
On the newly installed system I did the comparison with, this looks like:

cat /etc/lsb-release

Code: Select all

DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=2
DISTRIB_CODENAME=betsy
DISTRIB_DESCRIPTION="LMDE 2 Betsy"
cat /etc/linuxmint/info

Code: Select all

RELEASE=2
CODENAME=betsy
EDITION="MATE 64-bit"
DESCRIPTION="LMDE 2 Betsy"
DESKTOP=MATE
TOOLKIT=GTK
NEW_FEATURES_URL=http://www.linuxmint.com/rel_betsy_whatsnew.php
RELEASE_NOTES_URL=http://www.linuxmint.com/rel_betsy.php
USER_GUIDE_URL=help:linuxmint
GRUB_TITLE=LMDE 2 MATE 64-bit
As an 'educated guess' should I change to content of the upgraded system with the content of the new system or will this break other things?
killer de bug

Re: Official repositories change when changing mirrors

Post by killer de bug »

You should install this package if you use Cinnamon:

Code: Select all

apt install mint-info-debian-cinnamon
or this one if you use Mate:

Code: Select all

mint-info-debian-mate
bvhoesel

Re: Official repositories change when changing mirrors

Post by bvhoesel »

Thanks killer de bug. Installing the package mint-info-debian-mate corrected the /etc/linuxmint/info file. The file /etc/lsb-release still shows old contents.
Unfortunately this did not fix the problem. After choosing mirrors or 'default' setting the repositories again point to the wrong environment.
killer de bug

Re: Official repositories change when changing mirrors

Post by killer de bug »

You need to reboot.
The /etc/lsb-release file is filled automatically during the boot.
bvhoesel

Re: Official repositories change when changing mirrors

Post by bvhoesel »

Yep. Reboot did the trick. Changing mirrors works as expected.
Thx killer de bug.
Hansl
Level 3
Level 3
Posts: 122
Joined: Fri Dec 09, 2011 3:50 pm

Re: [Solved] Official repositories change when changing mirr

Post by Hansl »

Aha!  I bet this was the trigger for problems I had after upgrading a certain machine! (http://forums.linuxmint.com/viewtopic.p ... 4&t=214513 http://forums.linuxmint.com/viewtopic.p ... 4&t=210109
I couldn't quite believe that I really had forgotten to edit official-package-repositories.list, but I'm quite sure that I did change to faster mirrors during upgrade.

Lesson learned:  Do NOT switch to mirrors while upgrading!  Keep the software sources until after the final reboot!
This should be added to the Upgrade Howto, I think.
Locked

Return to “LMDE Archive”