0

I am getting this error whenever I try to:

sudo apt-get update

my-pc@my-pc:~$ sudo apt-get update
[sudo] password for my-pc:
Ign:1 http://ppa.launchpad.net/ondrej/mysql-5.6/ubuntu bionic InRelease
Hit:2 http://pk.archive.ubuntu.com/ubuntu bionic InRelease
Ign:3 http://archive.ubuntu.com/ubuntu trusty InRelease
Get:4 http://pk.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Hit:5 http://archive.ubuntu.com/ubuntu trusty Release
Hit:6 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease
Ign:7 https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 InRelease
Hit:8 http://security.ubuntu.com/ubuntu bionic-security InRelease
Ign:10 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 InRelease
Hit:11 https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 Release
Err:12 http://ppa.launchpad.net/ondrej/mysql-5.6/ubuntu bionic Release
  404  Not Found [IP: 91.189.95.83 80]
Hit:14 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 Release
Hit:15 https://download.stackify.com/deb stable InRelease
Hit:17 https://repo.skype.com/deb stable InRelease
Get:18 http://pk.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/ondrej/mysql-5.6/ubuntu bionic Release' does not have a Release file.
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.
my-pc@my-pc:~$

How can I fix this?

Here is an output of /etc/apt/sources.list :

# deb cdrom:[Ubuntu 18.04.4 LTS _Bionic Beaver_ - Release amd64 (20200203.1)]/ bionic main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://pk.archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://pk.archive.ubuntu.com/ubuntu/ bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://pk.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
# deb-src http://pk.archive.ubuntu.com/ubuntu/ bionic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://pk.archive.ubuntu.com/ubuntu/ bionic universe
# deb-src http://pk.archive.ubuntu.com/ubuntu/ bionic universe
deb http://pk.archive.ubuntu.com/ubuntu/ bionic-updates universe
# deb-src http://pk.archive.ubuntu.com/ubuntu/ bionic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://pk.archive.ubuntu.com/ubuntu/ bionic multiverse
# deb-src http://pk.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://pk.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
# deb-src http://pk.archive.ubuntu.com/ubuntu/ bionic-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://pk.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
# deb-src http://pk.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu bionic partner
# deb-src http://archive.canonical.com/ubuntu bionic partner

deb http://security.ubuntu.com/ubuntu bionic-security main restricted
# deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
# deb-src http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
deb http://archive.ubuntu.com/ubuntu trusty universe
# deb-src http://archive.ubuntu.com/ubuntu trusty universe
# deb-src http://archive.ubuntu.com/ubuntu trusty universe
  • @mook765 FYI i already tried this and it doesnt work for me. Running sudo ppa-purge ppa:ondrej/mysql-5.6 says Updating packages lists E: The repository 'http://ppa.launchpad.net/ondrej/mysql-5.6/ubuntu bionic Release' does not have a Release file. – StormTrooper May 07 '20 at 17:00
  • There is more than one answer in the given link. The other answers are also valid. – mook765 May 07 '20 at 17:02
  • @mook765 I do not post threads usually, but as I have tried so many things strangely doesn't work in the case. Tried this way as well: sudo add-apt-repository --remove ppa:ondrej/mysql-5.6. – StormTrooper May 07 '20 at 17:07
  • 1
    So did you run sudo apt uipdate then? You can also look for the file /etc/apt/sources.list and comment out the corresponding line with prepending a # or a file in /etc/apt/sources.list.d which can simply be removed. – mook765 May 07 '20 at 17:14
  • @mook765 Yes I did ran sudo apt update but still get same error. Please check output of /etc/apt/sources.list in my question – StormTrooper May 07 '20 at 17:24
  • You have one repo for trusty in this file, the third last line, comment out this line. Regarding the PPA check for files in the directory /etc/apt/sources.list.d and remove the corresponding file. – mook765 May 07 '20 at 17:33
  • @mook765 commented this line: #deb http://archive.ubuntu.com/ubuntu trusty universe and ran sudo apt update. Getting same error – StormTrooper May 07 '20 at 18:08
  • @mook765 deleting ppa:ondrej/mysql-5.6 in /etc/apt/sources.list.d worked for me. Thanks. Much appreciated. – StormTrooper May 07 '20 at 21:29

0 Answers0