我是 Ubuntu 新手,为了尝试它,我从 Microsoft 商店安装了 Ubuntu 应用程序并在我的 Windows 10 笔记本电脑上运行它,我尝试启用 UFW,但出现了以下问题:
:~$ sudo ufw enable
ERROR: problem running ufw-init
iptables-restore v1.8.4 (legacy): iptables-restore: unable to initialize table 'filter'
Error occurred at line: 1
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore v1.8.4 (legacy): iptables-restore: unable to initialize table 'filter'
Error occurred at line: 1
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore v1.8.4 (legacy): iptables-restore: unable to initialize table 'filter'
Error occurred at line: 1
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore v1.8.4 (legacy): iptables-restore: unable to initialize table 'filter'
Error occurred at line: 1
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore v1.8.4 (legacy): iptables-restore: unable to initialize table 'filter'
Error occurred at line: 1
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore v1.8.4 (legacy): iptables-restore: unable to initialize table 'filter'
Error occurred at line: 12
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore v1.8.4 (legacy): iptables-restore: unable to initialize table 'filter'
Error occurred at line: 12
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore v1.8.4 (legacy): iptables-restore: unable to initialize table 'filter'
Error occurred at line: 1
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore v1.8.4 (legacy): iptables-restore: unable to initialize table 'filter'
Error occurred at line: 1
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore v1.8.4 (legacy): iptables-restore: unable to initialize table 'filter'
Error occurred at line: 1
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
Problem loading ipv6 (skipping)
Problem running '/etc/ufw/before.rules'
Problem running '/etc/ufw/after.rules'
Problem running '/etc/ufw/user.rules'
因为我对此很陌生,我对 iptables、过滤器和初始化一无所知,或者只是因为它在我的 Windows 笔记本电脑上。我已经使用以下软件更新和升级了所有内容;
sudo apt-get update
sudo apt-get upgrade
并在 root 状态下尝试了该命令,但没有成功。如果您需要任何信息,我很乐意提供给您。提前致谢。
答案1
只需下载最新的 Ubuntu 版本(https://ubuntu.com/download/desktop) 并将其安装在可启动的 U 盘或 USB 上。只需使用此 U 盘启动,然后选择“试用”或“安装”。按照说明操作。通过“试用”,您可以了解是否需要此系统。如果是,您可以使用相同的安装 U 盘在双启动中安装它。做出选择。但在安装之前,请在硬盘上创建单独的分区。