Установка обновлений Ubuntu через прокси

Я использую Ubuntu 20.04 LTS и делюсь своим телефоном с подключением к Интернету, использующим HTTP-туннелирование, с моим ноутбуком Ubuntu. Приложение на телефоне предоставляет IP-адрес прокси и порт для подключения к Интернету. Я добавил эти IP-адрес и порт прокси-сервера в настройки сетевого прокси-сервера Ubuntu

enter image description here

. Я могу использовать это подключение к Интернету для просмотра веб-страниц и хорошо работает в браузере, но не могу использовать терминал для обновления Ubuntu. Это дает мне эту неверную ошибку запроса.

nuwan@myUbuntu:~$ sudo apt update
Hit:1 http://packages.microsoft.com/repos/vscode stable InRelease                                                                     
Hit:2 http://linux.teamviewer.com/deb stable InRelease                                                                                
Hit:3 https://repo.steampowered.com/steam stable InRelease                                                                            
Err:4 http://ppa.launchpad.net/mkusb/ppa/ubuntu focal InRelease                           
  400  Bad Request [IP: 192.168.43.69 44355]
Err:5 http://us.archive.ubuntu.com/ubuntu focal InRelease           
  400  Bad Request [IP: 192.168.43.69 44355]
Err:6 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease     
  400  Bad Request [IP: 192.168.43.69 44355]
Get:7 http://dl.google.com/linux/chrome/deb stable InRelease [1,811 B]
Err:8 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease
  400  Bad Request [IP: 192.168.43.69 44355]
Err:9 http://us.archive.ubuntu.com/ubuntu focal-security InRelease
  400  Bad Request [IP: 192.168.43.69 44355]
Get:10 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1,090 B]
Reading package lists... Done         
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://ppa.launchpad.net/mkusb/ppa/ubuntu focal InRelease' is no longer signed.
E: Failed to fetch http://ppa.launchpad.net/mkusb/ppa/ubuntu/dists/focal/InRelease  400  Bad Request [IP: 192.168.43.69 44355]
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://us.archive.ubuntu.com/ubuntu focal InRelease' is no longer signed.
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/focal/InRelease  400  Bad Request [IP: 192.168.43.69 44355]
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://us.archive.ubuntu.com/ubuntu focal-updates InRelease' is no longer signed.
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease  400  Bad Request [IP: 192.168.43.69 44355]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease  400  Bad Request [IP: 192.168.43.69 44355]
E: The repository 'http://us.archive.ubuntu.com/ubuntu focal-backports InRelease' is no longer signed.
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.
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/focal-security/InRelease  400  Bad Request [IP: 192.168.43.69 44355]
E: The repository 'http://us.archive.ubuntu.com/ubuntu focal-security InRelease' is no longer signed.
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.

Я нашел несколько вопросов, связанных с , вроде этого, но они не помогли моей проблеме. в чем проблема? (IP-адрес отличается от адреса на изображении, потому что я удалил изображение и повторно добавил код с новым результатом)

2
задан 21 November 2020 в 19:32

1 ответ

правильный способ таков:

Отредактируйте ваш /etc/apt/apt.conf и добавьте это:

Acquire::http::Proxy "http://192.168.43.104:44355";
0
ответ дан 28 October 2020 в 12:52

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

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