我正在尝试将手刹 CLI 安装到我的 debian(wheezy) 服务器上。我尝试模仿一个答案这里但它不起作用。
我已将其添加deb http://cdn.debian.net/debian wheezy-backports main
到源列表中/etc/apt/sources.list
并在运行 apt-get update 和实际安装命令后获得输出:
sudo apt-get update
sudo apt-get -t wheezy-backports install handbrake
但我收到以下错误:
user@web:~$ sudo nano /etc/apt/sources.list
user@web:~$ sudo apt-get update
Hit http://mirrors.linode.com wheezy Release.gpg
Hit http://mirrors.linode.com wheezy/updates Release.gpg
Hit http://mirrors.linode.com wheezy-updates Release.gpg
Hit http://mirrors.linode.com wheezy Release
Hit http://mirrors.linode.com wheezy/updates Release
Hit http://www.deb-multimedia.org sid Release.gpg
Ign http://ppa.launchpad.net wheezy Release.gpg
Hit http://mirrors.linode.com wheezy-updates Release
Ign http://ppa.launchpad.net wheezy Release
Hit http://www.deb-multimedia.org sid Release
Hit http://mirrors.linode.com wheezy/main Sources
Hit http://mirrors.linode.com wheezy/main amd64 Packages
Hit http://mirrors.linode.com wheezy/main Translation-en
Hit http://mirrors.linode.com wheezy/updates/main Sources
Hit http://mirrors.linode.com wheezy/updates/main amd64 Packages
Hit http://mirrors.linode.com wheezy/updates/main Translation-en
Hit http://mirrors.linode.com wheezy-updates/main Sources
Hit http://mirrors.linode.com wheezy-updates/main amd64 Packages
Hit http://mirrors.linode.com wheezy-updates/main Translation-en
Err http://ppa.launchpad.net wheezy/main Sources
404 Not Found
Hit http://www.deb-multimedia.org sid/main amd64 Packages
Err http://ppa.launchpad.net wheezy/main amd64 Packages
404 Not Found
Ign http://ppa.launchpad.net wheezy/main Translation-en_US
Ign http://ppa.launchpad.net wheezy/main Translation-en
Ign http://www.deb-multimedia.org sid/main Translation-en_US
Ign http://www.deb-multimedia.org sid/main Translation-en
Get:1 http://cdn.debian.net wheezy-backports Release.gpg [1,554 B]
Get:2 http://cdn.debian.net wheezy-backports Release [144 kB]
Get:3 http://cdn.debian.net wheezy-backports/main amd64 Packages [571 kB]
Get:4 http://cdn.debian.net wheezy-backports/main Translation-en [363 kB]
Hit https://deb.nodesource.com wheezy Release.gpg
Hit https://deb.nodesource.com wheezy Release
Hit https://deb.nodesource.com wheezy/main Sources
Hit https://deb.nodesource.com wheezy/main amd64 Packages
Ign https://deb.nodesource.com wheezy/main Translation-en_US
Ign https://deb.nodesource.com wheezy/main Translation-en
Fetched 1,080 kB in 9s (116 kB/s)
W: Failed to fetch http://ppa.launchpad.net/stebbins/handbrake-releases/ubuntu/dists/wheezy/main/source/Sources 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/stebbins/handbrake-releases/ubuntu/dists/wheezy/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
user@web:~$ sudo nano /etc/apt/sources.list
user@web:~$ sudo nano /etc/apt/sources.list
Use "fg" to return to nano.
[1]+ Stopped sudo nano /etc/apt/sources.list
user@web:~$ sudo apt-get -t wheezy-backports install libdvdread4
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
libdvdcss2
The following packages will be upgraded:
libdvdread4
1 upgraded, 0 newly installed, 0 to remove and 105 not upgraded.
Need to get 57.4 kB of archives.
After this operation, 3,072 B of additional disk space will be used.
Get:1 http://cdn.debian.net/debian/ wheezy-backports/main libdvdread4 amd64 4.2.1-2~bpo70+1 [57.4 kB]
Fetched 57.4 kB in 0s (576 kB/s)
Reading changelogs... Done
(Reading database ... 65274 files and directories currently installed.)
Preparing to replace libdvdread4 4.2.0+20120521-2 (using .../libdvdread4_4.2.1-2~bpo70+1_amd64.deb) ...
Unpacking replacement libdvdread4:amd64 ...
Setting up libdvdread4:amd64 (4.2.1-2~bpo70+1) ...
W: Duplicate sources.list entry http://www.deb-multimedia.org/ sid/main amd64 Packages (/var/lib/apt/lists/www.deb-multimedia.org_dists_sid_main_binary-amd64_Packages)
W: You may want to run apt-get update to correct these problems
user@web:~$ sudo apt-get update
Ign http://ppa.launchpad.net wheezy Release.gpg
Ign http://ppa.launchpad.net wheezy Release
Hit http://mirrors.linode.com wheezy Release.gpg
Hit http://mirrors.linode.com wheezy/updates Release.gpg
Hit http://mirrors.linode.com wheezy-updates Release.gpg
Hit http://mirrors.linode.com wheezy Release
Hit http://mirrors.linode.com wheezy/updates Release
Hit http://www.deb-multimedia.org sid Release.gpg
Hit http://mirrors.linode.com wheezy-updates Release
Hit http://www.deb-multimedia.org sid Release
Hit http://mirrors.linode.com wheezy/main Sources
Err http://ppa.launchpad.net wheezy/main Sources
404 Not Found
Hit http://mirrors.linode.com wheezy/main amd64 Packages
Hit http://mirrors.linode.com wheezy/main Translation-en
Hit http://mirrors.linode.com wheezy/updates/main Sources
Hit http://mirrors.linode.com wheezy/updates/main amd64 Packages
Hit http://mirrors.linode.com wheezy/updates/main Translation-en
Hit http://mirrors.linode.com wheezy-updates/main Sources
Hit http://mirrors.linode.com wheezy-updates/main amd64 Packages
Hit http://mirrors.linode.com wheezy-updates/main Translation-en
Hit http://www.deb-multimedia.org sid/main amd64 Packages
Err http://ppa.launchpad.net wheezy/main amd64 Packages
404 Not Found
Ign http://ppa.launchpad.net wheezy/main Translation-en_US
Ign http://ppa.launchpad.net wheezy/main Translation-en
Ign http://www.deb-multimedia.org sid/main Translation-en_US
Hit http://cdn.debian.net wheezy-backports Release.gpg
Ign http://www.deb-multimedia.org sid/main Translation-en
Hit http://cdn.debian.net wheezy-backports Release
Hit http://cdn.debian.net wheezy-backports/main amd64 Packages
Hit http://cdn.debian.net wheezy-backports/main Translation-en
Hit https://deb.nodesource.com wheezy Release.gpg
Hit https://deb.nodesource.com wheezy Release
Hit https://deb.nodesource.com wheezy/main Sources
Hit https://deb.nodesource.com wheezy/main amd64 Packages
Ign https://deb.nodesource.com wheezy/main Translation-en_US
Ign https://deb.nodesource.com wheezy/main Translation-en
W: Failed to fetch http://ppa.launchpad.net/stebbins/handbrake-releases/ubuntu/dists/wheezy/main/source/Sources 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/stebbins/handbrake-releases/ubuntu/dists/wheezy/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
user@web:~$ sudo apt-get -t wheezy-backgports install handbrake
Reading package lists... Done
W: Duplicate sources.list entry http://www.deb-multimedia.org/ sid/main amd64 Packages (/var/lib/apt/lists/www.deb-multimedia.org_dists_sid_main_binary-amd64_Packages)
W: You may want to run apt-get update to correct these problems
E: The value 'wheezy-backgports' is invalid for APT::Default-Release as such a release is not available in the sources
这是我的sources.list 的内容:
#
# deb cdrom:[Debian GNU/Linux 7.4.0 _Wheezy_ - Official amd64 NETINST Binary-1 $
# deb cdrom:[Debian GNU/Linux 7.4.0 _Wheezy_ - Official amd64 NETINST Binary-1 $
deb http://mirrors.linode.com/debian/ wheezy main
deb-src http://mirrors.linode.com/debian/ wheezy main
deb http://mirrors.linode.com/debian-security/ wheezy/updates main
deb-src http://mirrors.linode.com/debian-security/ wheezy/updates main
# wheezy-updates, previously known as 'volatile'
deb http://mirrors.linode.com/debian/ wheezy-updates main
deb-src http://mirrors.linode.com/debian/ wheezy-updates main
deb http://www.deb-multimedia.org sid main
最新错误:
user@web:~$ sudo apt-get update
Hit http://mirrors.linode.com wheezy Release.gpg
Hit http://mirrors.linode.com wheezy/updates Release.gpg
Hit http://mirrors.linode.com wheezy-updates Release.gpg
Hit http://mirrors.linode.com wheezy Release
Hit http://mirrors.linode.com wheezy/updates Release
Ign http://ppa.launchpad.net wheezy Release.gpg
Hit http://mirrors.linode.com wheezy-updates Release
Ign http://ppa.launchpad.net wheezy Release
Hit http://mirrors.linode.com wheezy/main Sources
Hit http://mirrors.linode.com wheezy/main amd64 Packages
Hit http://mirrors.linode.com wheezy/main Translation-en
Hit http://www.deb-multimedia.org sid Release.gpg
Hit http://mirrors.linode.com wheezy/updates/main Sources
Hit http://mirrors.linode.com wheezy/updates/main amd64 Packages
Hit http://mirrors.linode.com wheezy/updates/main Translation-en
Hit http://www.deb-multimedia.org sid Release
Hit http://mirrors.linode.com wheezy-updates/main Sources
Hit http://mirrors.linode.com wheezy-updates/main amd64 Packages
Hit http://mirrors.linode.com wheezy-updates/main Translation-en
Err http://ppa.launchpad.net wheezy/main Sources
404 Not Found
Hit http://www.deb-multimedia.org sid/main amd64 Packages
Err http://ppa.launchpad.net wheezy/main amd64 Packages
404 Not Found
Ign http://ppa.launchpad.net wheezy/main Translation-en_US
Ign http://ppa.launchpad.net wheezy/main Translation-en
Ign http://www.deb-multimedia.org sid/main Translation-en_US
Ign http://www.deb-multimedia.org sid/main Translation-en
Hit https://deb.nodesource.com wheezy Release.gpg
Hit https://deb.nodesource.com wheezy Release
Hit https://deb.nodesource.com wheezy/main Sources
Hit https://deb.nodesource.com wheezy/main amd64 Packages
Ign https://deb.nodesource.com wheezy/main Translation-en_US
Ign https://deb.nodesource.com wheezy/main Translation-en
W: Failed to fetch http://ppa.launchpad.net/stebbins/handbrake-releases/ubuntu/dists/wheezy/main/source/Sources 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/stebbins/handbrake-releases/ubuntu/dists/wheezy/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
user@web:~$ sudo apt-get -t wheezy-backports install handbrake
Reading package lists... Done
E: The value 'wheezy-backports' is invalid for APT::Default-Release as such a release is not available in the sources
谁能帮我解决问题吗?请原谅我,因为我正在努力掌握 CLI!
答案1
你这里有很多问题。
Debian 不支持 Ubuntu PPA。编辑
/etc/apt/sources.list
并删除 PPA。您有重复的条目。要么在
/etc/apt/sources.list
,要么在/etc/apt/sources.list.d
。您需要编辑该文件并删除deb-multimedia.org
.运行grep -H deb-multimedia /etc/apt/sources.list /etc/apt/sources.list.d
并删除其中一个副本。你有一个错字。注意错误:
E: The value 'wheezy-backgports' is invalid for APT::Default-Release as such a release is not available in the sources
你的意思是
backports
,不是backgports
。