刚开始在我的digitalocean Droplet上全新安装Ubuntu 14.04,我试图安装git
。
我的第一次尝试未能安装一些软件包 -
root@Jedi:~# sudo apt-get install git-all
...
...
E: Failed to fetch http://mirrors.digitalocean.com/ubuntu/pool/main/g/gcc-4.8/libgomp1_4.8.4-2ubuntu1~14.04.1_amd64.deb 404 Not Found [IP: 95.85.0.50 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
所以我接受了上面的建议并用--fix-missing
重新运行它,希望能解决它。没有运气 - 仍然缺少下面提到的包裹。
它尝试安装的软件包究竟是什么?为什么它在fesh操作系统映像上失败?正在运行which git
什么都不返回,这告诉我它没有安装。
谢谢!
root@Jedi:~# sudo apt-get install git-all --fix-missing
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
acl apache2 apache2-bin apache2-data at-spi2-core colord cvs cvsps
dconf-gsettings-backend dconf-service emacs emacs24 emacs24-bin-common
emacs24-common emacs24-common-non-dfsg emacsen-common fgetty fontconfig
fontconfig-config fonts-dejavu-core gconf-service gconf-service-backend
gconf2-common ghostscript git git-arch git-bzr git-cvs git-daemon-run
git-doc git-el git-email git-gui git-man git-mediawiki git-svn gitk gitweb
gsfonts hicolor-icon-theme imagemagick-common libapr1 libaprutil1
libaprutil1-dbd-sqlite3 libaprutil1-ldap libasound2 libasound2-data
libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data libatspi2.0-0
libauthen-sasl-perl libavahi-client3 libavahi-common-data libavahi-common3
libcairo-gobject2 libcairo2 libclass-factory-util-perl libclass-load-perl
libclass-singleton-perl libcolord1 libcolorhug1 libcommon-sense-perl
libcroco3 libcups2 libcupsfilters1 libcupsimage2 libdata-optlist-perl
libdatetime-format-builder-perl libdatetime-format-iso8601-perl
libdatetime-format-strptime-perl libdatetime-locale-perl libdatetime-perl
libdatetime-timezone-perl libdatrie1 libdbd-sqlite3-perl libdbi-perl
libdconf1 libdigest-hmac-perl libdrm-intel1 libdrm-nouveau2 libdrm-radeon1
libemail-valid-perl libencode-locale-perl liberror-perl libexif12
libfftw3-double3 libfile-listing-perl libfont-afm-perl libfontconfig1
libfontenc1 libgconf-2-4 libgd3 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common
libgif4 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgomp1 libgphoto2-6
libgphoto2-l10n libgphoto2-port10 libgraphite2-3 libgs9 libgs9-common
libgtk-3-0 libgtk-3-bin libgtk-3-common libgudev-1.0-0 libgusb2
libharfbuzz0b libhtml-form-perl libhtml-format-perl libhtml-parser-perl
libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl
libhttp-daemon-perl libhttp-date-perl libhttp-message-perl
libhttp-negotiate-perl libice6 libieee1284-3 libijs-0.35 libio-html-perl
libio-socket-inet6-perl libio-socket-ssl-perl libjasper1 libjbig0
libjbig2dec0 libjpeg-turbo8 libjpeg8 libjs-jquery libjson-perl
libjson-xs-perl liblcms2-2 liblist-moreutils-perl libllvm3.4 liblqr-1-0
libltdl7 liblwp-mediatypes-perl liblwp-protocol-https-perl libm17n-0
libmagickcore5 libmagickwand5 libmailtools-perl libmediawiki-api-perl
libmodule-implementation-perl libmodule-runtime-perl libnet-dns-perl
libnet-domain-tld-perl libnet-http-perl libnet-ip-perl libnet-smtp-ssl-perl
libnet-ssleay-perl libotf0 libpackage-stash-perl libpackage-stash-xs-perl
libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpaper-utils
libpaper1 libparams-classify-perl libparams-util-perl
libparams-validate-perl libpciaccess0 libpixman-1-0 librsvg2-2
librsvg2-common libsane libsane-common libserf-1-1 libsm6 libsocket6-perl
libsub-install-perl libsvn-perl libsvn1 libtcl8.6 libterm-readkey-perl
libthai-data libthai0 libtiff5 libtk8.6 libtry-tiny-perl libtxc-dxtn-s2tc0
liburi-perl libutempter0 libv4l-0 libv4lconvert0 libvpx1 libwayland-client0
libwayland-cursor0 libwww-perl libwww-robotrules-perl libx11-xcb1 libxaw7
libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-render0
libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcomposite1 libxcursor1
libxdamage1 libxfixes3 libxft2 libxi6 libxinerama1 libxkbcommon0 libxmu6
libxpm4 libxrandr2 libxrender1 libxshmfence1 libxss1 libxt6 libxtst6 libxv1
libxxf86dga1 libxxf86vm1 libyaml-libyaml-perl libyaml-perl m17n-contrib
m17n-db poppler-data python-bzrlib python-crypto python-dbus python-dbus-dev
python-gi python-httplib2 python-keyring python-launchpadlib
python-lazr.restfulclient python-lazr.uri python-paramiko
python-secretstorage python-simplejson python-wadllib runit ssl-cert tcl
tcl8.6 tk tk8.6 tla tla-doc x11-common x11-utils xbitmaps xterm
Suggested packages:
apache2-doc apache2-suexec-pristine apache2-suexec-custom apache2-utils mksh
rcs emacs24-el ghostscript-x hpijs bzr aspell mediawiki subversion httpd-cgi
libcgi-fast-perl libasound2-plugins alsa-utils libgssapi-perl cups-common
libclone-perl libmldbm-perl libnet-daemon-perl libplrpc-perl
libsql-statement-perl libfftw3-bin libfftw3-dev libgd-tools libglide3
gphoto2 gtkam fonts-droid gvfs libdata-dump-perl libjasper-runtime
javascript-common liblcms2-utils libcrypt-ssleay-perl m17n-docs
libmagickcore5-extra ttf-baekmuk ttf-arphic-gbsn00lp ttf-arphic-bsmi00lp
ttf-arphic-gkai00mp ttf-arphic-bkai00mp libscalar-number-perl librsvg2-bin
avahi-daemon hplip hpoj libsane-extras sane-utils libauthen-ntlm-perl
libyaml-shell-perl poppler-utils fonts-japanese-mincho fonts-ipafont-mincho
fonts-japanese-gothic fonts-ipafont-gothic fonts-arphic-ukai
fonts-arphic-uming fonts-unfonts-core python-bzrlib-dbg python-bzrlib.tests
python-gpgme python-kerberos python-pycurl xdg-utils python-crypto-dbg
python-crypto-doc python-dbus-doc python-dbus-dbg python-gi-cairo
gir1.2-gnomekeyring-1.0 python-gdata python-keyczar python-kde4
python-testresources gnome-keyring python-secretstorage-doc socklog-run
openssl-blacklist tcl-tclreadline ssh mesa-utils xfonts-cyrillic
The following NEW packages will be installed:
acl apache2 apache2-bin apache2-data at-spi2-core colord cvs cvsps
dconf-gsettings-backend dconf-service emacs emacs24 emacs24-bin-common
emacs24-common emacs24-common-non-dfsg emacsen-common fgetty fontconfig
fontconfig-config fonts-dejavu-core gconf-service gconf-service-backend
gconf2-common ghostscript git git-all git-arch git-bzr git-cvs
git-daemon-run git-doc git-el git-email git-gui git-man git-mediawiki
git-svn gitk gitweb gsfonts hicolor-icon-theme imagemagick-common libapr1
libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libasound2
libasound2-data libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data libatspi2.0-0
libauthen-sasl-perl libavahi-client3 libavahi-common-data libavahi-common3
libcairo-gobject2 libcairo2 libclass-factory-util-perl libclass-load-perl
libclass-singleton-perl libcolord1 libcolorhug1 libcommon-sense-perl
libcroco3 libcups2 libcupsfilters1 libcupsimage2 libdata-optlist-perl
libdatetime-format-builder-perl libdatetime-format-iso8601-perl
libdatetime-format-strptime-perl libdatetime-locale-perl libdatetime-perl
libdatetime-timezone-perl libdatrie1 libdbd-sqlite3-perl libdbi-perl
libdconf1 libdigest-hmac-perl libdrm-intel1 libdrm-nouveau2 libdrm-radeon1
libemail-valid-perl libencode-locale-perl liberror-perl libexif12
libfftw3-double3 libfile-listing-perl libfont-afm-perl libfontconfig1
libfontenc1 libgconf-2-4 libgd3 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common
libgif4 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgomp1 libgphoto2-6
libgphoto2-l10n libgphoto2-port10 libgraphite2-3 libgs9 libgs9-common
libgtk-3-0 libgtk-3-bin libgtk-3-common libgudev-1.0-0 libgusb2
libharfbuzz0b libhtml-form-perl libhtml-format-perl libhtml-parser-perl
libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl
libhttp-daemon-perl libhttp-date-perl libhttp-message-perl
libhttp-negotiate-perl libice6 libieee1284-3 libijs-0.35 libio-html-perl
libio-socket-inet6-perl libio-socket-ssl-perl libjasper1 libjbig0
libjbig2dec0 libjpeg-turbo8 libjpeg8 libjs-jquery libjson-perl
libjson-xs-perl liblcms2-2 liblist-moreutils-perl libllvm3.4 liblqr-1-0
libltdl7 liblwp-mediatypes-perl liblwp-protocol-https-perl libm17n-0
libmagickcore5 libmagickwand5 libmailtools-perl libmediawiki-api-perl
libmodule-implementation-perl libmodule-runtime-perl libnet-dns-perl
libnet-domain-tld-perl libnet-http-perl libnet-ip-perl libnet-smtp-ssl-perl
libnet-ssleay-perl libotf0 libpackage-stash-perl libpackage-stash-xs-perl
libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpaper-utils
libpaper1 libparams-classify-perl libparams-util-perl
libparams-validate-perl libpciaccess0 libpixman-1-0 librsvg2-2
librsvg2-common libsane libsane-common libserf-1-1 libsm6 libsocket6-perl
libsub-install-perl libsvn-perl libsvn1 libtcl8.6 libterm-readkey-perl
libthai-data libthai0 libtiff5 libtk8.6 libtry-tiny-perl libtxc-dxtn-s2tc0
liburi-perl libutempter0 libv4l-0 libv4lconvert0 libvpx1 libwayland-client0
libwayland-cursor0 libwww-perl libwww-robotrules-perl libx11-xcb1 libxaw7
libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-render0
libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcomposite1 libxcursor1
libxdamage1 libxfixes3 libxft2 libxi6 libxinerama1 libxkbcommon0 libxmu6
libxpm4 libxrandr2 libxrender1 libxshmfence1 libxss1 libxt6 libxtst6 libxv1
libxxf86dga1 libxxf86vm1 libyaml-libyaml-perl libyaml-perl m17n-contrib
m17n-db poppler-data python-bzrlib python-crypto python-dbus python-dbus-dev
python-gi python-httplib2 python-keyring python-launchpadlib
python-lazr.restfulclient python-lazr.uri python-paramiko
python-secretstorage python-simplejson python-wadllib runit ssl-cert tcl
tcl8.6 tk tk8.6 tla tla-doc x11-common x11-utils xbitmaps xterm
0 upgraded, 257 newly installed, 0 to remove and 0 not upgraded.
Need to get 23.1 kB/81.3 MB of archives.
After this operation, 365 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Err http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main libgomp1 amd64 4.8.4-2ubuntu1~14.04.1
404 Not Found [IP: 95.85.0.50 80]
Unable to correct missing packages.
E: Failed to fetch http://mirrors.digitalocean.com/ubuntu/pool/main/g/gcc-4.8/libgomp1_4.8.4-2ubuntu1~14.04.1_amd64.deb 404 Not Found [IP: 95.85.0.50 80]
E: Aborting install.
答案 0 :(得分:1)
嗯......我真的再次运行相同的原始命令
sudo apt-get install git-all
它神奇地工作了
叹息......不可重现的错误是最糟糕的类型-_-
答案 1 :(得分:0)
有时,forcing a full refresh can help:
sudo apt-get clean
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update
答案 2 :(得分:0)
运行
apt-get update
apt-get upgrade
运行
apt-get install git
...,一切都会发现。
(叹气–“我也是”也有同样的错误,因为我忘记了更新和升级...)