Solved Raspberry Pi SBC Won't Update 18.0.30 to 18.1.34

Status
Not open for further replies.

loyer

Silver Partner
Advanced Certified
Joined
May 5, 2016
Messages
107
Reaction score
46
I have a similar question/issue to: https://www.3cx.com/community/threads/sbc-wont-update.84326/

First, my info:
SBC is running on a Raspberry Pi 3 Model B+, Debian version 9.4 (stretch) with 3cx SBC version 18.0.30 running ---- and everything is working great for a while (at least a year).

The 3cx server recently upgraded to v18 Update 2 so I thought I would try and update the SBC too. I attempted to upgrade the SBC from the web admin and it looked like nothing happened (waited 10+ minutes). So I started to search the forums. That's when I found Lee Cramman's post here: https://www.3cx.com/community/threads/sbc-wont-update.84326/

I followed the debugging process, remoted into the command line via dataplicity.com then looked at the directory of /etc/apt/sources.list.d I have three files:

3cxpbx.list
3cxpbx-testing.list
raspi.list

tail 3cxpbx.list looks normal:
deb http://downloads-global.3cx.com/downloads/debian stretch main

tail 3cxpbx-testing.list ---- LOOKS DIFFERENT FROM @ChrisC_3CX said should be in the file.
deb [arch=armhf] http://downloads-global.3cx.com/downloads/debian -testing main

Chris said it should say:
deb [arch=amd64] http://downloads-global.3cx.com/downloads/debian stretch-testing main

I noticed two difference (the arch is different) and my file is missing the "stretch" before the -testing.

When I run sudo apt-get update ---- at the end it says:


W: The repository 'http://downloads-global.3cx.com/downloads/debian -testing Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://downloads-global.3cx.com/downloads/debian/dists/-testing/main/binary-armhf/Packages 404 Not Found [IP: 172.67.39.236 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.


MY QUESTION
Before I continue, should I update/correct the 3cxpbx-testing.list file?

Thank you for your help!
 
The source provided in the thread you linked was not for a RPi and that is why the architecture value was different. In 3cxpbx-testing.list you should have the following line:

After correcting it, try running the following:
apt update

I do have to mention though, the 3CX SBC latest stable version is 18.0.30. If this is what you are running already I would not recommend upgrading it as you would be upgrading to a BETA version and we do not recommend their use for a production environment.
 
Hi Chris,

I corrected the 3cxpbx-testing.list file and run sudo apt update. That seemed to fix the problem. Any idea why 3cxpbx-testing.list was created without the "stretch"? Is that a configuration issue on my part? I have upgraded this 3cx SBC previously with success.

FYI, it seems like my raspberry pi needed a lot of OS updates too. I ran apt upgrade and it took a while and there was a good amount of updates. I rebooted afterwards. Then I went back to the 3cx web admin and started the SBC upgrade from there. It worked and now I am running 18.1.34.

Anyone else reading this (or myself in 3 months when I have forgot).... steps to fix my particular issue were:


1) Correct the formatting of the 3cxpbx.list and/or 3cxpbx-testing.list files in /etc/apt/sources.list.d folder
2) run: sudo apt update
3) run: sudo apt upgrade
4) run: sudo reboot
5) Go to 3cx web admin, SIP trunks, select SBC, choose upgrade



Chris, thank you for your help.
 
  • Like
Reactions: ChrisC_3CX
I corrected the 3cxpbx-testing.list file and run sudo apt update. That seemed to fix the problem. Any idea why 3cxpbx-testing.list was created without the "stretch"?
For this I'm not sure to be honest. It may even have been valid in the past but regardless, this is no longer the case.

Glad to see you were able to resolve the issue!

Please feel free to start a new thread should anything else come up!
 
  • Like
Reactions: JEDAdmin
Status
Not open for further replies.

Forum statistics

Threads
111,974
Messages
590,081
Members
164,899
Latest member
mazet