Não é possível instalar pacotes. “Aviso: versões não confiáveis…” mais “driver de método / usr / lib / apt / methods / http não pôde ser encontrado”

2

A julgar pelos fóruns da Internet, esses erros parecem ser populares quando se tenta instalar pacotes:

steve:~$ sudo aptitude install examplepackage 
The following NEW packages will be installed:
  examplepackage examplepackage-common{a} 
0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,834 kB of archives. After unpacking 7,631 kB will be used.
Do you want to continue? [Y/n/?] 
WARNING: untrusted versions of the following packages will be installed!

Untrusted packages could compromise your system's security.
You should only proceed with the installation if you are certain that
this is what you want to do.

  examplepackage examplepackage-common 

Do you want to ignore this warning and proceed anyway?
To continue, enter "Yes"; to abort, enter "No": Yes
E: The method driver /usr/lib/apt/methods/http could not be found.
E: The method driver /usr/lib/apt/methods/http could not be found.
E: Internal error: couldn't generate list of packages to download

Eu segui esta postagem ao desinstalar ubuntu-keyring . Mas não consigo reinstalar ubuntu-keyring ou ubuntu-minimal - os erros acima reaparecem.

Na verdade, nem pareço ter apt (devo ter causado isso ao tentar uma solução ruim, ou talvez um clean ):

steve:~$ sudo apt-get update
sudo: apt-get: command not found

O aptitude funciona, mas não consigo instalar apt :

steve:~$ sudo aptitude install apt
The following NEW packages will be installed:
  apt 
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,046 kB of archives. After unpacking 3,441 kB will be used.
E: The method driver /usr/lib/apt/methods/http could not be found.
E: The method driver /usr/lib/apt/methods/http could not be found.
E: Internal error: couldn't generate list of packages to download

... ou atualizar

steve:~$ sudo aptitude update
E: The method driver /usr/lib/apt/methods/http could not be found.
E: The method driver /usr/lib/apt/methods/http could not be found.
E: The method driver /usr/lib/apt/methods/http could not be found.

Eu tentei postar . Não ajudou.

Para resumir, o principal problema é que não consigo instalar nada . Ao tentar corrigir o problema, os outros erros acima mencionados ocorreram. Você pode me ajudar a corrigir esse erro? Sinta-se à vontade para perguntar se você precisa de mais informações.

Estatísticas:

steve:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 11.10
Release:    11.10
Codename:   oneiric
    
por Steve Tjoa 12.04.2012 / 09:34

1 resposta

3

Eu decidi instalar manualmente apt do link . Isso consertou tudo. Repopulou os dois /etc/apt e /usr/lib/apt/methods .

    
por Steve Tjoa 12.04.2012 / 19:19