这指导推荐使用 Gufw 防火墙 GUI。我通过安装它apt
gufw/oldstable,oldstable,now 12.10.0-1 all [installed]
graphical user interface for ufw
键入 ẁindow 键 + gufw,我看不到该应用程序。仅通过终端进行访问是gufw
不够的。我在想为什么会这样+如何解决这个问题,因为我在 Linux 中系统地使用的防火墙太少了。
安装并测试已安装的软件包
研究包
masi@masi:$ apt search gufw
Sorting... Done Full Text Search... Done gufw/oldstable,oldstable,now 12.10.0-1 all [installed] graphical user interface for ufw
按方法安装
apt install gufw
apt show -a gufw
我正在考虑两个软件包(17.04 和 12.10)的输出,因此我的系统中存在冲突 - 由于某种原因gufw
,终端中启动了 gufw 12.10Package: gufw Source: gui-ufw Version: 17.04.1-1.1 Installed-Size: 3,376 kB Maintainer: Python Applications Packaging Team <[email protected]> Depends: python3:any (>= 3.3.2-2~), ufw (>= 0.34~rc), gir1.2-gtk-3.0, policykit-1, gir1.2-webkit2-4.0, python3-gi, net-tools Homepage: http://gufw.org/ Tag: admin::configuring, implemented-in::python, interface::graphical, interface::x11, network::firewall, role::program, scope::utility, security::firewall, uitoolkit::gtk, use::configuring, x11::application Section: admin Priority: optional Download-Size: 842 kB APT-Sources: http://ftp.fr.debian.org/debian/ unstable/main amd64 Packages Package: gufw Source: gui-ufw Version: 12.10.0-1 Installed-Size: 1,328 kB Maintainer: Devid Antonio Filoni <[email protected]> Depends: python (>= 2.6.6-7~), ufw (>= 0.31.1), gir1.2-gtk-3.0, gir1.2-polkit-1.0, notify-osd | notification-daemon, policykit-1, python-dbus, python-gobject, gnome-icon-theme-symbolic Homepage: https://launchpad.net/gui-ufw Tag: admin::configuring, implemented-in::python, interface::x11, network::firewall, role::program, scope::utility, security::firewall, uitoolkit::gtk, use::configuring, x11::application Section: admin Priority: optional Download-Size: 261 kB APT-Manual-Installed: yes APT-Sources: http://ftp.fi.debian.org/debian/ jessie/main amd64 Packages
输出
apt-cache policy gufw
gufw: Installed: 12.10.0-1 Candidate: 12.10.0-1 Version table: 17.04.1-1.1 0 200 http://ftp.fr.debian.org/debian/ unstable/main amd64 Packages *** 12.10.0-1 0 500 http://ftp.fi.debian.org/debian/ jessie/main amd64 Packages 500 http://httpredir.debian.org/debian/ jessie/main amd64 Packages 100 /var/lib/dpkg/status
输出
dpkg -l gufw
Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-===============================-====================-====================-==================================================================== ii gufw 12.10.0-1 all graphical user interface for ufw
我执行以下操作并得到sudo apt -t unstable install gufw
[sudo] password for masi:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
gsettings-desktop-schemas : Breaks: gnome-settings-daemon (< 3.19.92) but 3.14.2-3+deb8u1 is to be installed
Breaks: mutter (< 3.19.92) but 3.14.4-1~deb8u1 is to be installed
gstreamer1.0-plugins-base : Breaks: gstreamer1.0-plugins-bad (< 1.11.90) but 1.4.4-2.1+deb8u2 is to be installed
libgstreamer-plugins-base1.0-0 : Breaks: gstreamer1.0-plugins-bad (< 1.7.1) but 1.4.4-2.1+deb8u2 is to be installed
libgstreamer1.0-0 : Breaks: gstreamer1.0-plugins-bad (< 1.11.1) but 1.4.4-2.1+deb8u2 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
操作系统:Debian 8.7
相关错误:gufw:桌面条目不显示在桌面环境中
答案1
Debian Stretch 于几周前发布。将整个系统升级到这似乎是解决您的难题的最简单的解决方案。
错误Debian Stretch 中的版本已修复,而旧的稳定版本 Jessie 仍停留在近五年前的版本上。