[Solved] Official repositories change when changing mirrors

Archived topics about LMDE 1
Forum rules
LMDE 2 support ends on 1-1-2019
Locked
bvhoesel
Level 1
Level 1
Posts: 7
Joined: Fri Oct 09, 2015 4:05 pm

[Solved] Official repositories change when changing mirrors

Post by bvhoesel » Fri Oct 09, 2015 4:33 pm

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 bvhoesel on Mon Oct 12, 2015 3:56 am, edited 1 time in total.

Monsta
Level 10
Level 10
Posts: 3012
Joined: Fri Aug 19, 2011 3:46 am

Re: Official repositories change when changing mirrors

Post by Monsta » Sat Oct 10, 2015 5:38 am

Post the output of:

Code: Select all

cat /etc/lsb-release

Code: Select all

cat /etc/linuxmint/info

bvhoesel
Level 1
Level 1
Posts: 7
Joined: Fri Oct 09, 2015 4:05 pm

Re: Official repositories change when changing mirrors

Post by bvhoesel » Sat Oct 10, 2015 7:32 am

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?

User avatar
killer de bug
Level 14
Level 14
Posts: 5397
Joined: Tue Jul 08, 2008 1:49 pm
Location: Graz, Austria

Re: Official repositories change when changing mirrors

Post by killer de bug » Sun Oct 11, 2015 1:41 pm

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
Image
If it ain't broke, fix it until it is.

bvhoesel
Level 1
Level 1
Posts: 7
Joined: Fri Oct 09, 2015 4:05 pm

Re: Official repositories change when changing mirrors

Post by bvhoesel » Sun Oct 11, 2015 2:37 pm

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.

User avatar
killer de bug
Level 14
Level 14
Posts: 5397
Joined: Tue Jul 08, 2008 1:49 pm
Location: Graz, Austria

Re: Official repositories change when changing mirrors

Post by killer de bug » Sun Oct 11, 2015 3:57 pm

You need to reboot.
The /etc/lsb-release file is filled automatically during the boot.
Image
If it ain't broke, fix it until it is.

bvhoesel
Level 1
Level 1
Posts: 7
Joined: Fri Oct 09, 2015 4:05 pm

Re: Official repositories change when changing mirrors

Post by bvhoesel » Mon Oct 12, 2015 3:54 am

Yep. Reboot did the trick. Changing mirrors works as expected.
Thx killer de bug.

Hansl
Level 3
Level 3
Posts: 103
Joined: Fri Dec 09, 2011 3:50 pm

Re: [Solved] Official repositories change when changing mirr

Post by Hansl » Wed Jan 20, 2016 1:35 pm

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 1 Archive”