Sources.list [ SOLVED ]

Archived topics about LMDE 1 and LMDE 2
Locked
Dar-es-Salaam

Sources.list [ SOLVED ]

Post by Dar-es-Salaam »

Hi

I have been trying to sort out a sources list and have come up with the following so that I can switch between them as I need to. Could you tell me if I have got it right or wether I am missing something out ??

#
# Latest
#
deb http://packages.linuxmint.com/ debian main upstream import
deb http://debian.linuxmint.com/latest testing main contrib non-free
deb http://security.debian.org/ testing/updates main contrib non-free
deb http://www.debian-multimedia.org testing main non-free
#
# Testing
#
# deb http://packages.linuxmint.com/ debian main upstream import
# deb http://ftp.debian.org/debian testing main contrib non-free
# deb http://security.debian.org/ testing/updates main contrib non-free
# deb http://www.debian-multimedia.org testing main non-free
#
# Incomming
#
# deb http://packages.linuxmint.com/ debian main upstream import
# deb http://debian.linuxmint.com/incoming testing main contrib non-free
# deb http://debian.linuxmint.com/incoming/security testing/updates main contrib non-free
# deb http://debian.linuxmint.com/incoming/multimedia testing main non-free
#
# Unstable
#
# deb http://packages.linuxmint.com/ debian main upstream import
# deb http://ftp.debian.org/debian unstable main contrib non-free
# deb http://security.debian.org/ testing/updates main contrib non-free
# deb http://www.debian-multimedia.org testing main non-free

Thanking you all in advance :D :D
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.
gavinhc

Re: Sources.list

Post by gavinhc »

You should change your latest repos, specifically security and multimedia, to point fully to the Mint update pack repos like you have with incoming. Other than that, I don't see anything missing here.
Dar-es-Salaam wrote:deb http://packages.linuxmint.com/ debian main upstream import
deb http://debian.linuxmint.com/latest testing main contrib non-free
deb http://security.debian.org/ testing/updates main contrib non-free
deb http://www.debian-multimedia.org testing main non-free
twa

Re: Sources.list

Post by twa »

jae70888

Re: Sources.list

Post by jae70888 »

This should be a sticky.. I couldn't find the testing repos in other threads, just incoming and latest. Thanks!
rhodry
Level 4
Level 4
Posts: 343
Joined: Mon Jun 04, 2007 7:32 am

Re: Sources.list

Post by rhodry »

Your 'latest' repos are not pointing to the correct place any longer. They need to be the same as you have for 'incoming' as mentioned.

Why would you have both 'testing' and 'incoming'? The only difference is a timing one. Package wise they should be identical?!

Sid/Unstable has no concept of nor need for security updates. Packages affected are changed so quickly the "security" team never pick it up. It is why there are no specific security updates for this version.

I am horrified by your "switch between them statement"!! If by that you mean you might run (say) 'latest' for a while, then comment them out and use (say) 'unstable' for a bit then return to (say) 'testing' - I can pretty much GUARANTEE you that if you run 'apt-get dist-upgrade' at each of those changes, you will bork your system!! If however, it is your intention to run 'latest' but be able to grab the odd program update from the other repos (like Iceweasel 8.0 rather than Firefox 5.0), then your most important file is /etc/apt/preferences and you have not shown us what that looks like. How you use "pinning" is the key to not "blowing" up your setup with mixed repos.

If the latter is your intention that is easy to do and I can show you how. Most of my LMDE installs run 'latest' plus 'sid/unstable' pinned for the odd program update only. In any case, if you mix repos, do not use MintUpdate for updates - use command line.

cheers,
rhodry.
Life isn't about waiting for the storm to pass...
it's about learning to dance in the rain.
Dar-es-Salaam

Re: Sources.list

Post by Dar-es-Salaam »

Hi rhodry,

The reason for all those repro's was that at one point I was having trouble finding a program that I wanted and I either read or it was mentioned somewhere that I should try out a different repro. Infact I actually switched to unstable to find what I wanted. Since then I have done my ususal thing and messed up my system altogeher and had to do numerious reinstallation, It is the only way that I know how to get out of trouble at the moment.
I dont loose any info that I need as I keep all that sort of stuff on a seperate drive, I learnt to do that while on on Windows as it was allways crashing.
I have booted up several times to a login screen and been able to run the ls -l command and get results but never been able to get passed it yet as I still trying to learn about linux specifically LMDE.
I did notice that testing and incomming appeared to be the same but had no idea what the difference was.
Having read your comments I guess that the best thing for me to do would be to switch to incomming and leave it at that although I used to be on testing and never had any trouble with that either.
The latest one that I have got at the moment I think came one the last time that I did a reinstall from my live iso disk but I am nolonger sure.

I dont understand what you mean by pinning and I never revert back to older versions, I always try to keep up with the newest version unless I am on Windows
Here is my /etc/apt/preferences file:-

Package: *
Pin: release o=linuxmint
Pin-Priority: 700

Package: *
Pin: origin packages.linuxmint.com
Pin-Priority: 700

Package: *
Pin: release o=Debian
Pin-Priority: 500

And I have no idea what it is doing, I personally have never altered it.

If you think that I need another ine adding to Incomming then please let me know what it is and I will gladly add it

Thanks for your much needed help :D :D
rhodry
Level 4
Level 4
Posts: 343
Joined: Mon Jun 04, 2007 7:32 am

Re: Sources.list

Post by rhodry »

Sorry not to get back to you earlier, but I was busy removing stuff. As of this weekend, I am no longer actually running any version of LMDE; in fact, I have removed all Linuxmint stuff from all eight machines (comprising 20 partitions). I am totally disillusioned with where LMDE is at and I had already decided that I would not use Ubuntu derivative distros any more. :( I have one "sort of" LMDE left whereby I used an LMDE-Xfce install as a starting point but updated it to run against sid/unstable only. I guess it is still sort of "Minty Sid" ?! :)

