카테고리 보관물: ubuntu

ubuntu

curl이 Ubuntu 18.04 LTS에서 작동하지 않습니다 bionic universe deb http://gb.archive.ubuntu.com/ubuntu/ bionic-updates universe deb-src http://gb.archive.ubuntu.com/ubuntu/

curl을 사용하여 웹에서 콘텐츠를 가져올 수 없습니다 . 나는 그것을 아래에 넣은 것을 고치려고 노력했다.

일부 패키지를 설치할 수 없습니다. 이는 불가능한 상황을 요청했거나 일부 필수 패키지가 아직 작성되지 않았거나 수신에서 제외 된 불안정한 분배를 사용중인 경우를 의미 할 수 있습니다. 다음 정보는 상황을 해결하는 데 도움이 될 수 있습니다.

다음 패키지는 충족되지 않은 종속성이 있습니다. curl : 종속 : libcurl4 (= 7.58.0-2ubuntu3)이지만 설치되지 않습니다. E : 문제를 해결할 수 없습니다. 깨진 패키지가 있습니다.

보류 패키지 목록을 확인하기 위해 sudo apt-mark showheld& dpkg -l | grep ^h를 사용하여 보류 패키지를 확인했지만 결과는 얻지 못했습니다.

또한 설치하려고 할 때 libcurl4아래 패키지를 제거하려고 시도하기 때문에 시스템이 거의 중단됩니다.

libcurl3 mongodb-enterprise mongodb-enterprise-server mongodb-enterprise-tools msodbcsql msodbcsql17 mssql-tools php7.1-curl r-base r-base-core r-base-dev r-base-html r-cran-boot r-cran -r 클래스 크랜 코드 도구 -nlme r-cran-nnet r-cran-rpart r-cran-spatial r-cran-survival r-recommended 슬랙 탁상용 virtualbox-5.2

편집하다

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

## Major bug fix updates produced after the final release of the
## distribution. deb http://gb.archive.ubuntu.com/ubuntu/ bionic-updates main restricted deb-src
http://gb.archive.ubuntu.com/ubuntu/ bionic-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://gb.archive.ubuntu.com/ubuntu/ bionic universe deb-src
http://gb.archive.ubuntu.com/ubuntu/ bionic universe

deb http://gb.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-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://gb.archive.ubuntu.com/ubuntu/ bionic multiverse deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic
multiverse

deb http://gb.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-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://gb.archive.ubuntu.com/ubuntu/ bionic-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://security.ubuntu.com/ubuntu bionic-security main restricted
deb-src http://security.ubuntu.com/ubuntu bionic-security main
restricted

deb http://security.ubuntu.com/ubuntu bionic-security universe deb-src
http://security.ubuntu.com/ubuntu bionic-security universe

deb http://security.ubuntu.com/ubuntu bionic-security multiverse
deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse

deb http://gb.archive.ubuntu.com/ubuntu/ bionic-proposed main
multiverse universe restricted #Not for humans during development
stage of release bionic
# ded-src http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted ui=niverse

deb http://gb.archive.ubuntu.com/ubuntu/ bionic-backports main
restricted multiverse universe



답변

이 문제는 우분투 최근 LTS의 여러 패키지에서 일반적입니다. “18.04”및 repo를 참조하는 다른 문자열이 패키지 버전의 일부로 고려되고 있으며 repo를 참조하지 않기 때문에 사전 설치된 패키지는 버전 규칙에서 오류가 발생할 수 있습니다.
해결 방법은 사전 설치된 종속성을 제거한 다음 다시 설치하는 것입니다. 그런 다음 cURL을 설치할 수 있습니다.

apt remove -y libcurl4
apt install -y libcurl4 curl

그 문제가있는 다른 패키지는 okular 및 libsdl2이며 솔루션은 동일하며 문제가있는 종속성을 추적하고 제거하고 다시 설치하십시오.

또한 apt 다운 그레이드 메커니즘을 사용할 수 있습니다 (따라서 libcurl4에 종속 된 패키지를 제거 할 필요는 없습니다).

apt install -y libcurl4=7.58.0-2ubuntu3
apt install -y curl


답변

소스에서 curl을 설치하십시오 . 그것은 나를 위해 일했다.

git clone https://github.com/curl/curl.git
cd curl
./buildconf
./configure
make
make test # optional
sudo make install


답변

사용하려고

sudo apt install libcurl4-openssl-dev

필요하다면

sudo update
sudo apt remove libcurl4


답변