Linux: apt-get update Fails due to signature 'is not signed'
WINE was causing this due to missing keys...
wget the correct/updated keys fixed the issue
Add Repository
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
Key WineHQ keys
get -nc https://dl.winehq.org/wine-builds/winehq.key && sudo apt-key add winehq.key && sudo apt update
download new repo key & add it to trusted keys
cd /tmp
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo apt update
sudo usermod -aG docker silosix
Session
silosix@M6500:~/scripts$ curl -fsSL https://get.docker.com -o get-docker.sh | sh
silosix@M6500:~/scripts$ curl -fsSL https://get.docker.com -o get-docker.sh
silosix@M6500:~/scripts$ ls -la
total 104
drwxrwxr-x 2 silosix silosix 4096 Jan 21 19:06 .
drwxr-xr-x 54 silosix silosix 4096 Jan 19 19:57 ..
-rw-r--r-- 1 silosix silosix 13380 Jan 21 19:06 get-docker.sh
-rwxrwxr-x 1 silosix silosix 401 Jan 12 00:24 getytdl.sh
-rwxr-xr-x 1 silosix silosix 4626 Jan 17 02:31 Menu.example.sh
-rwxrwxr-x 1 silosix silosix 2112 Jan 21 16:10 menu.sh
-rwxr-xr-x 1 silosix silosix 55 Dec 28 06:36 rdp-silo6.sh
-rwxrwxr-x 1 silosix silosix 230 Jan 13 07:27 _silo6unshares.sh
-rw-rw-r-- 1 silosix silosix 28 Jan 21 16:22 url.txt
-rwxrwxr-x 1 silosix silosix 39484 Jan 10 23:41 wgstuff.sh
-rwxrwxr-x 1 silosix silosix 180 Jan 11 21:35 ytdf.sh
-rwxrwxr-x 1 silosix silosix 336 Jan 11 21:41 ytdlphp.sh
-rwxrwxr-x 1 silosix silosix 170 Jan 11 21:35 ytdl.sh
silosix@M6500:~/scripts$ chmod +x get-docker.sh
silosix@M6500:~/scripts$ get-docker.sh
get-docker.sh: command not found
silosix@M6500:~/scripts$ ./get-docker.sh
# Executing docker install script, commit: 4957679
+ sudo -E sh -c apt-get update -qq >/dev/null
[sudo] password for silosix:
W: GPG error: https://dl.winehq.org/wine-builds/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
E: The repository 'https://dl.winehq.org/wine-builds/ubuntu bionic InRelease' is not signed.
silosix@M6500:~/scripts$ sudo apt-get update
Ign:1 http://packages.linuxmint.com tessa InRelease
Hit:2 http://archive.canonical.com/ubuntu bionic InRelease
Hit:3 http://packages.linuxmint.com tessa Release
Get:4 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease [6,257 B]
Hit:5 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:6 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:7 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu bionic InRelease
Hit:8 https://download.sublimetext.com apt/stable/ InRelease
Hit:9 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:11 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:12 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease
Err:4 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
Hit:13 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
Reading package lists... Done
W: GPG error: https://dl.winehq.org/wine-builds/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
E: The repository 'https://dl.winehq.org/wine-builds/ubuntu bionic 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.
silosix@M6500:~/scripts$ ./get-docker.sh
# Executing docker install script, commit: 4957679
+ sudo -E sh -c apt-get update -qq >/dev/null
W: GPG error: https://dl.winehq.org/wine-builds/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
E: The repository 'https://dl.winehq.org/wine-builds/ubuntu bionic InRelease' is not signed.
silosix@M6500:~/scripts$ sudo ./get-docker.sh
# Executing docker install script, commit: 4957679
+ sh -c apt-get update -qq >/dev/null
W: GPG error: https://dl.winehq.org/wine-builds/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
E: The repository 'https://dl.winehq.org/wine-builds/ubuntu bionic InRelease' is not signed.
silosix@M6500:~/scripts$ ^C
silosix@M6500:~/scripts$ wget -qO- https://dl.winehq.org/wine-builds/Release.key | sudo apt-key add -
OK
silosix@M6500:~/scripts$ ./get-docker.sh
# Executing docker install script, commit: 4957679
+ sudo -E sh -c apt-get update -qq >/dev/null
W: GPG error: https://dl.winehq.org/wine-builds/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
E: The repository 'https://dl.winehq.org/wine-builds/ubuntu bionic InRelease' is not signed.
silosix@M6500:~/scripts$ ^C
silosix@M6500:~/scripts$ sudo apt-get update
Ign:1 http://packages.linuxmint.com tessa InRelease
Hit:2 http://packages.linuxmint.com tessa Release
Get:3 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease [6,257 B]
Hit:4 http://archive.canonical.com/ubuntu bionic InRelease
Hit:5 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu bionic InRelease
Hit:6 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:7 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:8 https://download.sublimetext.com apt/stable/ InRelease
Hit:10 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Err:3 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
Hit:11 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:12 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease
Hit:13 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
Reading package lists... Done
W: GPG error: https://dl.winehq.org/wine-builds/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
E: The repository 'https://dl.winehq.org/wine-builds/ubuntu bionic 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.
silosix@M6500:~/scripts$ sudo apt update
Ign:1 http://packages.linuxmint.com tessa InRelease
Get:2 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease [6,257 B]
Hit:3 http://packages.linuxmint.com tessa Release
Err:2 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
Hit:4 http://archive.canonical.com/ubuntu bionic InRelease
Hit:5 https://download.sublimetext.com apt/stable/ InRelease
Hit:6 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu bionic InRelease
Hit:7 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:8 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:10 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:11 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:12 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease
Hit:13 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
Reading package lists... Done
W: GPG error: https://dl.winehq.org/wine-builds/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
E: The repository 'https://dl.winehq.org/wine-builds/ubuntu bionic 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.
silosix@M6500:~/scripts$ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic ubuntu'
Repository already exists.
silosix@M6500:~/scripts$ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
Repository already exists.
silosix@M6500:~/scripts$ sudo apt-get update
Ign:1 http://packages.linuxmint.com tessa InRelease
Get:2 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease [6,257 B]
Hit:3 http://packages.linuxmint.com tessa Release
Hit:4 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu bionic InRelease
Hit:5 https://download.sublimetext.com apt/stable/ InRelease
Hit:6 http://security.ubuntu.com/ubuntu bionic-security InRelease
Err:2 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
Hit:8 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease
Hit:9 http://archive.canonical.com/ubuntu bionic InRelease
Hit:10 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:11 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:12 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
Hit:13 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Reading package lists... Done
W: GPG error: https://dl.winehq.org/wine-builds/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
E: The repository 'https://dl.winehq.org/wine-builds/ubuntu bionic 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.
silosix@M6500:~/scripts$ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic InRelease'
Repository already exists.
silosix@M6500:~/scripts$ wget -nc https://dl.winehq.org/wine-builds/winehq.key
--2019-01-21 19:17:54-- https://dl.winehq.org/wine-builds/winehq.key
Resolving dl.winehq.org (dl.winehq.org)... 151.101.50.217
Connecting to dl.winehq.org (dl.winehq.org)|151.101.50.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3220 (3.1K) [application/pgp-keys]
Saving to: ‘winehq.key’
winehq.key 100%[======================================================================================================================================>] 3.14K --.-KB/s in 0s
2019-01-21 19:17:54 (14.4 MB/s) - ‘winehq.key’ saved [3220/3220]
silosix@M6500:~/scripts$ sudo apt-key add winehq.key
OK
silosix@M6500:~/scripts$ sudo apt update
Ign:1 http://packages.linuxmint.com tessa InRelease
Get:2 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease [6,257 B]
Hit:3 http://packages.linuxmint.com tessa Release
Hit:4 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu bionic InRelease
Hit:5 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:6 https://download.sublimetext.com apt/stable/ InRelease
Hit:7 http://archive.canonical.com/ubuntu bionic InRelease
Hit:8 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:9 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Get:10 https://dl.winehq.org/wine-builds/ubuntu bionic/main amd64 Packages [120 kB]
Get:12 https://dl.winehq.org/wine-builds/ubuntu bionic/main i386 Packages [125 kB]
Hit:13 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:14 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease
Hit:15 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
Fetched 245 kB in 2s (131 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
219 packages can be upgraded. Run 'apt list --upgradable' to see them.
silosix@M6500:~/scripts$ sudo apt-get update
Ign:1 http://packages.linuxmint.com tessa InRelease
Hit:2 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease
Hit:3 http://packages.linuxmint.com tessa Release
Hit:4 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:5 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:6 http://archive.canonical.com/ubuntu bionic InRelease
Hit:7 https://download.sublimetext.com apt/stable/ InRelease
Hit:8 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu bionic InRelease
Hit:9 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:11 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:12 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease
Hit:13 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
Reading package lists... Done
silosix@M6500:~/scripts$ ./get-docker.sh
# Executing docker install script, commit: 4957679
+ sudo -E sh -c apt-get update -qq >/dev/null
+ sudo -E sh -c apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
silosix@M6500:~/scripts$ sudo ./get-docker.sh
# Executing docker install script, commit: 4957679
+ sh -c apt-get update -qq >/dev/null
+ sh -c apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
+ sh -c curl -fsSL "https://download.docker.com/linux/debian/gpg" | apt-key add -qq - >/dev/null
Warning: apt-key output should not be parsed (stdout is not a terminal)
+ sh -c echo "deb [arch=amd64] https://download.docker.com/linux/debian buster edge" > /etc/apt/sources.list.d/docker.list
+ sh -c apt-get update -qq >/dev/null
+ sh -c apt-get install -y -qq --no-install-recommends docker-ce >/dev/null
+ sh -c docker version
Client:
Version: 18.09.1
API version: 1.39
Go version: go1.10.6
Git commit: 4c52b90
Built: Wed Jan 9 19:35:53 2019
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 18.09.1
API version: 1.39 (minimum version 1.12)
Go version: go1.10.6
Git commit: 4c52b90
Built: Wed Jan 9 19:02:44 2019
OS/Arch: linux/amd64
Experimental: false
If you would like to use Docker as a non-root user, you should now consider
adding your user to the "docker" group with something like:
sudo usermod -aG docker your-user
Remember that you will have to log out and back in for this to take effect!
WARNING: Adding a user to the "docker" group will grant the ability to run
containers which can be used to obtain root privileges on the
docker host.
Refer to https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface
for more information.
silosix@M6500:~/scripts$ sudo ./get-docker.sh
# Executing docker install script, commit: 4957679
+ sh -c apt-get update -qq >/dev/null
+ sh -c apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
+ sh -c curl -fsSL "https://download.docker.com/linux/debian/gpg" | apt-key add -qq - >/dev/null
Warning: apt-key output should not be parsed (stdout is not a terminal)
+ sh -c echo "deb [arch=amd64] https://download.docker.com/linux/debian buster edge" > /etc/apt/sources.list.d/docker.list
+ sh -c apt-get update -qq >/dev/null
+ sh -c apt-get install -y -qq --no-install-recommends docker-ce >/dev/null
+ sh -c docker version
Client:
Version: 18.09.1
API version: 1.39
Go version: go1.10.6
Git commit: 4c52b90
Built: Wed Jan 9 19:35:53 2019
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 18.09.1
API version: 1.39 (minimum version 1.12)
Go version: go1.10.6
Git commit: 4c52b90
Built: Wed Jan 9 19:02:44 2019
OS/Arch: linux/amd64
Experimental: false
If you would like to use Docker as a non-root user, you should now consider
adding your user to the "docker" group with something like:
sudo usermod -aG docker your-user
Remember that you will have to log out and back in for this to take effect!
WARNING: Adding a user to the "docker" group will grant the ability to run
containers which can be used to obtain root privileges on the
docker host.
Refer to https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface
for more information.