Erros na atualização depois de tentar instalar o Python 2.7?

0

Depois de tentar instalar o Python 2.7 no meu Ubuntu 17.04:

$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:fkrull/deadsnakes

Eu comecei a receber o erro sempre que estou executando a atualização:

$ sudo apt-get update

sudo apt-get update           
Get:1 http://security.ubuntu.com/ubuntu zesty-security InRelease [89.2 kB]
Ign:2 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty InRelease                                                 
Ign:3 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty Release                                                   
Hit:4 http://mirrors.linode.com/ubuntu zesty InRelease                 
Hit:5 http://mirrors.linode.com/ubuntu zesty-updates InRelease
Hit:6 http://mirrors.linode.com/ubuntu zesty-backports InRelease
Ign:7 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main all Packages
Ign:8 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main amd64 Packages
Ign:9 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main i386 Packages
Ign:10 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main Translation-en_US
Ign:11 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main Translation-en
Ign:7 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main all Packages
Ign:8 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main amd64 Packages
Ign:9 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main i386 Packages
Ign:10 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main Translation-en_US
Ign:11 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main Translation-en
Ign:7 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main all Packages
Ign:8 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main amd64 Packages
Ign:9 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main i386 Packages
Ign:10 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main Translation-en_US
Ign:11 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main Translation-en
Ign:7 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main all Packages
Ign:8 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main amd64 Packages
Ign:9 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main i386 Packages
Ign:10 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main Translation-en_US
Ign:11 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main Translation-en
Ign:7 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main all Packages
Ign:8 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main amd64 Packages
Ign:9 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main i386 Packages
Ign:10 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main Translation-en_US
Ign:11 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main Translation-en
Ign:7 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main all Packages
Err:8 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main amd64 Packages
  404  Not Found
Ign:9 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main i386 Packages
Ign:10 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main Translation-en_US
Ign:11 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main Translation-en
Hit:12 https://deb.nodesource.com/node_7.x zesty InRelease
Fetched 89.2 kB in 0s (129 kB/s)
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu/dists/zesty/main/binary-amd64/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

Alguma idéia por quê? Como pode consertar isso?

Estes são os erros que eu acho:

Err:8 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty/main amd64 Packages
  404  Not Found
W: The repository 'http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu zesty Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu/dists/zesty/main/binary-amd64/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
    
por laukok 18.05.2017 / 14:19

1 resposta

5

O ppa:fkrull/deadsnakes PPA (link Launchpad ) suporta apenas versões do Ubuntu até 16.04 (Xenial) . Ele simplesmente não oferece pacotes para o 17.04 (Zesty).

Você tem que remover o repositório novamente, não é compatível com o seu lançamento do Ubuntu.

Se você adicionou o repositório com sudo add-apt-repository ppa:fkrull/deadsnakes , poderá removê-lo novamente facilmente com:

sudo add-apt-repository --remove ppa:fkrull/deadsnakes

No entanto, o 17.04 já tem o Python 2.7 pré-instalado: link

De qualquer forma, mexer com a versão Python do sistema é perigoso, pois pode facilmente quebrar muitos aplicativos importantes se você acidentalmente remover uma das versões pré-instaladas do Python ou substituí-las por uma incompatível. Apenas deixe como está.

    
por Byte Commander 18.05.2017 / 14:25