armdian系统GPT错误及修改系统时间的方法
577 字
3 分钟
armdian系统GPT错误及修改系统时间的方法
重新安装了armdian系统,更新软件源得时候GPT报错,更新GPT的时候又发现系统时间不对,GPT安装不上。记录一下是怎么解决的。

{mtitle title=GPT报错/}
更新GPT
apt-key adv --keyserver keyserver.ubuntu.com --recv 密钥密钥在报错的信息里边,如图上就是 0E98404D386FA1D9 、 648ACFD622F3D138 、 0E98404D386FA1D9 这几个密钥报错,执行 apt-key adv --keyserver keyserver.ubuntu.com --recv 648ACFD622F3D138 命令即可解决,一个密钥一条命令。
修改系统时间
执行命令
tzselect在出现的结果中,用数字选择大洲、国家、地区
root@Chainedbox:~# tzselectPlease identify a location so that time zone rules can be set correctly.Please select a continent, ocean, "coord", or "TZ".1) Africa 7) Europe2) Americas 8) Indian Ocean3) Antarctica 9) Pacific Ocean4) Asia 10) coord - I want to use geographical coordinates.5) Atlantic Ocean 11) TZ - I want to specify the timezone using the Posix TZ format.6) Australia#?root@Chainedbox:~# tzselectPlease identify a location so that time zone rules can be set correctly.Please select a continent, ocean, "coord", or "TZ".1) Africa 7) Europe2) Americas 8) Indian Ocean3) Antarctica 9) Pacific Ocean4) Asia 10) coord - I want to use geographical coordinates.5) Atlantic Ocean 11) TZ - I want to specify the timezone using the Posix TZ format.6) Australia#? 4Please select a country whose clocks agree with yours.1) Afghanistan 10) Cyprus 19) Japan 28) Macau 37) Qatar 46) Turkmenistan2) Armenia 11) East Timor 20) Jordan 29) Malaysia 38) Russia 47) United Arab Emirates3) Azerbaijan 12) Georgia 21) Kazakhstan 30) Mongolia 39) Saudi Arabia 48) Uzbekistan4) Bahrain 13) Hong Kong 22) Korea (North) 31) Myanmar (Burma) 40) Singapore 49) Vietnam5) Bangladesh 14) India 23) Korea (South) 32) Nepal 41) Sri Lanka 50) Yemen6) Bhutan 15) Indonesia 24) Kuwait 33) Oman 42) Syria7) Brunei 16) Iran 25) Kyrgyzstan 34) Pakistan 43) Taiwan8) Cambodia 17) Iraq 26) Laos 35) Palestine 44) Tajikistan9) China 18) Israel 27) Lebanon 36) Philippines 45) Thailand#? 9Please select one of the following timezones.1) Beijing Time2) Xinjiang Time#? 1
The following information has been given:
China Beijing Time
Therefore TZ='Asia/Shanghai' will be used.Selected time is now: Sun Oct 24 11:11:56 CST 2021.Universal Time is now: Sun Oct 24 03:11:56 UTC 2021.Is the above information OK?1) Yes2) No#? 1
You can make this change permanent for yourself by appending the line TZ='Asia/Shanghai'; export TZto the file '.profile' in your home directory; then log out and log in again.
Here is that TZ value again, this time on standard output so that youcan use the /usr/bin/tzselect command in shell scripts:Asia/Shanghairoot@Chainedbox:~#将修改结果存入本地文件中
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime更新系统时间
ntpd time.windows.com验证是否修改成功
date -R可以看到修改完成,此时将系统重启,以免计划任务执行异常
root@Chainedbox:~# date -RSun, 24 Oct 2021 11:18:15 +0800文章分享
如果这篇文章对你有帮助,欢迎分享给更多人!
armdian系统GPT错误及修改系统时间的方法
https://kanochan.net/posts/armbian-gpt-error-time-sync/相关文章智能推荐
1
我家云armbian安装qbittorrent的方法
运维记录在我家云Armbian环境下安装并配置qBittorrent的方法。
2
解决koolshare lede openwrt samba网络共享无法启动的问题
运维解决OpenWrt中Samba因依赖异常而无法正常启动的问题。
3
我家云——从零开始到一台完整的下载服务器
运维系统记录我家云从刷机到Armbian基础配置的完整搭建过程。
4
玩客云刷amrbian并安装transmission作BT下载及开启samba实现文件下载与共享
运维详述玩客云刷入Armbian后安装Transmission与配置Samba共享的全过程。
5
IPv4/IPv6双栈网络下配置IPv4链路优先
运维在双栈网络环境下通过系统配置调整IPv4优先级。
随机文章随机推荐

