恩山无线论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 2875|回复: 25

玩客云刷armbian 这个地方卡住 不能执行

[复制链接]
发表于 2021-2-9 12:37 | 显示全部楼层 |阅读模式
执行这个命名成功
root@aml:~# apt install ntp
Reading package lists... Done
Building dependency tree
Reading state information... Done
ntp is already the newest version (1:4.2.8p10+dfsg-3+deb9u2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

接下来执行这个  就不行  请问怎么解决   
root@aml:~# ntp ntp1.aliyun.com
No command 'ntp' found, did you mean:
Command 'nop' from package 'graphviz' (main)
Command 'ntpd' from package 'ntp' (main)
Command 'ntpd' from package 'openntpd' (main)
Command 'nup' from package 'dvi2ps' (main)
Command 'htp' from package 'htp' (main)
Command 'ntpq' from package 'ntp' (main)
Command 'antp' from package 'ripe-atlas-tools' (main)
Command 'otp' from package 'heimdal-clients' (main)
Command 'mtp' from package 'ferret-vis' (main)
Command 'nqp' from package 'nqp' (main)
Command 'nap' from package 'nap' (main)
Command 'np' from package 'mosquitto-auth-plugin' (main)
Command 'sntp' from package 'ntp' (main)
ntp: command not found

我的恩山、我的无线 The best wifi forum is right here.
发表于 2021-2-9 12:52 | 显示全部楼层
本帖最后由 jjit 于 2021-2-9 13:01 编辑

sntp ntp1.aliyun.com

或者装一下 apt install ntpdate
ntpdate -u ntp1.aliyun.com
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2021-2-9 13:00 | 显示全部楼层
root@aml:~# apt install ntpdate
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ntpdate

点评

试一下 sntp ntp1.aliyun.com  详情 回复 发表于 2021-2-9 13:01
我的恩山、我的无线 The best wifi forum is right here.
发表于 2021-2-9 13:01 | 显示全部楼层
xcgf 发表于 2021-2-9 13:00
root@aml:~# apt install ntpdate
Reading package lists... Done
Building dependency tree

试一下 sntp ntp1.aliyun.com
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2021-2-9 13:02 | 显示全部楼层
root@aml:~# ntpdate -u ntp1.aliyun.com
The program 'ntpdate' is currently not installed.  You can install it by typing:
apt install ntpdate
ntpdate: command not found

点评

可能armbian里没有 ntpdate 这个包 他上面提示 ntp包里有 sntp命令,试一下 sntp命令 sntp ntp1.aliyun.com  详情 回复 发表于 2021-2-9 13:04
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2021-2-9 13:02 | 显示全部楼层
root@aml:~# sntp ntp1.aliyun.comv
sntp 4.2.8p10@1.3728-o Sun Feb 25 21:58:22 UTC 2018 (1)
kod_init_kod_db(): Cannot open KoD db file /var/db/ntp-kod: No such file or directory
ntp1.aliyun.comv lookup error Name or service not known

点评

touch /var/db/ntp-kod sntp -sS ntp1.aliyun.com  详情 回复 发表于 2021-2-9 13:08
我的恩山、我的无线 The best wifi forum is right here.
发表于 2021-2-9 13:04 | 显示全部楼层
xcgf 发表于 2021-2-9 13:02
root@aml:~# ntpdate -u ntp1.aliyun.com
The program 'ntpdate' is currently not installed.  You can i ...

可能armbian里没有 ntpdate 这个包
他上面提示 ntp包里有 sntp命令,试一下 sntp命令
sntp ntp1.aliyun.com
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2021-2-9 13:05 | 显示全部楼层
root@aml:~# sntp ntp1.aliyun.com
sntp 4.2.8p10@1.3728-o Sun Feb 25 21:58:22 UTC 2018 (1)
kod_init_kod_db(): Cannot open KoD db file /var/db/ntp-kod: No such file or directory
ntp1.aliyun.com lookup error Name or service not known
我的恩山、我的无线 The best wifi forum is right here.
发表于 2021-2-9 13:08 | 显示全部楼层
本帖最后由 jjit 于 2021-2-9 13:10 编辑
xcgf 发表于 2021-2-9 13:02
root@aml:~# sntp ntp1.aliyun.comv
sntp -o Sun Feb 25 21:58:22 UTC 2018 (1)
kod_init_kod_db(): Cann ...

https://blog.csdn.net/lqglqglqg/article/details/102910848
touch /var/db/ntp-kod
chmod 666 /var/db/ntp-kod
sntp -sS ntp1.aliyun.com
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2021-2-9 13:10 | 显示全部楼层
root@aml:~# touch /var/db/ntp-kod
touch: cannot touch '/var/db/ntp-kod': No such file or directory
root@aml:~# touch /var/db/ntp-kod
touch: cannot touch '/var/db/ntp-kod': No such file or directory
root@aml:~# touch /var/db/ntp-kod
touch: cannot touch '/var/db/ntp-kod': No such file or directory
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2021-2-9 13:11 | 显示全部楼层
root@aml:~# touch /var/db/ntp-kod
touch: cannot touch '/var/db/ntp-kod': No such file or directory
root@aml:~# touch /var/db/ntp-kod
touch: cannot touch '/var/db/ntp-kod': No such file or directory
root@aml:~# touch /var/db/ntp-kod
touch: cannot touch '/var/db/ntp-kod': No such file or directory
root@aml:~#
root@aml:~# sntp -sS ntp1.aliyun.com
sntp 4.2.8p10@1.3728-o Sun Feb 25 21:58:22 UTC 2018 (1)
kod_init_kod_db(): Cannot open KoD db file /var/db/ntp-kod: No such file or directory
ntp1.aliyun.com lookup error Name or service not known
root@aml:~#

点评

先创建一下目录试试 mkdir /var/db touch /var/db/ntp-kod chmod 666 /var/db/ntp-kod sntp -sS ntp1.aliyun.com  详情 回复 发表于 2021-2-9 13:17
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2021-2-9 13:15 | 显示全部楼层
root@aml:~# !/bin/sh
-bash: !/bin/sh: event not found
root@aml:~# touch /var/db/ntp-kod
touch: cannot touch '/var/db/ntp-kod': No such file or directory
root@aml:~# touch /var/db/ntp-kod
touch: cannot touch '/var/db/ntp-kod': No such file or directory
root@aml:~# chmod 666 /var/db/ntp-kod
chmod: cannot access '/var/db/ntp-kod': No such file or directory
root@aml:~# sntp -sS ntp1.aliyun.com
sntp 4.2.8p10@1.3728-o Sun Feb 25 21:58:22 UTC 2018 (1)
kod_init_kod_db(): Cannot open KoD db file /var/db/ntp-kod: No such file or directory
ntp1.aliyun.com lookup error Name or service not known
root@aml:~#
我的恩山、我的无线 The best wifi forum is right here.
发表于 2021-2-9 13:17 | 显示全部楼层
xcgf 发表于 2021-2-9 13:11
root@aml:~# touch /var/db/ntp-kod
touch: cannot touch '/var/db/ntp-kod': No such file or directory
...

先创建一下目录试试
mkdir /var/db
touch /var/db/ntp-kod
chmod 666 /var/db/ntp-kod
sntp -sS ntp1.aliyun.com
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2021-2-9 13:21 | 显示全部楼层
root@aml:~# mkdir /var/db
root@aml:~# touch /var/db/ntp-kod
root@aml:~# chmod 666 /var/db/ntp-kod
root@aml:~# sntp -sS ntp1.aliyun.com
sntp 4.2.8p10@1.3728-o Sun Feb 25 21:58:22 UTC 2018 (1)
ntp1.aliyun.com lookup error Name or service not known
root@aml:~#

点评

能够 ping通吗 ping ntp1.aliyun.com 或者 ping一下 baidu,和 qq,能 ping通吗 ping www.baidu.com ping www.qq.com ping 不同说明,网络配置不对,没有联网  详情 回复 发表于 2021-2-9 13:24
我的恩山、我的无线 The best wifi forum is right here.
发表于 2021-2-9 13:24 | 显示全部楼层
本帖最后由 jjit 于 2021-2-9 13:25 编辑
xcgf 发表于 2021-2-9 13:21
root@aml:~# mkdir /var/db
root@aml:~# touch /var/db/ntp-kod
root@aml:~# chmod 666 /var/db/ntp-kod
...

能够 ping通吗 ping ntp1.aliyun.com
或者 ping一下 baidu,和 qq,能 ping通吗
ping www.baidu.com
ping www.qq.com
ping 不通说明,网络配置不对,没有联网
我的恩山、我的无线 The best wifi forum is right here.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )|网站地图

GMT+8, 2021-3-1 12:38

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表