GCP Upgrade from Debian Jessie to Stretch

Status
Not open for further replies.

eddv123

Titanium Partner
Advanced Certified
Joined
Aug 15, 2017
Messages
2,855
Reaction score
478
Since the recent break in upgrades/sources.list reported on the 3CX forums I am having real issues upgrading a Google cloud instance from version 8 Jessie to version 9 stretch for v16 upgrade.
https://www.3cx.com/blog/docs/upgrade-debian-9/

I have read some forum posts (although not mentioned by 3CX staff) that say the only option is to rip out the instance and install with a backup a new instance on stretch. This risks losing valuable network information during the process so would like to avoid this if possible and have it only as a last resort option.

I have also tried/followed all suggestions here:
https://www.3cx.com/blog/docs/upgrading-debian/

One guide mentions that you can simply change the sources.list to the below and run apt-get (update,upgrade,dist-upgrade respectively:

deb http://deb.debian.org/debian/ stretch main
deb-src http://deb.debian.org/debian/ stretch main
deb http://security.debian.org/ stretch/updates main
deb-src http://security.debian.org/ stretch/updates main
deb http://deb.debian.org/debian/ stretch-updates main
deb-src http://deb.debian.org/debian/ stretch-updates main

When I run the command apt-get dist-upgrade I get the response as follows:

WARNING: The following packages cannot be authenticated!

libssl1.0.0 libasprintf0c2Install these packages without verification? [y/N] yErr http://deb.debian.org/debian/ jessie-backports/main libssl1.0.0 amd64 1.0.2l-1~bpo8+1
404 Not FoundErr http://deb.debian.org/debian/ jessie-backports/main libasprintf0c2 amd64 0.19.8.1-1~bpo8+1
404 Not FoundE: Failed to fetch http://deb.debian.org/debian/pool/main/o/openssl/libssl1.0.0_1.0.2l-1~bpo8+1_amd64.deb
404 Not FoundE: Failed to fetch http://deb.debian.org/debian/pool/main/g/gettext/libasprintf0c2_0.19.8.1-1~bpo8+1_amd64.deb
404 Not FoundE: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

A cat /etc/os-release then tells me I am still on Jessie.

I have tried installing these manually also but it still fails. Any known work arounds would be greatly appreciated.
 
Thanks for responding @StefanW .

debian does not store upgrade paths for long in their repors. Also the guide is labelled as "outdated"

Yes I am aware of this, I was referencing the guide as the reason why I was trying this process manually.
I had tried similar guides with the sources.list already but did have a go with the ones you provided - that Debian one is a bit thorough !! but not had any success - still the same issue.

This is a pretty old server that has been on GCP for a while now so have ripped and replaced the instance with a brand new Stretch server, working fine now. I am not a big fan of this method and do like to troubleshoot/find out the root cause of my issues however today I simply didn't have the time.
 
Status
Not open for further replies.

Forum statistics

Threads
111,934
Messages
589,819
Members
164,811
Latest member
aurorasigntrtechitnet