pessoal, esses dias andei mexendo com ppython instlando e desinstalando alguns pacotes e agora o gufw não abre, como devo proceder?
$ sudo gufw
Traceback (most recent call last):
File "/usr/share/gufw/gufw/gufw.py", line 19, in <module>
from controller import Controller
File "/usr/share/gufw/gufw/controller.py", line 18, in <module>
from model.frontend import Frontend
File "/usr/share/gufw/gufw/model/frontend.py", line 18, in <module>
from firewall import Firewall
ImportError: No module named 'firewall'
$ sudo apt-get remove gufw
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-3.13.0-33 linux-headers-3.13.0-33-generic
linux-image-3.13.0-33-generic linux-image-extra-3.13.0-33-generic
python-netifaces
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
gufw
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 2.545 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 340120 files and directories currently installed.)
Removing gufw (14.04.2-0ubuntu1.1) ...
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
dpkg: error processing package gufw (--remove):
subprocess installed pre-removal script returned error exit status 1
Traceback (most recent call last):
File "/usr/bin/pycompile", line 35, in <module>
from debpython.version import SUPPORTED, debsorted, vrepr, \
File "/usr/share/python/debpython/version.py", line 24, in <module>
from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
gufw
E: Sub-process /usr/bin/dpkg returned an error code (1)
$ sudo apt-get install gufw
Reading package lists... Done
Building dependency tree
Reading state information... Done
gufw is already the newest version.
The following packages were automatically installed and are no longer required:
linux-headers-3.13.0-33 linux-headers-3.13.0-33-generic
linux-image-3.13.0-33-generic linux-image-extra-3.13.0-33-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up gufw (14.04.2-0ubuntu1.1) ...
Traceback (most recent call last):
File "/usr/bin/pycompile", line 35, in <module>
from debpython.version import SUPPORTED, debsorted, vrepr, \
File "/usr/share/python/debpython/version.py", line 24, in <module>
from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error processing package gufw (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
gufw
E: Sub-process /usr/bin/dpkg returned an error code (1)