首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法创建临时文件来处理/var/lib/apt/list/.bionic_InRelease

无法创建临时文件来处理/var/lib/apt/list/.bionic_InRelease
EN

Ask Ubuntu用户
提问于 2020-06-12 13:01:04
回答 1查看 7.4K关注 0票数 0

我不记得最近安装了什么,但是当我今天从待机状态中取出我的笔记本时,我收到了以下通知:

单词:An error occurred, please run Package Manager from the right-click menu or apt-get in a terminal to see what is wrong. The error message was: Error: Opening the cache (E:Couldn't create temporary file to work with /var/lib/apt/lists/de.archive.ubuntu.com_ubuntu__dists__bionic__InRelease - mkstemp (2: No such file or directory), E:The package lists or status file could not be parsed or opened.)'. This usually means that your installed packages have unmet dependencies (附带问题:是否有一个日志文件可以从某个地方复制文本?)

我不知道右击菜单是什么。当我单击preferences时,Software & Updates会打开,但我不知道在那里做什么。

运行apt-get check双工

Reading package lists... Error! E: Couldn't create temporary file to work with /var/lib/apt/lists/de.archive.ubuntu.com_ubuntu_dists_bionic_InRelease - mkstemp (2: No such file or directory) E: The package lists or status file could not be parsed or opened.

自那以后,我尝试了: per https://sillycodes.com/quick-tip-couldnt-create-temporary-file/

sudo apt-get clean sudo mv /var/lib/apt/lists /tmp sudo mkdir -p /var/lib/apt/lists/partial sudo apt-get clean sudo apt-get updatesudo mv /tmp /var/lib/apt/lists恢复

有几个存储库的错误消息,例如:W: GPG error: http://de.archive.ubuntu.com/ubuntu bionic-backports InRelease: Couldn't create temporary file /tmp/apt.conf.tiVq7R for passing config to apt-key E: The repository 'http://de.archive.ubuntu.com/ubuntu bionic-backports InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default.

EN

回答 1

Ask Ubuntu用户

发布于 2020-07-03 15:27:19

同样的错误发生在我的Ubuntu18.04中。然后我重新启动两次,直到它没有启动更多。相反,启动initramfs。

然后,我运行以下三个命令:

代码语言:javascript
复制
(initramfs) exit
...
(initramfs) fsck /dev/mapper/ubuntu–vg-root -y
...
(initramfs) reboot
...

PS.:我想在上次升级内核之后发生了任何磁盘错误。这种情况在最近两三次已经发生过。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1249601

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档