DEV Community

How I solved: Failed to fetch http://ppa.launchpad.net/.., 403 Forbidden

Deepika Banoth on April 23, 2020

I've been using Ubuntu 16.04 vagrant machine for quite some time now. I wanted to install a package, for which I had to do sudo apt-get update befo...
Collapse
 
dylzeee profile image
dylzeee •

Thanks a lot, @deepika_banoth right when I was struggling with this error, you showed up in your superhero outfit and saved the day :)

Collapse
 
deepika_banoth profile image
Deepika Banoth •

Glad it helped :)

Collapse
 
darkterminal profile image
Imam Ali Mustofa •

DAMN! When I Googling... your article show on the top of the page, then I click! My problem has been solved! Thanks

Collapse
 
praveenmkumar15 profile image
praveenkumar •

how to comment the command in terminal or in some other?Please reply me..I need that

Collapse
 
darkterminal profile image
Imam Ali Mustofa •

just add # (hashtag), example:

deb repo-bla-bla

change to

# deb repo-bla-bla
Thread Thread
 
pksejake profile image
PKSejake •

Hi! Do I comment on the terminal?

I still get the same error when running sudo apt-get update
E: Failed to fetch ppa.launchpad.net/jonathonf/python... 403 Forbidden

Thread Thread
 
githinjikiragu profile image
githinjikiragu •

sudo gedit then comment out

Collapse
 
eie1 profile image
Eie1 • • Edited

thanks very much,could you help to see the bugs i meet,they are a lot different from yours,and i can not solve them,i will appreciate very much if you can help @deepika_banoth

(base) dsp@dsp-Default-string:/$ grep -r --include '*.list' '^deb ' /etc/apt/sources.list /etc/apt/sources.list.d/
/etc/apt/sources.list:deb us.archive.ubuntu.com/ubuntu/ xenial main restricted
/etc/apt/sources.list:deb us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
/etc/apt/sources.list:deb us.archive.ubuntu.com/ubuntu/ xenial universe
/etc/apt/sources.list:deb us.archive.ubuntu.com/ubuntu/ xenial-updates universe
/etc/apt/sources.list:deb us.archive.ubuntu.com/ubuntu/ xenial multiverse
/etc/apt/sources.list:deb us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
/etc/apt/sources.list:deb us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
/etc/apt/sources.list:deb security.ubuntu.com/ubuntu xenial-security main restricted
/etc/apt/sources.list:deb security.ubuntu.com/ubuntu xenial-security universe
/etc/apt/sources.list:deb security.ubuntu.com/ubuntu xenial-security multiverse
/etc/apt/sources.list.d/github_git-lfs.list:deb packagecloud.io/github/git-lfs/ubu... xenial main
/etc/apt/sources.list.d/teamviewer.list:deb linux.teamviewer.com/deb stable main
/etc/apt/sources.list.d/vscode.list:deb [arch=amd64] packages.microsoft.com/repos/vscode stable main
/etc/apt/sources.list.d/cuda-9-2-local.list:deb file:///var/cuda-repo-9-2-local /
/etc/apt/sources.list.d/cuda-9-0-local.list:deb file:///var/cuda-repo-9-0-local /
/etc/apt/sources.list.d/jonathonf-ubuntu-python-3_6-xenial.list:deb ppa.launchpad.net/jonathonf/python... xenial main

Collapse
 
deepika_banoth profile image
Deepika Banoth •

@eie1 I see this in your list: jonathonf-ubuntu-python-3_6-xenial.list. Do try commenting it(/etc/apt/sources.list.d/jonathonf-ubuntu-python-3_6-xenial.list) out.

Collapse
 
moatazabdalmageed profile image
Moataz Mohammady •

Thanks @deepika_banoth this helped me

Collapse
 
deepika_banoth profile image
Deepika Banoth •

Glad it helped :)

Collapse
 
unikcc profile image
unikcc •

Thank you for you kindly post and you save my life, thanks god.

Collapse
 
githinjikiragu profile image
githinjikiragu •

Thanks alot this worked for me :)

Collapse
 
dongzhiyang profile image
dongzhi-yang •

You saved my day!