지난 며칠 동안 새 앱을 설치하려고 할 때마다
ubuntu unable to install:
cannot perform the following task:
... 앱 이름이나 작업이 나열되지 않았습니다. 나는 노력했다
sudo apt update
sudo apt upgrade
sudo apt autoremove
나중에 더 나은 결과는 없습니다. 매우 신인이기 때문에 다음에 무엇을 시도해야 할지 잘 모르겠습니다. 어떤 아이디어?
도움을 주셔서 미리 감사드립니다!
여기저기서 몇 차례 교환한 후 다음 정보를 추가하도록 권장되었습니다.
고양이 /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
적절한 프록시 설정을 지정해야 합니다. 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:[email protected]:port/";
HTTPS 프록시를 설정하려면 다음 줄을 추가하세요.
Acquire::https::Proxy "http://user:[email protected]:port/";
변경 사항을 저장하고 텍스트 편집기를 종료합니다.
다음에 Apt를 실행할 때 프록시 설정이 적용됩니다.