Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Quote:
Originally Posted by TroN-0074
Thanks, Perhaps that will be good for Juc1 to wait for the new release to be available in just few more weeks
I would expect that to require a clean install as there will be lots of major changes. Even to do an in-place install you would have to update to squeeze fully before then going up to wheezy -- skipping one would be far too much as far as I can see.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
You won't update to the next version automatically. If your sources.list is pointing to squeeze you would need to change it to point to wheezy then run apt-get update and apt-get dist-upgrade to install the upgraded packages. BUT, and it's a big BUT, that would probably break things and the real way would be to update the packages carefully as caravel mentioned.
I have just remembered that it is also possible to have "stable" in your sources.list and in that case I believe that all that will be required is apt-get dist-upgrade -- again though some packages will need to be upgraded first.
You won't update to the next version automatically. If your sources.list is pointing to squeeze you would need to change it to point to wheezy then run apt-get update and apt-get dist-upgrade to install the upgraded packages. BUT, and it's a big BUT, that would probably break things and the real way would be to update the packages carefully as caravel mentioned.
I have just remembered that it is also possible to have "stable" in your sources.list and in that case I believe that all that will be required is apt-get dist-upgrade -- again though some packages will need to be upgraded first.
Ok so have I got this right:
- what happens with apt-get dist-upgrade is determined by /etc/apt/sources.list.
- if I have Debian 5 there is no risk in upgrading to the latest Debian 5 packages but there is some risk in upgrading from 5 to 6, or 6 to 7 etc.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Quote:
Originally Posted by Juc1
Ok so have I got this right:
- what happens with apt-get dist-upgrade is determined by etc/apt/sources.list.
- if I have Debian 5 there is no risk in upgrading to the latest Debian 5 packages but there is some risk in upgrading from 5 to 6, or 6 to 7 etc.
Thanks...
As I understand it "apt-get upgrade" won't update major versions (e.g from kernel 3.2 to 3.8) but will just upgrade minor versions and bug/security fixes. So, if you have "stable" in your sources.list then you'll effectively stay on whichever stable version (e.g. lenny) you started on if you just use "apt-get update". If you use "apt-get dist-upgrade" though you will update major version numbers so if you have "stable" in your sources.list then when a new stable version is out you will start pulling packages from that version including things like the kernel version.
If you have "lenny" only in your sources.list though you will only get lenny updates no matter which you use. dist-upgrade can also install new packages and remove old ones though so there may be a difference even with "lenny" in sourcse.list.
At least, the above is my understanding and I'm happy to be corrected.
I use Sid and the difference I see is that a "dist-upgrade" will pull down new packages and major version updates and plain old upgrade only minor version updates.
Last edited by 273; 04-26-2013 at 04:44 PM.
Reason: Corrected "update" to "upgrade" as per later post.
As I understand it "apt-get update" won't update major versions (e.g from kernel 3.2 to 3.8) but will just upgrade minor versions and bug/security fixes.
Yes, sorry, I'm so used to typing update and dist-upgrade I can't type upgrade on its own properly...
OK so I guess I need to update my Debian 5 packages for now and then think about Debian 6 another time. Is my Debian definitely Lenny or is that still not clear?
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
You're on the 2.6.32 kernel so it looks like you have been getting squeeze updates so you are kind-of on squeeze. However, there are a lot of packages apt wants to replace and update in order for you to have a fully patched-up squeeze install. As I said, if you could stand to have downtime (with a remote possibility of having to reinstall) then I'd say just go for it and run the dist-upgrade but there are things like Apache version updates which could possibly break things. Unfortunately having not updated these packages myself I can't tell you how likely problems will be so I can only be cautious.
You should probably try just an "apt-get upgrade" as you ought to do that regularly but, there again, how long is it until you can risk the full upgrade?
OK I thought it was lenny or squeeze, I didn't realise there was a 'kind of'.
Quote:
You should probably try just an "apt-get upgrade" as you ought to do that regularly but, there again, how long is it until you can risk the full upgrade?
Here is apt-get upgrade but is that risky? If it is then maybe I will just wait about 6 weeks until I have moved the important stuff to another server.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
It's hard to say whether those packages would cause problems or not.
If your install were "normal" then an apt-get update ought not to cause any problems at all as packages should be tested for their mutual compatibility -- but you would check for bug reports before updating to be sure.
The difficulty I'm having here is that usually you would run "apt-get upgrade" every week or so, check which packages were to be upgraded, double check that there were no reported issues, then decide if and when to update them. This would usually be about half a dozen packages at most and usually almost obvious whether there would be problems. However, because you have a lot to update going through them all to look for bug reports would take a long time and it's difficult to know whether you'd find any odd problems with packages needing to be updated in a certain order.
How long ago did you install this system, and how was it done? I'm tempted to guess it was installed using a lenny disc, maybe a live one, since squeeze has been promoted to stable?
It's hard to say whether those packages would cause problems or not.
If your install were "normal" then an apt-get update ought not to cause any problems at all as packages should be tested for their mutual compatibility -- but you would check for bug reports before updating to be sure.
The difficulty I'm having here is that usually you would run "apt-get upgrade" every week or so, check which packages were to be upgraded, double check that there were no reported issues, then decide if and when to update them. This would usually be about half a dozen packages at most and usually almost obvious whether there would be problems. However, because you have a lot to update going through them all to look for bug reports would take a long time and it's difficult to know whether you'd find any odd problems with packages needing to be updated in a certain order.
How long ago did you install this system, and how was it done? I'm tempted to guess it was installed using a lenny disc, maybe a live one, since squeeze has been promoted to stable?
It was installed by the web host in pre-squeeze days. So I guess I will not upgrade now and just wait another few weeks. By the way for future reference re your "check for bug reports" is there a central URL that lists bug reports for Debian or Ubuntu packages or do you just mean googling? Also are there remedies in the event of an updated Debian or Ubuntu package causing a problem?
But I am not too concerned about updated packages as I am with the release upgrade comming soon. I also want to remain on stable There is a little screen shot of my desktop
OK I thought it was lenny or squeeze, I didn't realise there was a 'kind of'.
It's possible to be partially upgraded between releases - which is the state your system is in now - but it still seems to be mostly Lenny.
The 2.6.32 kernel you're running is not the squeeze kernel, that much is obvious from the output of uname -a, by the looks of it your host had something to do with that. Indeed you don't seem to have any debian kernel installed at all. It may actually make your upgrade easier however as you will need a newer kernel for the udev changes in squeeze.
Ultimately this is up to you. You can try to upgrade (again read the release notes), or you can change your sources to track the debian archive and just continue with Lenny. You may also be able to downgrade anything which got upgraded to squeeze. Continuing on Lenny however would mean running an unsupported and insecure system.
@TroN-0074: Third line from the bottom in your sources is a duplicate + buntu ppas should not be installed in Debian unless you know exactly what you're doing and trust the source.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.