Cobra Forum

Linux Specialised Support => Security => Topic started by: kalpana on Nov 04, 2023, 04:55 AM

Title: Ubuntu 16 (Xenial) enabling ESM Updates result in APT 401 Unauthorized
Post by: kalpana on Nov 04, 2023, 04:55 AM
I'm trying to enable ESM Updates for my Ubuntu 16 Workstation. Currently having no time to upgrade the system to newer LTS I thought this would be a good idea. I've created the ESM Update-Token and executed the command given after that step:


Code:

sudo ua attach C6*********SH
sudo apt-get update
(works)

sudo apt upgrade
...
342 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
342 esm-infra security updates
Need to get 261 MB of archives.
After this operation, 44,9 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Err:1 https://esm.ubuntu.com/infra/ubuntu xenial-infra-security/main amd64 bash amd64 4.3-14ubuntu1.4+esm1
  401  Unauthorized
Err:2 https://esm.ubuntu.com/infra/ubuntu xenial-infra-security/main amd64 bsdutils amd64 1:2.27.1-6ubuntu3.10+esm2
  401  Unauthorized
Err:3 https://esm.ubuntu.com/infra/ubuntu xenial-infra-security/main amd64 libpam0g-dev amd64 1.1.8-3.2ubuntu2.3+esm1
...

All ESM Updates fail with 401 Unauthorized!

The file '/etc/apt/auth.conf.d/90ubuntu-advantage' is present and has a password/token in it. I also tried to delete this file and rerun the esm/ua enable 'sudo ua attach C6*********SH' which re-created this file. But problem persists with 401 Unauthorized.


I thought this would be a easy-doing, but that it's somehow broken is really annoying. Any tips to fix this?