我正在为项目创建一个新工作区,并在MacBook Pro,El Capitan中使用VB内部的Debian 9。对于Java 8,我有像
这样的说明--------------------------------------------------------------------
Create /etc/apt/sources.list.d/java8.list with this content:
deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
--------------------------------------------------------------------
所以,我去了终端并打字,
sudo gedit /etc/apt/sources.list.d/java8.list
然后,我将提到的内容粘贴到文件中,保存并关闭。之后,当我执行命令时,
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
我得到了这个错误堆栈,
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
Executing: /tmp/apt-key-gpghome.Nrr9YiY2yQ/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory
gpg: connecting dirmngr at '/run/user/1000/gnupg/d.efsrb3uyo6fh5yhoikm7bucx/S.dirmngr' failed: No such file or directory
gpg: keyserver receive failed: No dirmngr
我使用命令apt-get install dirmngr
安装dirmngr
并在终端再次尝试。这次我有错误,
Executing: /tmp/apt-key-gpghome.A4f5OjYwxw/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
gpg: key C2518248EEA14886: public key "Launchpad VLC" imported
gpg: Total number processed: 1
gpg: imported: 1
gpg: no writable keyring found: Not found
gpg: error reading '[stdin]': General error
gpg: import from '[stdin]' failed: General error
gpg: Total number processed: 0
我几乎没有关于Linux / Debian的知识,那么,在这种情况下该怎么办?似乎dirmngr
问题现在已经消失
答案 0 :(得分:6)
尝试使用sudo运行命令
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886