apt-get update 正在运行,但仍然无法在 Kali 中使用 add-apt-repository 添加存储库

apt-get update 正在运行,但仍然无法在 Kali 中使用 add-apt-repository 添加存储库

我试图安装 Grub 定制器,所以我输入

sudo add-apt-repository ppa:danielrichter2007/grub-customizer

输出是

sudo: add-apt-repository: command not found

然后我进入(试图解决这个问题)

apt-get install python-software-properties

输出:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package python-software-properties is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python-software-properties' has no installation candidate

然后我运行(以修复之前的错误)

sudo apt-get install software-properties-common

输出:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package software-properties-common

最后,我输入

sudo apt-get update

并得到:

Reading package lists... Done

我不知道如何解决这个问题。任何帮助将非常感激。谢谢

答案1

PPA 适用于 Ubuntu 及其衍生产品,不适用于 Kali。正如 Grub 定制器文档所示,您应该从源代码构建它

答案2

要安装 grub 定制程序,请运行以下命令:

apt-get install build-essential cmake libgtkmm-3.0-dev libssl-dev gettext libarchive-dev 
wget https://goo.gl/qQnUhK -O grub-customizer_4.0.6.tar.gz 
tar xfv grub-customi* 
cd grub-customi* 
cmake . && make -j3 
make install

相关内容