答案1
该命令从和apt-get update
读取。它会更新存储库缓存,以便您的计算机知道这些存储库中可以使用哪些包。/etc/apt/sources.list
/etc/apt/sources.list.d/
要删除任何这些存储库,您需要从其中删除它们,/etc/apt/sources.list
或者也可以在/etc/apt/sources.list.d/
.再次运行检查它们是否被删除apt-get update
。
答案2
您可以按如下方式编辑您的sources.list(raspbian Buster):
删除下面的所有内容/etc/apt/sources.list.d/
然后创建raspi.list
:
sudo rm -rf /etc/apt/sources.list.d/*
创造raspi.list
:
printf "%s\n" "deb http://archive.raspberrypi.org/debian/ buster main" |\
sudo tee /etc/apt/sources.list.d/raspi.list
/etc/apt/sources.list
使用以下命令编辑您的:
printf "%s\n" "deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi" |\
sudo tee /etc/apt/sources.list
然后运行:
sudo apt update
要安装 OMV,请使用安装脚本:
wget -O - https://raw.githubusercontent.com/OpenMediaVault-Plugin-Developers/installScript/master/install | sudo bash
sudo reboot