我一直在爲Vagrant傀儡配置工作幾周,所以我還是很新的。傀儡包裹失敗(特別是unoconv&rabbitmq-server)
我的問題是,簡單的軟件包會失敗,而不是每次運行。
這些軟件包是unoconv
& rabbitmq-server
它們(像所有其他軟件包)僅在系統更新(使用「必需」)後安裝。
,只有這些軟件包失敗讓我覺得它不是一個網絡問題,如果我ssh到來賓機和手動安裝一切順利平穩
的unoconv類的事實:
class unoconv {
package { "unoconv":
ensure => present,
require => Class ["system_update"]
}
}
的RabbitMQ的類:
class rabbitmq_server {
package { "rabbitmq-server":
ensure => present,
require => Class ["system_update"]
}
service { "rabbitmq-server":
ensure => running,
require => Package["rabbitmq-server"],
}
}
的依賴
class system_update {
exec { 'apt-get update':
command => 'apt-get update',
}
$sysPackages = [ "build-essential" ]
package { $sysPackages:
ensure => "installed",
require => Exec['apt-get update'],
}
package {"software-properties-common":
ensure => present,
}
}
錯誤:
'Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install rabbitmq-server' returned 100: Reading package lists...'
我得到同樣的錯誤unoconv
。
我在想什麼/誤會?
我檢查了網頁,我只能在下載前找到更新的提示,但這就是我已經做的。
編輯:
由於這裏建議,這不是完整的錯誤,在我看來,這是關係到依賴關係不能夠安裝,但如果是真的,我不能明白爲什麼。 供應是在我創建的一個流浪基座盒(ubuntu服務器14.04)上進行的,並且通過查看/etc/apt/source.list看起來很好。 基本框的網絡連接是好的,因爲我可以在供應時ping和安裝很多其他軟件包。
我需要以某種方式修復我的source.list?
完整的錯誤:
==> default: Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install rabbitmq-server' returned 100: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: The following extra packages will be installed:
==> default: erlang-asn1 erlang-base erlang-corba erlang-crypto erlang-diameter
==> default: erlang-edoc erlang-eldap erlang-erl-docgen erlang-eunit erlang-ic
==> default: erlang-inets erlang-mnesia erlang-nox erlang-odbc erlang-os-mon
==> default: erlang-parsetools erlang-percept erlang-public-key erlang-runtime-tools
==> default: erlang-snmp erlang-ssh erlang-ssl erlang-syntax-tools erlang-tools
==> default: erlang-webtool erlang-xmerl libodbc1 libsctp1 lksctp-tools
==> default: Suggested packages:
==> default: erlang erlang-manpages erlang-doc xsltproc fop erlang-ic-java
==> default: erlang-observer libmyodbc odbc-postgresql tdsodbc unixodbc-bin
==> default: The following NEW packages will be installed:
==> default: erlang-asn1 erlang-base erlang-corba erlang-crypto erlang-diameter
==> default: erlang-edoc erlang-eldap erlang-erl-docgen erlang-eunit erlang-ic
==> default: erlang-inets erlang-mnesia erlang-nox erlang-odbc erlang-os-mon
==> default: erlang-parsetools erlang-percept erlang-public-key erlang-runtime-tools
==> default: erlang-snmp erlang-ssh erlang-ssl erlang-syntax-tools erlang-tools
==> default: erlang-webtool erlang-xmerl libodbc1 libsctp1 lksctp-tools rabbitmq-server
==> default: 0 upgraded, 30 newly installed, 0 to remove and 154 not upgraded.
==> default: Need to get 22.5 MB of archives.
==> default: After this operation, 40.0 MB of additional disk space will be used.
==> default: Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/main libodbc1 amd64 2.2.14p2-5ubuntu5 [175 kB]
==> default: Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty/main libsctp1 amd64 1.0.15+dfsg-1 [9226 B]
==> default: Get:3 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-base amd64 1:16.b.3-dfsg-1ubuntu2.1 [6536 kB]
==> default: Get:4 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-asn1 amd64 1:16.b.3-dfsg-1ubuntu2.1 [738 kB]
==> default: Err http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-asn1 amd64 1:16.b.3-dfsg-1ubuntu2.1
==> default: Connection failed [IP: 91.189.91.24 80]
==> default: Get:5 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-mnesia amd64 1:16.b.3-dfsg-1ubuntu2.1 [658 kB]
==> default: Get:6 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-mnesia amd64 1:16.b.3-dfsg-1ubuntu2.1 [658 kB]
==> default: Get:7 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-mnesia amd64 1:16.b.3-dfsg-1ubuntu2.1 [658 kB]
==> default: Get:8 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-runtime-tools amd64 1:16.b.3-dfsg-1ubuntu2.1 [157 kB]
==> default: Get:9 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-crypto amd64 1:16.b.3-dfsg-1ubuntu2.1 [70.2 kB]
==> default: Get:10 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-public-key amd64 1:16.b.3-dfsg-1ubuntu2.1 [498 kB]
==> default: Get:11 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-ssl amd64 1:16.b.3-dfsg-1ubuntu2.1 [559 kB]
==> default: Get:12 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-inets amd64 1:16.b.3-dfsg-1ubuntu2.1 [753 kB]
==> default: Get:13 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-corba amd64 1:16.b.3-dfsg-1ubuntu2.1 [2235 kB]
==> default: Get:14 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-syntax-tools amd64 1:16.b.3-dfsg-1ubuntu2.1 [289 kB]
==> default: Get:15 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-diameter amd64 1:16.b.3-dfsg-1ubuntu2.1 [600 kB]
==> default: Get:16 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-xmerl amd64 1:16.b.3-dfsg-1ubuntu2.1 [972 kB]
==> default: Get:17 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-edoc amd64 1:16.b.3-dfsg-1ubuntu2.1 [298 kB]
==> default: Get:18 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-eldap amd64 1:16.b.3-dfsg-1ubuntu2.1 [91.8 kB]
==> default: Get:19 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-erl-docgen amd64 1:16.b.3-dfsg-1ubuntu2.1 [134 kB]
==> default: Get:20 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-eunit amd64 1:16.b.3-dfsg-1ubuntu2.1 [137 kB]
==> default: Get:21 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-ic amd64 1:16.b.3-dfsg-1ubuntu2.1 [818 kB]
==> default: Get:22 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-odbc amd64 1:16.b.3-dfsg-1ubuntu2.1 [50.1 kB]
==> default: Get:23 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-snmp amd64 1:16.b.3-dfsg-1ubuntu2.1 [1497 kB]
==> default: Get:24 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-os-mon amd64 1:16.b.3-dfsg-1ubuntu2.1 [94.9 kB]
==> default: Get:25 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-parsetools amd64 1:16.b.3-dfsg-1ubuntu2.1 [156 kB]
==> default: Get:26 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-percept amd64 1:16.b.3-dfsg-1ubuntu2.1 [136 kB]
==> default: Get:27 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-ssh amd64 1:16.b.3-dfsg-1ubuntu2.1 [361 kB]
==> default: Get:28 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-webtool amd64 1:16.b.3-dfsg-1ubuntu2.1 [39.5 kB]
==> default: Get:29 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-tools amd64 1:16.b.3-dfsg-1ubuntu2.1 [501 kB]
==> default: Get:30 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-nox all 1:16.b.3-dfsg-1ubuntu2.1 [17.7 kB]
==> default: Get:31 http://us.archive.ubuntu.com/ubuntu/ trusty/main lksctp-tools amd64 1.0.15+dfsg-1 [51.3 kB]
==> default: Get:32 http://us.archive.ubuntu.com/ubuntu/ trusty/main rabbitmq-server all 3.2.4-1 [3909 kB]
==> default: Fetched 21.3 MB in 6min 26s (55.0 kB/s)
==> default: E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/e/erlang/erlang-asn1_16.b.3-dfsg-1ubuntu2.1_amd64.deb Connection failed [IP: 91.189.91.24 80]
==> default:
==> default: E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
/etc/apt/source.list:
#
# deb cdrom:[Ubuntu-Server 14.04 LTS _Trusty Tahr_ - Release amd64 (20140416.2)]/ trusty main restricted
# deb cdrom:[Ubuntu-Server 14.04 LTS _Trusty Tahr_ - Release amd64 (20140416.2)]/ trusty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu trusty-security main restricted
deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb-src http://security.ubuntu.com/ubuntu trusty-security universe
deb http://security.ubuntu.com/ubuntu trusty-security multiverse
deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse
編輯
SUCCESS !!
provider => "aptitude"
這就是我所需要的!所有這一次,我看着錯誤的方向看不到解決方案是這麼簡單! ,據我瞭解它提供的解決方案,由於資質的方式處理依賴關係和更「智能」的方式,安裝軟件包 什麼iv'e瞭解到:
始終即使發表您的完整的錯誤輸出在你的眼裏它似乎不相關(對不起)
在閱讀了一下關於aptitude後,我不能再看到使用apt的原因了,如果有人有某種情況,在某些情況下apt是優選的,我會喜歡聽到和學習
真的只有那一行錯誤嗎?啊。 – 2015-03-04 11:42:21
你可以發佈你的Vagrantfile嗎? – 2015-03-04 15:54:33
我還是不明白答案......那是流浪漢嗎?你在錯誤中看到了什麼? – tslater 2015-03-29 01:00:43