Upgrading from Debian 8 to 9

Help with issues regarding installation of Debian

Upgrading from Debian 8 to 9

Postby Robertg » 2017-06-26 15:25

Hello everyone I wanted to know what is the best method to upgrade Debian 8, to 9. Is there easy way to do this besides doing a clean installation

Thanks so much
Robertg
 
Posts: 8
Joined: 2017-05-24 14:08

Re: Upgrading from Debian 8 to 9

Postby Hallvor » 2017-06-26 15:31

Intel Core i5 3320-M CPU @ 2.60 GHz, 6 GB RAM, Intel HD 4000 graphics, 300 GB HDD, Debian Stretch (KDE)
User avatar
Hallvor
 
Posts: 723
Joined: 2009-04-16 18:35
Location: Norway

Re: Upgrading from Debian 8 to 9

Postby acewiza » 2017-06-26 18:47

Robertg wrote:Is there easy way to do this besides doing a clean installation?

I would venture to say doing a clean install "is" the easy/best way to accomplish this. JMHO. YMMV. :D
Nobody would ever ask questions If everyone possessed encyclopedic knowledge of the man pages.
User avatar
acewiza
 
Posts: 224
Joined: 2013-05-28 12:38
Location: Out West

Re: Upgrading from Debian 8 to 9

Postby Bulkley » 2017-06-26 19:01

The "easy" is not always best. Pushing a button on a graphic tool might be easy but you don't want to spend the next week troubleshooting if it all go south. I posted my method here a few times. Whatever method you choose, be sure to do a complete backup beforehand.
Bulkley
 
Posts: 5234
Joined: 2006-02-11 18:35

Re: Upgrading from Debian 8 to 9

Postby ruffwoof » 2017-06-26 20:25

Does your hardware necessitate 'upgrading' (with the expulsion of the lead livecd developer, systemD, and aufs being relegated some are seeing D9 as being more of a downgrade. Compounded by the flight of some pretty good supporters/developers (Devuan etc.))?

Jessie will continue to be supported until 2020 so if that works for you and your hardware ... if it ain't broke don't fix it. Perhaps postpone for a year at least?
Debian Stretch (MAIN repositories only), jwm, pcmanfm --desktop
Acer Aspire M3201 (2GB), AMD Phenom X4, Nvidia GeForce 8600 GT.
ruffwoof
 
Posts: 158
Joined: 2016-08-20 21:00

Re: Upgrading from Debian 8 to 9

Postby Lysander » 2017-06-27 08:08

Robertg wrote:Hello everyone I wanted to know what is the best method to upgrade Debian 8, to 9. Is there easy way to do this besides doing a clean installation

Thanks so much


The best method is to take your time, not rush, read around other's experiences and do some research.

As said above, the easy way is not always the best. In fact a lot of the time, the easy way is just cutting corners.

If you're not running a server, there's little reason not to go with a clean install. Do a backup, and take some time to install your new system [the net install worked best for me]. The whole process of backing up and installing should take under an hour, I'd like to think. Which is way less time than it would take for you to do a lazy upgrade and then spend ages posting on forums to find out what went wrong if there were conflicts.
User avatar
Lysander
 
Posts: 271
Joined: 2017-02-23 10:07
Location: London

Re: Upgrading from Debian 8 to 9

Postby Caitlin » 2017-06-27 08:51

I've just upgraded from Jessie (8 ) to Stretch (9) with a clean install, and it worked out well for me. First, I copied all the files in my home directory (e.g, source code) that I wanted to keep, backed up Jessie for the last time, formatted the / and /home partitions, then installed Stretch from a DVD that I had downloaded.

It took me more than an hour, though. I had to reinstall and reconfigure all the apps I need. I worked from a plan (which was basically a journal of what I did when I installed Jessie). But some things had changed, and I had to stop and research what I had to do differently this time. I've spent about 9 or 10 hours so far, and I'm not finished (although my system is usable for most things now). I had fixed things like Firefox's "well this is embarrassing" message before only to have to fix them again.

