Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: ferdaze on November 23, 2021, 06:58:02 am

Title: Upgrade to 7 using CLI
Post by: ferdaze on November 23, 2021, 06:58:02 am
I'm trying to upgrade my server from 6.2 to 7 via the CLI but its still on 6.2. Looking at the output during the apt update I see a 401 Unauthorized from the Zentyal rep. I don't remember a source IP requirement and cannot find anything in the docs or the forum. Is there a way to add my IP as a valid source?

Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:2 http://us.archive.ubuntu.com/ubuntu focal InRelease
Get:3 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Hit:4 http://ppa.launchpad.net/oisf/suricata-stable/ubuntu focal InRelease
Err:5 http://packages.zentyal.com/zentyal-qa 7.0 InRelease
  401  Unauthorized [IP: 3.121.107.3 80]
Get:6 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Reading package lists... Done
W: http://packages.zentyal.com/zentyal-qa/dists/7.0/InRelease: /etc/apt/auth.conf: Credentials for packages.zentyal.com match, but the protocol is not encrypted. Annotate with http:// to use.
E: Failed to fetch http://packages.zentyal.com/zentyal-qa/dists/7.0/InRelease  401  Unauthorized [IP: 3.121.107.3 80]
E: The repository 'http://packages.zentyal.com/zentyal-qa 7.0 InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
Title: Re: Upgrade to 7 using CLI
Post by: turalyon on November 23, 2021, 03:11:51 pm
Hi,

'http://packages.zentyal.com/zentyal-qa' is the commercial repository. Are you using a commercial license o a trial version?

If you are not, just comment that repository and set the community:

Code: [Select]
deb http://packages.zentyal.org/zentyal 7.0 main extra

If you have a trial version or a commercial version, just make sure that the 'HTTP' protocol is set un the URL of the configuration file '/etc/apt/auth.conf'.

Code: [Select]
machine http://packages.zentyal.com ...

--

“This world is ours, and by the Holy Light we will keep it safe, now and forever"
Title: Re: Upgrade to 7 using CLI
Post by: ferdaze on November 23, 2021, 10:22:02 pm
Thanks for the reply.

Yes I'm running commercial and I do have a /etc/apt/auth.conf with login and password in it. It did not have any protocol in it so I added it and now its is working!

Before:
machine packages.zentyal.com login ....

After:
machine http://packages.zentyal.com login ....

Thank you for the help again