Thank you for using Ubuntu and reporting a bug. This is the error in
question:

Preparing to replace ufw 0.30.1-1ubuntu1 (using 
.../ufw_0.30.1-2ubuntu1_all.deb) ...
dpkg-query: error: parsing file '/var/lib/dpkg/status' near line 49307 package 
'libbrasero-media0':
 `Depends' field, reference to `libcanberra0': version contains ` '
Traceback (most recent call last):
  File "/usr/bin/pyclean", line 118, in <module>
    main()
  File "/usr/bin/pyclean", line 102, in main
    pfiles = set(dpf.filter_out_ext(pfiles, ('.so',)))
  File "/usr/share/python/debpython/files.py", line 77, in filter_out_ext
    for fn in files:
  File "/usr/share/python/debpython/namespace.py", line 77, in 
add_namespace_files
    for fn in files:
  File "/usr/share/python/debpython/files.py", line 53, in from_package
    raise Exception("cannot get content of %s" % package_name)
Exception: cannot get content of ufw
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
dpkg: error processing /var/cache/apt/archives/ufw_0.30.1-2ubuntu1_all.deb 
(--unpack):
 subprocess new pre-removal script returned error exit status 1
No apport report written because MaxReports has already been reached
                                                                    dpkg-query: 
error: parsing file '/var/lib/dpkg/status' near line 49307 package 
'libbrasero-media0':
  File "/usr/bin/pycompile", line 290, in <module>
  File "/usr/bin/pycompile", line 263, in main
    options.force, options.optimize, e_patterns)
  File "/usr/bin/pycompile", line 155, in compile
    for fn, versions_to_compile in filter_files(files, e_patterns, versions):
  File "/usr/bin/pycompile", line 110, in filter_files
  File "/usr/share/python/debpython/files.py", line 69, in filter_public
edia0':
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1

There are several areas of concern in this report. You may be experiencing a 
hardware failure (RAM or disk). I suggest rebooting and selecting the memory 
checker (hold the shift key to bring up the grub menu to select it after the 
BIOS posts). If that works, you may want to perform a manual filesystem check 
by doing:
$ sudo touch /forcefsck

then rebooting. You will likely need to perform various manual steps to get 
your package state in order. I would recommend starting with:
$ sudo dpkg --purge --force-depends libbrasero-media0
$ sudo apt-get install -f install
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade
$ sudo apt-get install --install-recommends ubuntu-desktop

If you need further assistance, I suggest asking for help in #ubuntu-
users on Freenode (IRC).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/873723

Title:
  package ufw 0.30.1-1ubuntu1 failed to install/upgrade: ErrorMessage:
  Package is in a very bad inconsistent state - you should  reinstall it
  before attempting configuration.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ufw/+bug/873723/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to