I am looking forward to installing Stretch's first point release when it is available -- although I'm going to use upgrade and dist-upgrade for that.

Just my $.02.

Caitlin
Caitlin
 
Posts: 236
Joined: 2012-05-24 07:32

Re: Upgrading from Debian 8 to 9

Postby Lysander » 2017-06-27 09:27

Caitlin wrote:First, I copied all the files in my home directory (e.g, source code)


Do you mean source code or sources.list?

Caitlin wrote:It took me more than an hour, though. I had to reinstall and reconfigure all the apps I need. I worked from a plan (which was basically a journal of what I did when I installed Jessie). But some things had changed, and I had to stop and research what I had to do differently this time. I've spent about 9 or 10 hours so far, and I'm not finished (although my system is usable for most things now). I had fixed things like Firefox's "well this is embarrassing" message before only to have to fix them again.


I meant less than an hour to do a backup and the clean install. Of course this would depend on the size of the backup. I keep a similar 'journal' to you regarding what I need to do to get my Debian install working with all the packages I want, it's a 25-30 point program. I would say that took me 3-4 hours to do for 9.0, though again it's relative to what the user requires.

Caitlin wrote:I am looking forward to installing Stretch's first point release when it is available -- although I'm going to use upgrade and dist-upgrade for that.


Indeed there is no need to do a clean install for point releases. If you normally update regularly there shouldn't be much to do.
User avatar
Lysander
 
Posts: 271
Joined: 2017-02-23 10:07
Location: London

Re: Upgrading from Debian 8 to 9

Postby Caitlin » 2017-06-28 07:12

Lysander wrote:
Caitlin wrote:First, I copied all the files in my home directory (e.g, source code) [that I wanted to keep ... .]


Do you mean source code or sources.list?

I mean source code -- mostly in C, without any pluses. If I meant sources.list, I would have said so.

Besides, the installer gives you a new sources.list -- conveniently set to Stretch, of course.

Lysander wrote:
Caitlin wrote:It took me more than an hour, though. I had to reinstall and reconfigure all the apps I need. I worked from a plan (which was basically a journal of what I did when I installed Jessie). But some things had changed, and I had to stop and research what I had to do differently this time. I've spent about 9 or 10 hours so far, and I'm not finished (although my system is usable for most things now). I had fixed things like Firefox's "well this is embarrassing" message before only to have to fix them again.


I meant less than an hour to do a backup and the clean install. Of course this would depend on the size of the backup. I keep a similar 'journal' to you regarding what I need to do to get my Debian install working with all the packages I want, it's a 25-30 point program. I would say that took me 3-4 hours to do for 9.0, though again it's relative to what the user requires.

-snip-

I'm sure it would have taken me about that long to do it, if I didn't run into problems -- like WINE not working and having to muck around with the main menu. Each such problem has to be researched and fixed. And I need to update my journal, for next time.

Caitlin
Caitlin
 
Posts: 236
Joined: 2012-05-24 07:32

Re: Upgrading from Debian 8 to 9

Postby HarborView » 2017-07-16 10:53

Yeah, I have to use a shared wifi and do it from midnite till whenever. I have scribbled notes of what to reinstall. Diet cola or another caffeine source is a necessity.
HarborView
 
Posts: 38
Joined: 2014-02-01 02:21
Location: The Space Coast of the USA

Re: Upgrading from Debian 8 to 9

Postby biochemistrygmcs » 2017-07-20 16:41

I upgraded 3 systems.
One could not load kernel after upgrade. I had to create initramfs manually before it worked again.
In another, home partition was not mounted. I had to login as root only.
Do clean install as far as possible. dist-upgrade is intelligent, but far from perfect
biochemistrygmcs
 
Posts: 8
Joined: 2017-07-20 13:48

Re: Upgrading from Debian 8 to 9

Postby RU55EL » 2017-07-21 04:22