LMDE with Update Packs is NOT a rolling release and everyone should stop referring to it as such. Even if you can call Debian Testing a rolling release ( and I question that because during 2012 it will hit another X? number of months when it will be 'frozen' to new updates); the Update Packs have not been updated since August for goodness sake. Do you have any idea how many packages have been updated in Testing since then?? Many hundreds of gigabytes worth. You CANNOT possibly then call 'Latest' a rolling release.

Don't get me wrong; I fully understand why there has been such a delay, given the developers statements. I'm not blaming anyone for anything or having a go - just stating facts. You can't call a distro a rolling release if it has no updates for months on end is all. Therefore, it is no longer for me. I started using LMDE because it was advertised as a rolling release version of Linuxmint which I really wanted - and it is currently nothing of the sort. I think they have their strategy totally screwed up on what it should be and how it should work, so much potential thrown away! But hey, that's just my opinion.

I am not leaving the forums ( but my knowledge may become outdated the longer I don't use the software) so if you REALLY want to run your repos against 'Latest" with getting the odd program from Debian Unstable (like updated Firefox) I will show you how. Let me know, and best of luck.

rhodry.
Life isn't about waiting for the storm to pass...
it's about learning to dance in the rain.
Dar-es-Salaam

Re: Sources.list

Post by Dar-es-Salaam »

Hi rhodry,

Sorry to read that you are leaving but I wish you all the best for the future :D

I must admit that I did wonder why I wasn't getting many updates which is one of the main reasons that I was trying out so many update lists, I thought that I had got something wrong with my sources list.

Yes Please rhodry I would appreciate it if you have the time.

Is the another distro out there which is a rolling release at all ?. If there is I might have a look at it although my YL might object

Thanks again for all your help and all the best :D :D
rhodry
Level 4
Level 4
Posts: 343
Joined: Mon Jun 04, 2007 7:32 am

Re: Sources.list

Post by rhodry »

@Dar-es-Salaam
Yes Please rhodry I would appreciate it if you have the time.
OK here we go:

Start this work after a fresh install of LMDE latest iso.

Note: all this work is done as superuser in the /etc/apt folder using a terminal and nano editor.
Make a backup copy of any file you change - you have been warned!! :)
If any files do not exist, create them.

You are going to store more repository data and so should increase the size of the "apt" cache.
Use sudo to add this line (note semi-colon at end required)

Code: Select all

APT::Cache-Limit "8388608";
to /etc/apt/apt.conf.

Setup your sources.list file so that it looks like:

Code: Select all

## Linuxmint standard
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
## Debian Sid/Unstable
deb http://ftp.debian.org/debian/ unstable main contrib non-free
deb http://www.debian-multimedia.org unstable main non-free
then, edit /etc/apt/preferences to look like this:

Code: Select all

Package: *
Pin: release o=linuxmint
Pin-Priority: 700

Package: *
Pin: origin packages.linuxmint.com
Pin-Priority: 700

Package: *
Pin: release a=testing
Pin-Priority: 500

Package: *
Pin: release a=unstable 
Pin-Priority: 300
At terminal prompt do

$ sudo apt-get update

That's it for setup. You now have standard LMDE-Latest plus access to applications from Debian Unstable.

To test this setup, run the following command at a terminal prompt:

$ apt-cache policy iceweasel

As I mentioned, I don't have direct access to Mint whilst writing this so I can't show you the output; but, you should get a list of possible entries for the Iceweasel package. You should see the Mint package , v5.0.6 I think, has highest priority but Unstable should have v8.0 or so. This is how you check available versions and the installed version.

There are two ways to get a package from Unstable. The 1st tries to install the package from Unstable but rely on dependencies already in Latest. This would be

Code: Select all

$ sudo apt-get install <package>/unstable; eg sudo apt-get install iceweasel/unstable
Debian Testing (Latest) & Debian Unstable are fairly close so this may work. Apt will tell you why if it will not - invariably a missing dependency. This is safer because it will not try to drag in dependencies from Unstable. However, in my experience, rarely works well.

The other form of the command to get a package from Unstable is

Code: Select all

sudo apt-get -t unstable install <package>; eg sudo apt-get -t unstable install iceweasel
This will install the Unstable version of the package, and try to meet any dependencies from Unstable. This may produce better results. However, be careful to watch what is being installed and/or removed by this method. If unsure, stop and come here to ask first!

Upgrading

This version of 'pinning' will keep you linked to Latest whilst allowing individual packages from above. The priority numbers in /etc/apt/preferences stop "dist-upgrade" trying to upgrade your whole system to Unstable.

Even though Mint Upgrade will still work with this change, it will throw an error message at you about repos. I find it better to just do upgrades once or twice a week from a terminal command line. Remember a rolling release is designed to roll along. You should not do bulky updates if you can help it! I used

Code: Select all

$ sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
At the moment though, with Latest in apparent hiatus, this still will not give you many more updates, but it will allow you to get updated individual packages.

hope this helps,
rhodry.

disclaimer: standard Debian disclaimer - You break it, you get to play with the pieces and we get to laugh at you!! :)
Life isn't about waiting for the storm to pass...
it's about learning to dance in the rain.
Dar-es-Salaam

Re: Sources.list [ SOLVED ]

Post by Dar-es-Salaam »

Hi rhodry

Thanks for that. I have copied all your latest post for safe keeping and future use. I will change my sources and preferences to match what you have said shortly. As you can see I have marked this as solved for the moment but if I need further assistance I will certainly put up another post here and undo the solved mark if that is allowed

Once again thanks for all your help very much appreciated :D :D

All the Best
Locked

Return to “LMDE Archive”