我正在运行一个基于 Ubuntu Trusty 的系统。我添加了 Vivid 的源条目(不是二进制)
deb-src http://archive.ubuntu.com/ubuntu vivid main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu vivid-updates main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu/ vivid-security main restricted universe multiverse
deb-src http://archive.canonical.com/ubuntu/ vivid partner
然后跑了sudo apt-get update
。
现在,我想通过从源代码构建来从 Vivid 安装 gnome-commander。我发出命令
apt-get source -b -t vivid gnome-commander
Reading package lists... Done
E: The value 'vivid' is invalid for APT::Default-Release as such a release is not available in the sources
为什么命令会失败?我该如何解决?
首先,您需要为该包构建依赖项。
sudo apt-get build-dep gnome-commander
gnome commander
不是 Ubuntu 14.04 的一部分,因此您无需指定vivid
.-t
意味着目标发布,如unstable
,2.1*
, 或sid
。sudo apt-get source -b -t stable gnome-commander