Apt

我已經安裝了程序,但是當我想升級時,它找不到他

  • August 21, 2018

我已經安裝了 youtube-dl :

# youtube-dl
Usage: youtube-dl [OPTIONS] URL [URL...]

youtube-dl: error: You must provide at least one URL.
Type youtube-dl --help to see a list of all options.

但是當我用 –extract-audio –audio-format mp3 執行它時

$$ URL $$, 它以

WARNING: 0g7KawdsVSQ: writing DASH m4a. Only some players support this container. Install ffmpeg or avconv to fix this automatically.
ERROR: ffprobe or avprobe not found. Please install one.

當我想升級 youtube-dl 包時,安裝附加文件:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... E: Unable to locate package youtube-dl

當我想安裝ffmpeg時:

# apt-get install ffmpeg
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package ffmpeg is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

一些細節:

  • 使用 Kali GNU/Linux 2.0 (sana) 64 位。
  • 我正在嘗試升級,使用命令:apt-get upgrade youtube-dl
>   
> 
>  # apt-cache policy youtube-dl ffmpeg
> 
>     
> 
> > ffmpeg:
> >       Installed: (none)
> >       Candidate: (none)
> >       Version table:
> >     N: Unable to locate package youtube-dl
# apt-cache policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://security.kali.org/kali-security/ sana/updates/non-free amd64 Packages
     release o=Kali,a=kali-current,n=sana,c=non-free
     origin security.kali.org
 500 http://security.kali.org/kali-security/ sana/updates/contrib amd64 Packages
     release o=Kali,a=kali-current,n=sana,c=contrib
     origin security.kali.org
 500 http://security.kali.org/kali-security/ sana/updates/main amd64 Packages
     release o=Kali,a=kali-current,n=sana,c=main
     origin security.kali.org
Pinned packages:

EDID 2:Sources.list

# 

# deb cdrom:[Debian GNU/Linux 2.0 _Sana_ - Official Snapshot amd64 LIVE/INSTALL Binary 20150811-08:02]/ sana contrib main non-free

#deb cdrom:[Debian GNU/Linux 2.0 _Sana_ - Official Snapshot amd64 LIVE/INSTALL Binary 20150811-08:02]/ sana contrib main non-free

deb http://security.kali.org/kali-security/ sana/updates main contrib non-free
deb-src http://security.kali.org/kali-security/ sana/updates main contrib non-free

您的sources.list.

請參閱Kali sources.list Repositories,其中說:

在一個標準的、乾淨的 Kali Linux 安裝中,你應該在 /etc/apt/sources.list 中有以下兩個條目:

deb http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security sana/updates main contrib non-free

您似乎有第二行,但沒有第一行。檢查您的sources.list.

引用自:https://unix.stackexchange.com/questions/240101