当代年轻人驯服野生Debian11的全过程
当代年轻人驯服野生Debian11的全过程
说干就干,直接开冲!!!
以下命令以
root
身份执行
1 |
chmod +w /etc/sudoers |
以下命令以
root
身份执行
1 |
sudo tee /etc/apt/sources.list <<-'EOF' |
报错1
如果kali源提示
E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is
执行如下命令:
1 |
#先安装软件 |
报错2
1 |
install-info: No dir file specified; try --help for more information.dpkg: |
解决方法
root
权限运行:
1 |
# 1.现将info文件夹更名 |
在Ubuntu下,apt-get近乎是最常用的shell命令之一了,因为它是Ubuntu通过新立得安装软件的常用工具命令。
常用的APT命令参数:
1 |
# 搜索软件包 |
报错3
这个是换源问题,我也不太清楚,刚用debian,问题一堆,找到了个解决方法。
1 |
W: http://http.kali.org/kali/dists/kali-rolling/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details. |
解决方法:
1 |
cp /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d |
安装kali-everything
1 |
#下面二选一安装,推荐第一个 |
安装图形化界面
1 |
apt-get install kali-desktop-xfce |