Не удается установить пакеты. & ldquo; Предупреждение: ненадежные версии & hellip; & rdquo; плюс & ldquo; не удалось найти драйвер метода / usr / lib / apt / Methods / http & rdquo;

Судя по интернет-форумам, эти ошибки кажутся популярными при попытке установить пакеты:

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

Я подписался на этот пост , удалив ubuntu-keyring. Но я не могу переустановить ubuntu-keyring или ubuntu-minimal - вышеупомянутые ошибки снова появляются.

На самом деле, у меня даже нет apt (я, должно быть, вызвал это, пытаясь найти плохое решение, или, может быть, clean):

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

Aptitude работает, но я не могу установить 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

... или обновить

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.

Я пробовал этот пост . Не помогло.


Подводя итог, главная проблема в том, что я ничего не могу установить . При попытке решить проблему возникли другие вышеупомянутые ошибки. Можете ли вы помочь мне исправить эту ошибку? Не стесняйтесь спрашивать, нужна ли вам дополнительная информация.


Статистика:

steve:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 11.10
Release:    11.10
Codename:   oneiric
2
задан 13 April 2017 в 15:23

1 ответ

Я решил установить apt вручную с http://packages.ubuntu.com . Это все исправило. Это населяло и /etc/apt и /usr/lib/apt/methods.

0
ответ дан 13 April 2017 в 15:23

Другие вопросы по тегам:

Похожие вопросы: