Public bug reported:

Hi,
while testing for an SRU in ua I found this which I think is less of a nice 
experience than it should be.

If you try FIPS via ua you might have no credentials, but want to try.
What happens is:

sudo ubuntu-advantage enable-fips xxx:xxx
Running apt-get update... ERROR
[...]
W: The repository 
'https://private-ppa.launchpad.net/ubuntu-advantage/fips/ubuntu xenial Release' 
does not have a Release file.
E: Failed to fetch 
https://private-ppa.launchpad.net/ubuntu-advantage/fips/ubuntu/dists/xenial/main/binary-amd64/Packages
  401  Unauthorized
E: Some index files failed to download. They have been ignored, or old ones 
used instead.

Fine, I get why xxx:xxx isn't working.
But then it leaves my system in a bad state.

# apt update
[...]
Err:7 https://private-ppa.launchpad.net/ubuntu-advantage/fips/ubuntu xenial 
Release
  401  Unauthorized
Reading package lists... Done
E: The repository 
'https://private-ppa.launchpad.net/ubuntu-advantage/fips/ubuntu xenial Release' 
does not have a Release file.


I'd ask you to check the credentials somehow and only add the repo IF those are 
good.
An alternative would be that if "on enablement" the fail is at the step 
"Running apt-get update... ERROR" then remove the repo you configured (the one 
in /etc/apt/sources.list.d/ubuntu-fips-xenial.list).


So it could look either like:
sudo ubuntu-advantage enable-fips xxx:xxx
Checking Credentials... ERROR
(no add repo happening)

or:
$ sudo ubuntu-advantage enable-fips xxx:xxx
Running apt-get update... ERROR
Rolling back repository... Ok

** Affects: ubuntu-advantage-tools (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1730361

Title:
  enabling fips should only add repos for valid credentials

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1730361/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to