apt 问题 couldn‘t be accessed by user ‘_apt‘. - pkgAcquire::Run (13: Permission denied)

sudo apt update 后警告如下:

root@xxxxx:~# sudo apt update
Hit:1 https://wiki.t-firefly.com/firefly-rk3399-repo bionic InRelease
Hit:2 http://mirrors.aliyun.com/ubuntu-ports bionic InRelease
Get:3 http://mirrors.aliyun.com/ubuntu-ports bionic-updates InRelease [102 kB]
Hit:4 http://mirrors.aliyun.com/ubuntu-ports bionic-backports InRelease
Hit:5 http://mirrors.aliyun.com/ubuntu-ports bionic-security InRelease
Get:6 http://mirrors.aliyun.com/ubuntu-ports bionic-updates/main armhf Packages [1438 kB]
Fetched 1540 kB in 19s (82.4 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
408 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Download is performed unsandboxed as root as file '/var/lib/apt/lists/partial/mirrors.aliyun.com_ubuntu-ports_dists_bionic_InRelease' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
root@xxxxx:~# 

解决方法:

root@xxxxxx:~# sudo rm -rf /var/lib/apt/lists/*
root@xxxxxx:~# sudo apt update
Get:1 http://mirrors.aliyun.com/ubuntu-ports bionic InRelease [242 kB]
Get:2 https://wiki.t-firefly.com/firefly-rk3399-repo bionic InRelease [2585 B]
Get:3 https://wiki.t-firefly.com/firefly-rk3399-repo bionic/main armhf Packages [55.4 kB]
Get:4 http://mirrors.aliyun.com/ubuntu-ports bionic-updates InRelease [102 kB]
Get:5 http://mirrors.aliyun.com/ubuntu-ports bionic-backports InRelease [102 kB]
Get:6 http://mirrors.aliyun.com/ubuntu-ports bionic-security InRelease [102 kB]
Get:7 http://mirrors.aliyun.com/ubuntu-ports bionic/main armhf Packages [968 kB]
Get:8 http://mirrors.aliyun.com/ubuntu-ports bionic/main Translation-en [516 kB]
Get:9 http://mirrors.aliyun.com/ubuntu-ports bionic/restricted armhf Packages [8360 B]
Get:10 http://mirrors.aliyun.com/ubuntu-ports bionic/restricted Translation-en [3584 B]
Get:11 http://mirrors.aliyun.com/ubuntu-ports bionic/universe armhf Packages [8269 kB]
Get:12 http://mirrors.aliyun.com/ubuntu-ports bionic/universe Translation-en [4941 kB]
Get:13 http://mirrors.aliyun.com/ubuntu-ports bionic/multiverse armhf Packages [129 kB]
Get:14 http://mirrors.aliyun.com/ubuntu-ports bionic/multiverse Translation-en [108 kB]
Get:15 http://mirrors.aliyun.com/ubuntu-ports bionic-updates/main armhf Packages [1438 kB]
Get:16 http://mirrors.aliyun.com/ubuntu-ports bionic-updates/main Translation-en [554 kB]
Get:17 http://mirrors.aliyun.com/ubuntu-ports bionic-updates/restricted armhf Packages [13.4 kB]
Get:18 http://mirrors.aliyun.com/ubuntu-ports bionic-updates/restricted Translation-en [187 kB]
Get:19 http://mirrors.aliyun.com/ubuntu-ports bionic-updates/universe armhf Packages [1626 kB]
Get:20 http://mirrors.aliyun.com/ubuntu-ports bionic-updates/universe Translation-en [421 kB]
Get:21 http://mirrors.aliyun.com/ubuntu-ports bionic-updates/multiverse armhf Packages [6200 B]
Get:22 http://mirrors.aliyun.com/ubuntu-ports bionic-updates/multiverse Translation-en [6088 B]
Get:23 http://mirrors.aliyun.com/ubuntu-ports bionic-backports/main armhf Packages [53.2 kB]
Get:24 http://mirrors.aliyun.com/ubuntu-ports bionic-backports/main Translation-en [14.6 kB]
Get:25 http://mirrors.aliyun.com/ubuntu-ports bionic-backports/universe armhf Packages [17.7 kB]
Get:26 http://mirrors.aliyun.com/ubuntu-ports bionic-backports/universe Translation-en [8668 B]
Get:27 http://mirrors.aliyun.com/ubuntu-ports bionic-security/main armhf Packages [1162 kB]
Get:28 http://mirrors.aliyun.com/ubuntu-ports bionic-security/main Translation-en [467 kB]
Get:29 http://mirrors.aliyun.com/ubuntu-ports bionic-security/restricted armhf Packages [9576 B]
Get:30 http://mirrors.aliyun.com/ubuntu-ports bionic-security/restricted Translation-en [182 kB]
Get:31 http://mirrors.aliyun.com/ubuntu-ports bionic-security/universe armhf Packages [1091 kB]
Get:32 http://mirrors.aliyun.com/ubuntu-ports bionic-security/universe Translation-en [308 kB]
Get:33 http://mirrors.aliyun.com/ubuntu-ports bionic-security/multiverse armhf Packages [2672 B]
Get:34 http://mirrors.aliyun.com/ubuntu-ports bionic-security/multiverse Translation-en [3928 B]
Fetched 23.1 MB in 3min 14s (119 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
408 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@xxxxxx:~# 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值