易于获取;了解包名称在哪里引用?

易于获取;了解包名称在哪里引用?

我正在尝试理解这个Unable to locate package错误。

就我而言,我正在尝试安装 zcash。安装依赖项并进行初始设置后,我更新了sources.list 文件:

echo "deb [arch=amd64] https://apt.z.cash/ jessie main" | sudo tee /etc/apt/sources.list.d/zcash.list

然后我跑了sudo apt-get update

查看/var/lib/apt/lists我可以看到已安装的软件包(在本例中来自 zcash):

/var/lib/apt/lists$ ls
apt.z.cash_dists_jessie_main_binary-amd64_Packages
apt.z.cash_dists_jessie_Release
apt.z.cash_dists_jessie_Release.gpg

然而,当我运行时,sudo apt-get install zcash它似乎无法识别名称 zcash:

Reading package lists... Done Building dependency tree        
Reading state information... Done 
E: Unable to locate package zcash

我想应该有一个名称翻译文件(例如zcash中引用的文件/var/lib/apt/lists) - 我是对的吗?

apt 包的名称引用应该存储在哪个文件/目录中?我将如何检查和调试这个?

答案1

刚看到这个,所以我测试了......

在 VirtualBox 中进行 Jessie 的基本安装(amd64 netinstall,仅“标准系统实用程序”和“ssh 服务器”)时,我的安装没有任何问题zcash...但是,我的猜测是您没有将密钥添加到存储库中。 ..

编辑/etc/apt/sources.list并添加了该行

deb https://apt.z.cash/ jessie main

添加apt-transport-https

apt-get install apt-transport-https

做一个apt-get update.啊...repo gpg 密钥错误。导入/添加存储库的密钥 -

wget -qO - https://apt.z.cash/zcash.asc | sudo apt-key add -

然后做了apt-get update然后apt-get install zcash

root@templatevm:~# apt-get install zcash
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libgomp1
The following NEW packages will be installed:
  libgomp1 zcash
0 upgraded, 2 newly installed, 0 to remove and 55 not upgraded.
Need to get 3,185 kB of archives.
After this operation, 12.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.us.debian.org/debian/ jessie/main libgomp1 amd64 4.9.2-10 [37.8 kB]
Get:2 https://apt.z.cash/ jessie/main zcash amd64 1.0.10+1 [3,147 kB]
Fetched 3,185 kB in 8s (359 kB/s)                                                                                    
Selecting previously unselected package libgomp1:amd64.
(Reading database ... 29996 files and directories currently installed.)
Preparing to unpack .../libgomp1_4.9.2-10_amd64.deb ...
Unpacking libgomp1:amd64 (4.9.2-10) ...
Selecting previously unselected package zcash.
Preparing to unpack .../zcash_1.0.10+1_amd64.deb ...
Unpacking zcash (1.0.10+1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up libgomp1:amd64 (4.9.2-10) ...
Setting up zcash (1.0.10+1) ...
Processing triggers for libc-bin (2.19-18+deb8u7) ...
root@templatevm:~# 

相关内容