我最近安装了 Linaro Ubuntu 12.04 并设置了 cubieboard。
当我尝试运行以下命令时,一切似乎都正常:
linaro@cubieboard:~$ sudo add-apt-repository ppa:unit3/bfgminer
sudo: unable to resolve host cubieboard
You are about to add the following PPA to your system:
A CPU+GPU+FPGA miner for bitcoins (and other compatible coins), by Luke Dashjr and others:
https://github.com/luke-jr/bfgminer
More info: https://launchpad.net/~unit3/+archive/bfgminer
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmpko9l37/secring.gpg' created
gpg: keyring `/tmp/tmpko9l37/pubring.gpg' created
gpg: requesting key 0AE7FCDA from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpko9l37/trustdb.gpg: trustdb created
gpg: key 0AE7FCDA: public key "Launchpad PPA for Graeme" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
然后:
linaro@cubieboard:~$ sudo apt-get update
sudo: unable to resolve host cubieboard
Ign http://ppa.launchpad.net quantal InRelease
Ign http://ports.ubuntu.com quantal InRelease
Ign http://ppa.launchpad.net quantal InRelease
Hit http://ports.ubuntu.com quantal Release.gpg
Ign http://ppa.launchpad.net precise InRelease
Hit http://ports.ubuntu.com quantal Release
Hit http://ppa.launchpad.net quantal Release.gpg
Hit http://ppa.launchpad.net quantal Release.gpg
Get:1 http://ppa.launchpad.net precise Release.gpg [316 B]
Hit http://ppa.launchpad.net quantal Release
Hit http://ports.ubuntu.com quantal/main Sources
Hit http://ppa.launchpad.net quantal Release
Hit http://ports.ubuntu.com quantal/universe Sources
Get:2 http://ppa.launchpad.net precise Release [11.9 kB]
Hit http://ports.ubuntu.com quantal/main armhf Packages
Hit http://ports.ubuntu.com quantal/universe armhf Packages
Hit http://ppa.launchpad.net quantal/main Sources
Hit http://ports.ubuntu.com quantal/main Translation-en
Hit http://ppa.launchpad.net quantal/main armhf Packages
Hit http://ports.ubuntu.com quantal/universe Translation-en
Hit http://ppa.launchpad.net quantal/main Sources
Hit http://ppa.launchpad.net quantal/main armhf Packages
Get:3 http://ppa.launchpad.net precise/main Sources [653 B]
Get:4 http://ppa.launchpad.net precise/main armhf Packages [14 B]
Ign http://ppa.launchpad.net quantal/main Translation-en
Ign http://ppa.launchpad.net quantal/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en
Fetched 12.8 kB in 3s (4033 B/s)
Reading package lists... Done
和:
linaro@cubieboard:~$ sudo apt-get upgrade
sudo: unable to resolve host cubieboard
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
此后,当我尝试安装 bfgminer 时出现错误:
linaro@cubieboard:~$ sudo apt-get install bfgminer
sudo: unable to resolve host cubieboard
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package bfgminer
我之前已将 bfgminer 存储库添加到 /etc/apt/sources.list 文件中:
deb http://ports.ubuntu.com/ubuntu-ports/ quantal main universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ quantal main universe
deb http://ppa.launchpad.net/unit3/bfgminer/ubuntu quantal main
deb-src http://ppa.launchpad.net/unit3/bfgminer/ubuntu quantal main
不知道为什么会发生这种情况!等待您的帮助。
答案1
bfgminer 似乎存在一些依赖性问题。要强制安装,请尝试以下操作:
从以下位置下载 bfgminer发射台
打开终端并输入
sudo dpkg --force-all -i bfgminer_3.2.1-0precise1_i386.deb
和
sudo apt-get install libjansson4
来源: bfgminer 上的 github 漏洞. 更新了 Ubuntu 12.04 的软件包