Missing apt keys causes issues on deployed nodes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
maas-cert-server |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Not sure exactly how this happened but the Tokyo office set up a MAAS server and a Fujitsu server to test some fixes on.
The system appears to have been deployed using our curtin_userdata as the /etc/installed-
However, I see this when trying to do an apt update:
ubuntu@cx1640-1:~$ sudo apt update
sudo: unable to resolve host cx1640-1
Hit:1 http://
Hit:3 http://
Hit:5 http://
Get:2 http://
Get:4 http://
Err:2 http://
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 101B58111FEADE10
Err:4 http://
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A1E2B0920C32E7C6
Reading package lists... Done
W: GPG error: http://
E: The repository 'http://
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.
W: GPG error: http://
E: The repository 'http://
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.
ubuntu@cx1640-1:~$ cat /etc/apt/
deb http://
deb http://
deb http://
ubuntu@cx1640-1:~$ ls /etc/apt/
certification.list
ubuntu@cx1640-1:~$ cat /etc/apt/
deb http://
deb http://
Once I manually run add-apt-repository to re-create the repo and import the key, I am able to update and now apt shows correct data:
BEFORE:
ubuntu@cx1640-1:~$ apt-cache policy stress-ng
stress-ng:
Installed: 0.07.12-0ppa1
Candidate: 0.07.12-0ppa1
Version table:
*** 0.07.12-0ppa1 500
500 http://
100 /var/lib/
0.
500 http://
0.05.23-1 500
500 http://
AFTER manually re-running apt-add-repository:
ubuntu@cx1640-1:~$ apt-cache policy stress-ng
stress-ng:
Installed: 0.07.12-0ppa1
Candidate: 0.07.16-1ppa1
Version table:
0.07.16-1ppa1 500
500 http://
*** 0.07.12-0ppa1 100
100 /var/lib/
0.
500 http://
0.05.23-1 500
500 http://
Changed in maas-cert-server: | |
status: | New → Fix Released |
Might apt and apt-get respond differently? I've never run into this, but I almost always use apt-get. Of course, this needs to be fixed either way; I'm just hoping for a quick workaround in the meantime.