Ubuntu 14.04의 외부 소스에서 패키지를 설치하는 방법은 무엇입니까?

Ubuntu 14.04의 외부 소스에서 패키지를 설치하는 방법은 무엇입니까?

다음을 수행할 때 오류가 발생했습니다 apt-get update.

You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 perl : Depends: perl-modules (>= 5.18.2-2ubuntu1.1) but 5.18.2-2ubuntu1 is installed
E: Unmet dependencies. Try using -f.

perl_5.18.2-2ubuntu1.1.debian.tar.gz그래서 수동으로 다음 에서 다운로드했습니다 .https://launchpad.net/ubuntu/+source/perl/5.18.2-2ubuntu1.1. 파일 을 추출하면 tar.gz일부 파일이 포함된 debian 폴더가 제공됩니다.

이제 어떻게 그 오류를 제거할 수 있을까요?

출력 apt-cache policy:

Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu/ trusty/main Translation-en
 500 http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu/ trusty/main i386 Packages
     release v=14.04,o=LP-PPA-webupd8team-sublime-text-3,a=trusty,n=trusty,l=Sublime Text 3 Installer,c=main
     origin ppa.launchpad.net
 500 http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu/ trusty/main amd64 Packages
     release v=14.04,o=LP-PPA-webupd8team-sublime-text-3,a=trusty,n=trusty,l=Sublime Text 3 Installer,c=main
     origin ppa.launchpad.net
 500 http://ppa.launchpad.net/webupd8team/java/ubuntu/ trusty/main Translation-en
 500 http://ppa.launchpad.net/webupd8team/java/ubuntu/ trusty/main i386 Packages
     release v=14.04,o=LP-PPA-webupd8team-java,a=trusty,n=trusty,l=Oracle Java (JDK) 7 / 8 / 9 Installer PPA,c=main
     origin ppa.launchpad.net
 500 http://ppa.launchpad.net/webupd8team/java/ubuntu/ trusty/main amd64 Packages
     release v=14.04,o=LP-PPA-webupd8team-java,a=trusty,n=trusty,l=Oracle Java (JDK) 7 / 8 / 9 Installer PPA,c=main
     origin ppa.launchpad.net
 500 http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages
     release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main
     origin dl.google.com
 500 http://extras.ubuntu.com/ubuntu/ trusty/main i386 Packages
     release v=14.04,o=LP-PPA-app-review-board,a=trusty,n=trusty,l=Application Review Board PPA,c=main
     origin extras.ubuntu.com
 500 http://extras.ubuntu.com/ubuntu/ trusty/main amd64 Packages
     release v=14.04,o=LP-PPA-app-review-board,a=trusty,n=trusty,l=Application Review Board PPA,c=main
     origin extras.ubuntu.com
 500 http://security.ubuntu.com/ubuntu/ trusty-security/universe Translation-en
 500 http://security.ubuntu.com/ubuntu/ trusty-security/restricted Translation-en
 500 http://security.ubuntu.com/ubuntu/ trusty-security/multiverse Translation-en
 500 http://security.ubuntu.com/ubuntu/ trusty-security/main Translation-en
 500 http://security.ubuntu.com/ubuntu/ trusty-security/multiverse i386 Packages
     release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=multiverse
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu/ trusty-security/universe i386 Packages
     release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=universe
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu/ trusty-security/restricted i386 Packages
     release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=restricted
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu/ trusty-security/main i386 Packages
     release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=main
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu/ trusty-security/multiverse amd64 Packages
     release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=multiverse
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu/ trusty-security/universe amd64 Packages
     release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=universe
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu/ trusty-security/restricted amd64 Packages
     release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=restricted
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
     release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=main
     origin security.ubuntu.com
 500 http://in.archive.ubuntu.com/ubuntu/ trusty-backports/universe Translation-en
 500 http://in.archive.ubuntu.com/ubuntu/ trusty-backports/restricted Translation-en
 500 http://in.archive.ubuntu.com/ubuntu/ trusty-backports/multiverse Translation-en
 500 http://in.archive.ubuntu.com/ubuntu/ trusty-backports/main Translation-en
 100 http://in.archive.ubuntu.com/ubuntu/ trusty-backports/multiverse i386 Packages
     release v=14.04,o=Ubuntu,a=trusty-backports,n=trusty,l=Ubuntu,c=multiverse
     origin in.archive.ubuntu.com
 100 http://in.archive.ubuntu.com/ubuntu/ trusty-backports/universe i386 Packages
     release v=14.04,o=Ubuntu,a=trusty-backports,n=trusty,l=Ubuntu,c=universe
     origin in.archive.ubuntu.com
 100 http://in.archive.ubuntu.com/ubuntu/ trusty-backports/restricted i386 Packages
     release v=14.04,o=Ubuntu,a=trusty-backports,n=trusty,l=Ubuntu,c=restricted
     origin in.archive.ubuntu.com
 100 http://in.archive.ubuntu.com/ubuntu/ trusty-backports/main i386 Packages
     release v=14.04,o=Ubuntu,a=trusty-backports,n=trusty,l=Ubuntu,c=main
     origin in.archive.ubuntu.com
 100 http://in.archive.ubuntu.com/ubuntu/ trusty-backports/multiverse amd64 Packages
     release v=14.04,o=Ubuntu,a=trusty-backports,n=trusty,l=Ubuntu,c=multiverse
     origin in.archive.ubuntu.com
 100 http://in.archive.ubuntu.com/ubuntu/ trusty-backports/universe amd64 Packages
     release v=14.04,o=Ubuntu,a=trusty-backports,n=trusty,l=Ubuntu,c=universe
     origin in.archive.ubuntu.com
 100 http://in.archive.ubuntu.com/ubuntu/ trusty-backports/restricted amd64 Packages
     release v=14.04,o=Ubuntu,a=trusty-backports,n=trusty,l=Ubuntu,c=restricted
     origin in.archive.ubuntu.com
 100 http://in.archive.ubuntu.com/ubuntu/ trusty-backports/main amd64 Packages
     release v=14.04,o=Ubuntu,a=trusty-backports,n=trusty,l=Ubuntu,c=main
     origin in.archive.ubuntu.com
 500 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/universe Translation-en
 500 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/restricted Translation-en
 500 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/multiverse Translation-en
 500 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/main Translation-en
 500 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/multiverse i386 Packages
     release v=14.04,o=Ubuntu,a=trusty-updates,n=trusty,l=Ubuntu,c=multiverse
     origin in.archive.ubuntu.com
 500 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/universe i386 Packages
     release v=14.04,o=Ubuntu,a=trusty-updates,n=trusty,l=Ubuntu,c=universe
     origin in.archive.ubuntu.com
 500 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/restricted i386 Packages
     release v=14.04,o=Ubuntu,a=trusty-updates,n=trusty,l=Ubuntu,c=restricted
     origin in.archive.ubuntu.com
 500 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/main i386 Packages
     release v=14.04,o=Ubuntu,a=trusty-updates,n=trusty,l=Ubuntu,c=main
     origin in.archive.ubuntu.com
 500 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/multiverse amd64 Packages
     release v=14.04,o=Ubuntu,a=trusty-updates,n=trusty,l=Ubuntu,c=multiverse
     origin in.archive.ubuntu.com
 500 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/universe amd64 Packages
     release v=14.04,o=Ubuntu,a=trusty-updates,n=trusty,l=Ubuntu,c=universe
     origin in.archive.ubuntu.com
 500 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/restricted amd64 Packages
     release v=14.04,o=Ubuntu,a=trusty-updates,n=trusty,l=Ubuntu,c=restricted
     origin in.archive.ubuntu.com
 500 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
     release v=14.04,o=Ubuntu,a=trusty-updates,n=trusty,l=Ubuntu,c=main
     origin in.archive.ubuntu.com
 500 http://in.archive.ubuntu.com/ubuntu/ trusty/universe Translation-en
 500 http://in.archive.ubuntu.com/ubuntu/ trusty/restricted Translation-en
 500 http://in.archive.ubuntu.com/ubuntu/ trusty/multiverse Translation-en
 500 http://in.archive.ubuntu.com/ubuntu/ trusty/main Translation-en
 500 http://in.archive.ubuntu.com/ubuntu/ trusty/multiverse i386 Packages
     release v=14.04,o=Ubuntu,a=trusty,n=trusty,l=Ubuntu,c=multiverse
     origin in.archive.ubuntu.com
 500 http://in.archive.ubuntu.com/ubuntu/ trusty/universe i386 Packages
     release v=14.04,o=Ubuntu,a=trusty,n=trusty,l=Ubuntu,c=universe
     origin in.archive.ubuntu.com
 500 http://in.archive.ubuntu.com/ubuntu/ trusty/restricted i386 Packages
     release v=14.04,o=Ubuntu,a=trusty,n=trusty,l=Ubuntu,c=restricted
     origin in.archive.ubuntu.com
 500 http://in.archive.ubuntu.com/ubuntu/ trusty/main i386 Packages
     release v=14.04,o=Ubuntu,a=trusty,n=trusty,l=Ubuntu,c=main
     origin in.archive.ubuntu.com
 500 http://in.archive.ubuntu.com/ubuntu/ trusty/multiverse amd64 Packages
     release v=14.04,o=Ubuntu,a=trusty,n=trusty,l=Ubuntu,c=multiverse
     origin in.archive.ubuntu.com
 500 http://in.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
     release v=14.04,o=Ubuntu,a=trusty,n=trusty,l=Ubuntu,c=universe
     origin in.archive.ubuntu.com
 500 http://in.archive.ubuntu.com/ubuntu/ trusty/restricted amd64 Packages
     release v=14.04,o=Ubuntu,a=trusty,n=trusty,l=Ubuntu,c=restricted
     origin in.archive.ubuntu.com
 500 http://in.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
     release v=14.04,o=Ubuntu,a=trusty,n=trusty,l=Ubuntu,c=main
     origin in.archive.ubuntu.com
Pinned packages:

답변1

이에 대해 정확히 확신할 수는 없지만 종속성이 손상된 것 같습니다. 메뉴에서 터미널을 열고 다음 명령으로 시작합니다.

sudo aptitude update && sudo aptitude install gtkorphan

&&는 첫 번째 명령이 성공적으로 실행되면 두 번째 명령을 실행하는 데 사용됩니다.

다음을 실행하여 계속하세요.

sudo aptitude update && sudo aptitude upgrade

이는 모든 업데이트가 있는지 다시 확인하는 데 사용됩니다.

깨진 패키지를 지우려면 다음 명령을 사용하십시오.

sudo aptitude -f

검색, 탐색, 설치, 업데이트 및 기타 패키지 관리를 위한 아름다운 인터페이스를 제공합니다.

점에 유의하시기 바랍니다aptitude와 apt-get을 서로 바꿔서 사용하는 것은 나쁜 습관입니다. 사용자가 변경한 내용을 별도로 기록하기 때문입니다.

추천도서apt-get 대 적성

관련 정보