分享

openstack kilo(ubuntu14.04 适用于其它版本)之安装ntp出现错误

pig2 发表于 2015-8-3 15:55:11 [显示全部楼层] 只看大图 回帖奖励 阅读模式 关闭右栏 0 9763
[mw_shl_code=bash,true] apt-get install ntp -y[/mw_shl_code]
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following extra packages will be installed:
  libopts25
Suggested packages:
  ntp-doc
The following NEW packages will be installed:
  libopts25 ntp
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 418 kB/473 kB of archives.
After this operation, 1,676 kB of additional disk space will be used.
Err http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main ntp amd64 1:4.2.6.p5+dfsg-3ubuntu2.14.04.2
  404  Not Found
Err http://security.ubuntu.com/ubuntu/ trusty-security/main ntp amd64 1:4.2.6.p5+dfsg-3ubuntu2.14.04.2
  404  Not Found
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/n/ntp/ntp_4.2.6.p5+dfsg-3ubuntu2.14.04.2_amd64.deb  404  Not Found

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

出现这个问题,原因是yum没有更新,执行

[mw_shl_code=bash,true]sudo apt-get update[/mw_shl_code]

然后在执行命令
[mw_shl_code=bash,true] apt-get install ntp -y[/mw_shl_code]


[mw_shl_code=bash,true]root@network:~# apt-get install ntp
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following extra packages will be installed:
  libopts25
Suggested packages:
  ntp-doc
The following NEW packages will be installed:
  libopts25 ntp
0 upgraded, 2 newly installed, 0 to remove and 46 not upgraded.
Need to get 418 kB/473 kB of archives.
After this operation, 1,676 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://security.ubuntu.com/ubuntu/ trusty-security/main ntp amd64 1:4.2.6.p5+dfsg-3ubuntu2.14.04.3 [418 kB]
Fetched 418 kB in 0s (1,391 kB/s)
Selecting previously unselected package libopts25:amd64.
(Reading database ... 83915 files and directories currently installed.)
Preparing to unpack .../libopts25_1%3a5.18-2ubuntu2_amd64.deb ...
Unpacking libopts25:amd64 (1:5.18-2ubuntu2) ...
Selecting previously unselected package ntp.
Preparing to unpack .../ntp_1%3a4.2.6.p5+dfsg-3ubuntu2.14.04.3_amd64.deb ...
Unpacking ntp (1:4.2.6.p5+dfsg-3ubuntu2.14.04.3) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Setting up libopts25:amd64 (1:5.18-2ubuntu2) ...
Setting up ntp (1:4.2.6.p5+dfsg-3ubuntu2.14.04.3) ...
* Starting NTP server ntpd                                                                    [ OK ]
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
Processing triggers for ureadahead (0.100.0-16) ...[/mw_shl_code]

apt-get.png


没找到任何评论,期待你打破沉寂

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条