網(wǎng)站首頁 編程語言 正文
樹莓派以及l(fā)inux ubuntu 上,各種依賴不滿足,修復(fù)不了:E: Release file for xxx InRelease is not valid yet (invalid for xxx
作者:別出BUG求求了 更新時(shí)間: 2023-11-14 編程語言sudo apt update
報(bào)錯(cuò):
Reading package lists… Done E: Release file for
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/focal-updates/InRelease
is not valid yet (invalid for another 9d 23h 6min 27s). Updates for
this repository will not be applied. E: Release file for
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/focal-backports/InRelease
is not valid yet (invalid for another 9d 23h 6min 47s). Updates for
this repository will not be applied. E: Release file for
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/focal-security/InRelease
is not valid yet (invalid for another 9d 23h 6min 16s). Updates for
this repository will not be applied.
sudo apt install -f
報(bào)錯(cuò)
Preparing to unpack …/libgl-dev_1.3.1-1_amd64.deb …
Unpacking libgl-dev:amd64 (1.3.1-1) …
dpkg: error processing archive /var/cache/apt/archives/libgl-dev_1.3.1-1_amd64.deb (–unpack):
trying to overwrite ‘/usr/include/GL/gl.h’, which is also in package mesa-common-dev:amd64 20.0.8-0ubuntu1~18.04.1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack …/libglx-dev_1.3.1-1_amd64.deb …
Unpacking libglx-dev:amd64 (1.3.1-1) …
dpkg: error processing archive /var/cache/apt/archives/libglx-dev_1.3.1-1_amd64.deb (–unpack):
trying to overwrite ‘/usr/include/GL/glx.h’, which is also in package mesa-common-dev:amd64 20.0.8-0ubuntu1~18.04.1
Errors were encountered while processing:
/var/cache/apt/archives/libgl-dev_1.3.1-1_amd64.deb
/var/cache/apt/archives/libglx-dev_1.3.1-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
sudo dpkg --configure -a
報(bào)錯(cuò)
$ sudo dpkg --configure -a
[sudo] password for wjc:
dpkg: dependency problems prevent configuration of libglvnd-dev:amd64:
libglvnd-dev:amd64 depends on libgl-dev (>= 1.3.0-1); however:
Package libgl-dev:amd64 is not installed.
libglvnd-dev:amd64 depends on libglx-dev (>= 1.3.0-1); however:
Package libglx-dev:amd64 is not installed.dpkg: error processing package libglvnd-dev:amd64 (–configure):
dependency problems - leaving unconfigured dpkg: dependency problems
prevent configuration of libglvnd-core-dev:amd64:
libglvnd-core-dev:amd64 depends on libglvnd-dev; however: Package
libglvnd-dev:amd64 is not configured yet.dpkg: error processing package libglvnd-core-dev:amd64 (–configure):
dependency problems - leaving unconfigured Errors were encountered
while processing: libglvnd-dev:amd64 libglvnd-core-dev:amd64
解決:
可能是系統(tǒng)時(shí)間出問題了
手動(dòng)修改服務(wù)器時(shí)間:
啟用網(wǎng)絡(luò)時(shí)間協(xié)議:
為了保證時(shí)間的準(zhǔn)確性,推薦使用NTP網(wǎng)絡(luò)時(shí)間協(xié)議來同步時(shí)間。對的,跟windows中的 Internet 時(shí)間同步是一樣一樣的。
NTP(Network Time Protocol,網(wǎng)絡(luò)時(shí)間協(xié)議)是用來使網(wǎng)絡(luò)中的各個(gè)計(jì)算機(jī)時(shí)間同步的一種協(xié)議。NTP可以使計(jì)算機(jī)時(shí)鐘與 Internet 時(shí)間服務(wù)器同步。 這意味著可以更新計(jì)算機(jī)上的時(shí)鐘,以與時(shí)間服務(wù)器上的時(shí)鐘匹配,這有助于確保計(jì)算機(jī)上的時(shí)鐘是準(zhǔn)確的。它的用途是把計(jì)算機(jī)的時(shí)鐘同步到世界協(xié)調(diào)時(shí)間UTC,其精度在局域網(wǎng)內(nèi)可達(dá)0.1ms,在互聯(lián)網(wǎng)上絕大多數(shù)的地方其精度可以達(dá)到1-50ms。
運(yùn)行以下命令,啟用NTP:
sudo timedatectl set-ntp true
啟用NTP以后,時(shí)間就是正常的嗎?我們來通過date命令來查看當(dāng)前時(shí)間:
date
若沒對上現(xiàn)在時(shí)間,說明時(shí)區(qū)不正常
使用以下命令修改本地時(shí)區(qū):
sudo dpkg-reconfigure tzdata
在“Configuring tzdata”中,依次選擇Asia、Chongqing,回車確認(rèn),出現(xiàn)了以下提示信息:
cp: cannot create regular file '/etc/localtime.dpkg-new': Read-only file system
Current default time zone: 'Asia/Chongqing'
Local time is now: Mon Apr 6 08:49:52 UTC 2015.
Universal Time is now: Mon Apr 6 08:49:52 UTC 2015.
debconf: DbDriver "config": could not write /var/cache/debconf/config.dat-new: Read-only file system
簡單來說,就是文件系統(tǒng)是只讀的,不能創(chuàng)建etc/localtime.dpkg-new文件和不能寫config.dat-new文件。
當(dāng)前默認(rèn)的時(shí)區(qū)是已經(jīng)改成了我們想要的’Asia/Chongqing’,但是本地時(shí)間和世界時(shí)間還是一樣的,這里還有問題,應(yīng)該就是只讀文件系統(tǒng)造成時(shí)區(qū)沒有完全配置。
使得文件系統(tǒng)可寫
通過askubuntu找到了Read-only file system問題的解決辦法,運(yùn)行以下命令使得文件系統(tǒng)可寫。
重復(fù)第二步修改時(shí)區(qū)
這一次重新配置時(shí)區(qū)就比較順利了。本地時(shí)間變成了CST時(shí)間,也就是China Standard Time UTC+8:00 中國沿海時(shí)間(北京時(shí)間)。
Current default time zone: 'Asia/Chongqing'
Local time is now: Mon Apr 6 55 55 173)">173)">16:55:50 CST 2015.
Universal Time is now: Mon Apr 6 08:55:50 UTC 2015.
ubuntu@localhost:/etc$ date
Mon Apr 6 55 173)">17:55 173)">19:56 CST 2015
ubuntu@localhost:/etc$ timedatectl status
Local time: Mon 2015-04-06 55 173)">17:55 173)">36:55 173)">36 CST
Universal time: Mon 2015-04-06 09:55 173)">36:55 173)">36 UTC
RTC time: n/a
Time zone: Asia/Chongqing (CST, +0800)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: n/a
原文鏈接:https://blog.csdn.net/weixin_39589455/article/details/129540483
- 上一篇:沒有了
- 下一篇:沒有了
相關(guān)推薦
- 2022-06-01 Python基于Pytorch的特征圖提取實(shí)例_python
- 2023-01-08 Python?flask與fastapi性能測試方法介紹_python
- 2022-07-22 String類的matches()方法的使用
- 2022-02-23 Linux用戶建立腳本/猜字游戲/網(wǎng)卡流量監(jiān)控介紹_Linux
- 2022-04-26 MFC修改編輯框光標(biāo)顯示位置方法詳解_C 語言
- 2022-11-02 React中編寫CSS實(shí)例詳解_React
- 2022-11-25 Docker?制作tomcat鏡像并部署項(xiàng)目的步驟_docker
- 2023-02-10 python自定義函數(shù)中的return和print使用及說明_python
- 欄目分類
-
- 最近更新
-
- window11 系統(tǒng)安裝 yarn
- 超詳細(xì)win安裝深度學(xué)習(xí)環(huán)境2025年最新版(
- Linux 中運(yùn)行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲(chǔ)小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎(chǔ)操作-- 運(yùn)算符,流程控制 Flo
- 1. Int 和Integer 的區(qū)別,Jav
- spring @retryable不生效的一種
- Spring Security之認(rèn)證信息的處理
- Spring Security之認(rèn)證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權(quán)
- redisson分布式鎖中waittime的設(shè)
- maven:解決release錯(cuò)誤:Artif
- restTemplate使用總結(jié)
- Spring Security之安全異常處理
- MybatisPlus優(yōu)雅實(shí)現(xiàn)加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務(wù)發(fā)現(xiàn)-Nac
- Spring Security之基于HttpR
- Redis 底層數(shù)據(jù)結(jié)構(gòu)-簡單動(dòng)態(tài)字符串(SD
- arthas操作spring被代理目標(biāo)對象命令
- Spring中的單例模式應(yīng)用詳解
- 聊聊消息隊(duì)列,發(fā)送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠(yuǎn)程分支