找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 2321|回复: 6

[N1盒子] 求助!armbian apt update出错

[复制链接]
本帖最后由 PEMessage 于 2020-9-23 00:13 编辑

下载的是flippy大大的44版本 Armbian_20.02.0_Aml-s9xxx_buster_5.4.66-flippy-44+o
然后是全新安装,但是apt update到[0%working]就走不动了
ctrl-c后错误消息如下
  1. pemessage@aml:/home$ apt update
  2. Reading package lists... Done
  3. E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
  4. E: Unable to lock directory /var/lib/apt/lists/
  5. W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
  6. W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)
  7. pemessage@aml:/home$ sudo apt update
  8. Hit:1 http://mirrors.tuna.tsinghua.edu.cn/debian buster InRelease
  9. Hit:2 http://mirrors.tuna.tsinghua.edu.cn/debian buster-updates InRelease
  10. Hit:3 http://mirrors.tuna.tsinghua.edu.cn/debian buster-backports InRelease
  11. Hit:4 http://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InRelease
  12. Hit:5 http://mirrors.tuna.tsinghua.edu.cn/armbian buster InRelease
  13. ^CTraceback (most recent call last):
  14.   File "/usr/lib/cnf-update-db", line 26, in <module>
  15.     col.create(db)
  16.   File "/usr/share/command-not-found/CommandNotFound/db/creator.py", line 94, in create
  17.     self._fill_commands(con)
  18.   File "/usr/share/command-not-found/CommandNotFound/db/creator.py", line 132, in _fill_commands

  19. pemessage@aml:/home$     self._parse_single_contents_file(con, f, fp.stdout)
  20.   File "/usr/share/command-not-found/CommandNotFound/db/creator.py", line 231, in _parse_single_contents_file
  21.     continue
  22. KeyboardInterrupt
复制代码

我之前armbian也是同样问题,然后重新装居然还是一样,谷歌了一圈也没什么解决办法求大神帮助.
来自手机 | 显示全部楼层
这个一般是上次更新中断引起的,1.一般重启一下就可以解决;2.或者删掉/var/lib/apt/lists/lock 文件
回复

使用道具 举报

  1. pemessage@aml:/home$ apt update
  2. Reading package lists... Done
  3. E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
  4. E: Unable to lock directory /var/lib/apt/lists/
  5. W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
  6. W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)
复制代码


没权限,这是root该干的活,要加sudo
linux的基本操作。
回复

使用道具 举报

 楼主| | 显示全部楼层
our420 发表于 2020-9-23 12:03
没权限,这是root该干的活,要加sudo
linux的基本操作。

前面误输入了,下一条命令就是有加sudo的,但是还是提示错误
回复

使用道具 举报

本帖最后由 our420 于 2020-9-24 21:34 编辑
PEMessage 发表于 2020-9-23 21:59
前面误输入了,下一条命令就是有加sudo的,但是还是提示错误

你都ctrl-c中断了还想能更新成功?再等等,也许是你网络连清华源速度慢呢
回复

使用道具 举报

又是这么无声无息了,不求感谢但是回应一下问题解决很难吗?
要不怎么求助帖没人理呢
回复

使用道具 举报

 楼主| | 显示全部楼层
our420 发表于 2020-10-6 10:27
又是这么无声无息了,不求感谢但是回应一下问题解决很难吗?
要不怎么求助帖没人理呢

抱歉抱歉,迟来一年的感谢,当时好像是没有解决,好像是源的选择错误,属于基础知识不牢固,贻笑大方了.但还是谢谢,以及迟来一年的抱歉.
回复

使用道具 举报

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

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-5-12 19:32

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

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