Solved Update from 16.0.3.676 to 16.0.4.493 fails

Status
Not open for further replies.

Shane Jensen

Customer
Basic Certified
Joined
May 18, 2018
Messages
11
Reaction score
1
Using the management console to update from 16.0.3.676 to 16.0.4.493 fails with the following log:

Get:1 http://downloads-global.3cx.com/downloads/debian stretch-testing InRelease [8,917 B]
Hit:2 http://security.debian.org stretch/updates InRelease
Ign:3 http://deb.debian.org/debian stretch InRelease
Hit:4 http://packages.cloud.google.com/apt cloud-sdk-jessie InRelease
Hit:5 http://repo.saltstack.com/apt/debian/9/amd64/latest stretch InRelease
Hit:6 http://deb.debian.org/debian stretch-updates InRelease
Ign:1 http://downloads-global.3cx.com/downloads/debian stretch-testing InRelease
Hit:7 http://packages.cloud.google.com/apt google-compute-engine-jessie-stable InRelease
Ign:8 http://deb.debian.org/debian jessie-backports InRelease
Hit:9 http://deb.debian.org/debian stretch Release
Hit:10 http://packages.cloud.google.com/apt google-cloud-packages-archive-keyring-jessie InRelease
Get:11 http://downloads.3cx.com/downloads/debian stretch InRelease [8,890 B]
Err:12 http://deb.debian.org/debian jessie-backports Release
404 Not Found
Ign:11 http://downloads.3cx.com/downloads/debian stretch InRelease
Reading package lists...
W: GPG error: http://downloads-global.3cx.com/downloads/debian stretch-testing InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D34B9BFD90503A6B
W: The repository 'http://downloads-global.3cx.com/downloads/debian stretch-testing InRelease' is not signed.
E: The repository 'http://deb.debian.org/debian jessie-backports Release' does no longer have a Release file.
W: GPG error: http://downloads.3cx.com/downloads/debian stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D34B9BFD90503A6B
W: The repository 'http://downloads.3cx.com/downloads/debian stretch InRelease' is not signed.

Any suggestions?
 
Firstly have you rebooted the linux machine?

I would try maybe SSH in and getting the public key:

wget -O- http://downloads-global.3cx.com/downloads/3cxpbx/public.key | sudo apt-key add -

then run sudo apt update && sudo apt upgrade
(do not run apt upgrade) - Edited by forum moderator

then try again?
 
Last edited by a moderator:
Hi shane,

It looks like you do not have our public key, and the update server cannot be reached properly.

Please try run the following commands via SSH on your machine:

Code:
wget -O- http://downloads-global.3cx.com/downloads/3cxpbx/public.key | sudo apt-key add -

echo "deb http://downloads-global.3cx.com/downloads/debian stretch main" | sudo tee /etc/apt/sources.list.d/3cxpbx.list

echo "deb http://downloads-global.3cx.com/downloads/debian stretch-testing main" | sudo tee /etc/apt/sources.list.d/3cxpbx-testing.list

sudo apt update

Then try to update again from your management console
 
Hi Shane,

Those should not really be posing a problem because 3CX does not rely on them.

From what I gather your probably started out with Debian Jessie, and upgraded to Debian Stretch as we rolled out PBX updates (otherwise you would not be able to install V16).

Those repositories you see are for the old Debian Jessie which are now probably deprecated by debian themselves (they move it to an archived server I believe).

Are you sure our management console cannot update you to V16?

on my system (which is already a Debian Stretch) the file /etc/apt/sources.list only contains the following:


deb http://cdn-aws.deb.debian.org/debian stretch main
deb http://security.debian.org/debian-security stretch/updates main
deb http://cdn-aws.deb.debian.org/debian stretch-updates main
 
@JohnS_3CX After fixing the key issue I ran the update from the management console and it failed. This is log provided in the email:
Hit:1 http://downloads-global.3cx.com/downloads/debian stretch-testing InRelease
Hit:2 http://downloads-global.3cx.com/downloads/debian stretch InRelease
Ign:3 http://deb.debian.org/debian stretch InRelease
Hit:4 http://security.debian.org stretch/updates InRelease
Hit:5 http://deb.debian.org/debian stretch-updates InRelease
Hit:6 http://packages.cloud.google.com/apt cloud-sdk-jessie InRelease
Ign:7 http://deb.debian.org/debian jessie-backports InRelease
Hit:8 http://deb.debian.org/debian stretch Release
Err:9 http://deb.debian.org/debian jessie-backports Release
404 Not Found
Hit:10 http://repo.saltstack.com/apt/debian/9/amd64/latest stretch InRelease
Hit:11 http://packages.cloud.google.com/apt google-compute-engine-jessie-stable InRelease
Hit:12 http://packages.cloud.google.com/apt google-cloud-packages-archive-keyring-jessie InRelease
Reading package lists...
E: The repository 'http://deb.debian.org/debian jessie-backports Release' does no longer have a Release file.
 
Hi Shane,

Please run a full backup of your instance, and download it off your machine for safekeeping.

You might need to redeploy, so let's be on the safe side before we proceed any further.

Once that is done, check your Debian version just be sure by running the command lsb_release -a

Let me know what version the system reports
 
Same issue here. Update fails instantly for what appears to be repository issues.
 

Attachments

Not sure why you still have Jessi (debian 8) repos in your sources list but v16 only works on Stretch (debian 9)
 
What does your /etc/apt/sources.list file contain?
 
Hello all,
As we had another case similar at support let me share the steps to get this sorted:
1/ go in SSH as root

2/ then go in folder /etc/apt/sources.list.d and list its content with:
cd /etc/apt/sources.list.d
ls

3/ you should see a file named backports.list in that folder,
you can either edit file backports.list with nano, and comment out its 2 lines content putting a # in front,
or just delete the file as we don't need packages from the Jessie backport repository (deprecated anyway by Debian), through command:
rm backports.list

4/ then run command "apt update", which should no longer throw errors.

5/ finally, simply retry updating from management console.
 
That worked! Thanks.

Hello all,
As we had another case similar at support let me share the steps to get this sorted:
1/ go in SSH as root

2/ then go in folder /etc/apt/sources.list.d and list its content with:
cd /etc/apt/sources.list.d
ls

3/ you should see a file named backports.list in that folder,
you can either edit file backports.list with nano, and comment out its 2 lines content putting a # in front,
or just delete the file as we don't need packages from the Jessie backport repository (deprecated anyway by Debian), through command:
rm backports.list

4/ then run command "apt update", which should no longer throw errors.

5/ finally, simply retry updating from management console.
 
Status
Not open for further replies.

Forum statistics

Threads
111,935
Messages
589,823
Members
164,815
Latest member
natedog