I think that clean install is easiest. To cut down on the configuration time, I use a separate partition for /home. It is rsync'd on a regular basis to a backup drive. (Of course, freshen the backup before upgrading.) That allows me to retain software configuration files, .bash_aliases, and such. So, that I don't have to spend time re-configuring everything to the way that I like it.

I start a clean install on the root partition, choose manual partitioning, format the root partition, but set the /home partition to keep all files and not format, but remain as /home. Perform the clean install. Check sources.list to be sure it is pure Debian (personal preference) and configured correctly (such as commenting out the installation CD.) Because I install from the first disk of the set on a usb drive, I then run updates. Followed by installation of a small list of software: sudo, vim, rsync, tmux, vlc, handbrake, openvpn, gnucash, etc. Then copy vpn configuration files from a backup on /home to /etc/openvpn. Good to go. I did have to import the older Keepassx 1 database and save it as a version 2 database due to the newer version of Keepassx, but other than that, smooth sailing.

I updated three computers all quad cores with ssd drives. The fastest took about 15 minutes for the clean install and about 15 to 20 minutes for everything else. the slowest took about an hour and a half for the whole thing. But, other than the new stuff in Debian 9, the systems look virtually the same because I retained the old /home partition, with it's configuration files.

I'm no rocket scientist. This is the easiest method that I have figured out so far. I hope someone may find this useful. On the other side of the coin, suggestions are very welcome.
User avatar
RU55EL
 
Posts: 228
Joined: 2014-04-07 03:42
Location: /home/russel

Re: Upgrading from Debian 8 to 9

Postby Caitlin » 2017-07-21 05:15

RU55EL wrote:... To cut down on the configuration time, I use a separate partition for /home. It is rsync'd on a regular basis to a backup drive. (Of course, freshen the backup before upgrading.) That allows me to retain software configuration files, .bash_aliases, and such. So, that I don't have to spend time re-configuring everything to the way that I like it. ...

IMHO I make it a point to wipe out all the configuration files. That way, if I misconfigured something to begin with, I have a second chance to get it right.

I do keep a list of what configuratings I've done so I can reconfigure fairly quickly.

Within /home, I only need to preserve things like my source code, binaries, and scripts.

Caitlin
Caitlin
 
Posts: 236
Joined: 2012-05-24 07:32

Re: Upgrading from Debian 8 to 9

Postby luvr » 2017-07-22 09:24

Caitlin wrote:I make it a point to wipe out all the configuration files. That way, if I misconfigured something to begin with, I have a second chance to get it right.
Same here. Plus, this way avoids any issues in case some software upgrade changes its configuration file format but does not properly convert existing files from an earlier version.

I do keep a list of what configuratings I've done so I can reconfigure fairly quickly.
That's what I also try to do, but I'm just not particularly disciplined. I often end up looking back into the old files, or trying to figure out what it was that I did in some other way.
luvr
 
Posts: 71
Joined: 2016-07-21 19:39
Location: Boom - The Home Town of Tomorrowland, Belgium

Re: Upgrading from Debian 8 to 9

Postby pendrachken » 2017-07-25 00:57

acewiza wrote:
Robertg wrote:Is there easy way to do this besides doing a clean installation?

I would venture to say doing a clean install "is" the easy/best way to accomplish this. JMHO. YMMV. :D




This isn't Ubuntu, sonny.

I've had an install go from Sarge > Etch > ( image failed drive to a new one, on different hardware ) > Lenny > Squeeze ( image the same installation AGAIN on different hardware) > Wheezy. All in place with no re-installation. Only major PITA was tracking down and filing a bug report on why the migration from KDE 3.x > 4.x lost sound on upgraded install but not on fresh installs.
fortune -o
Your love life will be... interesting.
:twisted: How did it know?

The U.S. uses the metric system too, we have tenths, hundredths and thousandths of inches :-P
pendrachken
 
Posts: 1270
Joined: 2007-03-04 21:10
Location: U.S.A. - WI.

Next

Return to Installation

Who is online

Users browsing this forum: No registered users and 17 guests

fashionable