Ubuntu 18.04 - Ubuntu не может установить / не может выполнить следующую задачу

За последние несколько дней, каждый раз, когда я пытаюсь установить новое приложение, я получаю

ubuntu unable to install:
cannot perform the following task: 

... без имени приложения или задачи в списке. Я пытался

sudo apt update
sudo apt upgrade
sudo apt autoremove

улучшить результаты после этого. Будучи чрезвычайно новичком, я не уверен, что попробовать дальше. Есть идеи?

Заранее спасибо за помощь!

После нескольких обменов здесь и там мне было рекомендовано добавить эту информацию:

[ 1112] cat /etc/apt/sources.list

# deb cdrom:[Ubuntu 16.04.2 LTS _Xenial Xerus_ - Release amd64 (20170215.2)]/ xenial main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu bionic main restricted
# deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted
# deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu bionic universe
# deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial universe
deb http://archive.ubuntu.com/ubuntu bionic-updates universe
# deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu bionic multiverse
# deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://archive.ubuntu.com/ubuntu bionic-updates multiverse
# deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu bionic partner
deb-src http://archive.canonical.com/ubuntu bionic partner

deb http://archive.ubuntu.com/ubuntu bionic-security main restricted
# deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://archive.ubuntu.com/ubuntu bionic-security universe
# deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://archive.ubuntu.com/ubuntu bionic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ bionic main

ls /etc/apt/sources.list.d -1

megasync.list
megasync.list.distUpgrade
megasync.list.save
slack.list
slack.list.save
teamviewer.list
1
задан 18 May 2019 в 12:29

1 ответ

Вам необходимо установить параметры прокси apt: https://help.ubuntu.com/community/Ap…e_a_http-proxy

. Примечание. Используйте команду

.

Код:

sudo -H gedit

вместо gksudo, поскольку gksudo больше не существует.

Редактировать: поскольку ссылка не существует, попробуйте это

Apt загружает все файлы конфигурации в /etc/apt/apt.conf.d. Там мы можем создать конфигурацию специально для нашего прокси, отделив ее от всех других конфигураций.

Создайте новый файл конфигурации с именем proxy.conf.

sudo touch /etc/apt/apt.conf.d/proxy.conf

Откройте файл proxy.conf в текстовом редакторе.

sudo vi /etc/apt/apt.conf.d/proxy.conf

Добавьте следующую строку, чтобы установить HTTP-прокси.

Acquire::http::Proxy "http://user:password@proxy.server:port/";

Добавьте следующую строку, чтобы установить свой HTTPS-прокси.

Acquire::https::Proxy "http://user:password@proxy.server:port/";

Сохраните изменения и выйдите из текстового редактора.

Ваши настройки прокси будут применены при следующем запуске Apt.

0
ответ дан 18 May 2019 в 12:29