我尝试这样做sudo apt-get upgrade
,结果它要求我提供额外的空间,正如我在搜索中发现的那样在此处输入图片描述命令提出问题,即
使用此方法,您可以重新路由存储 .debs 的位置:
sudo mv -i /var/cache/apt /media/{dir_of_mounted_disc} sudo ln -s /media/{dir_of_mounted_disc}/apt /var/cache/apt
运行升级并安装。完成后,你可以使用以下命令恢复正常:
sudo apt-get clean sudo unlink /var/cache/apt sudo mv /media/{dir_of_mounted_disc}/apt /var/cache
当然,{dir_of_mounted_disc} 需要更改为您挂载的磁盘的名称。
现在我正在尝试这样做sudo apt-get upgrade
,但出现了这个错误:
─$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
libmpdec3 libnginx-mod-http-geoip libnginx-mod-http-image-filter
libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream
libnginx-mod-stream-geoip libpython3.10 libpython3.10-dev libpython3.10-minimal
libpython3.10-stdlib nginx-common nginx-core python3-speaklater python3.10
python3.10-dev python3.10-minimal
Use 'sudo apt autoremove' to remove them.
E: Archives directory /var/cache/apt/archives/partial is missing. - Acquire (2: No such file or directory)
我该如何解决这个错误?
答案1
错误信息只是说/var/cache/apt/archives/partial
缺少目录
您只需在终端中执行以下操作即可:
sudo mkdir -p /var/cache/apt/archives/partial
更新你的包裹清单
sudo apt-get update
然后你升级
sudo apt-get upgrade