Shi
2 min readMay 23, 2020

--

error during docker engine installation on Ubuntu 18.04: add-apt-repository

ubuntu@ip-172-31-31-103:~$ sudo add-apt-repository    "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
Hit:1 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu bionic-backports InRelease
Ign:4 https://pkg.jenkins.io/debian-stable binary/ InRelease
Hit:5 https://download.docker.com/linux/ubuntu bionic InRelease
Hit:6 https://pkg.jenkins.io/debian-stable binary/ Release
Hit:8 http://security.ubuntu.com/ubuntu bionic-security InRelease
Get:7 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease [15.4 kB]
Hit:10 https://packages.gitlab.com/gitlab/gitlab-ee/ubuntu bionic InRelease
Reading package lists... Done
E: Repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease' changed its 'Label' value from 'Oracle Java (JDK) 8 Installer PPA' to 'Oracle Java (JDK) 8 Installer PPA (DISCONTINUED)'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.

fix:

$ sudo add-apt-repository ppa:webupd8team/java$ sudo apt update
Hit:2 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu bionic InRelease
Hit:3 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:4 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:5 https://download.docker.com/linux/ubuntu bionic InRelease
Ign:1 https://pkg.jenkins.io/debian-stable binary/ InRelease
Hit:6 https://pkg.jenkins.io/debian-stable binary/ Release
Hit:7 http://security.ubuntu.com/ubuntu bionic-security InRelease
Get:8 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease [15.4 kB]
E: Repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease' changed its 'Label' value from 'Oracle Java (JDK) 8 Installer PPA' to 'Oracle Java (JDK) 8 Installer PPA (DISCONTINUED)'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Do you want to accept these changes and continue updating from this repository? [y/N] y
Hit:10 https://packages.gitlab.com/gitlab/gitlab-ee/ubuntu bionic InRelease
Fetched 15.4 kB in 9s (1746 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
216 packages can be upgraded. Run 'apt list --upgradable' to see them.

--

--

Shi

I am a coder/engineer/application security specialist. I like to play around with language and tools; I have strong interest in efficiency improvement.