/etc/ufw/applications.d has wrong syntax

Bug #618410 reported by Christian González on 2010-08-15
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ufw (Ubuntu)

Bug Description

Binary package hint: ufw

during the upgrade of ufw dpkg shows the following error:

dpkg: Version »/etc/ufw/applications.d« hat falsche Syntax: ungültiges Zeichen in Versionsnummer

so this should mean (in English): that the file applications.d has a wrong syntax (invalid character in version number)

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: ufw 0.30pre1-0ubuntu2
ProcVersionSignature: Ubuntu 2.6.35-14.19-generic 2.6.35
Uname: Linux 2.6.35-14-generic i686
Architecture: i386
Date: Sun Aug 15 23:48:35 2010
InstallationMedia: Ubuntu-Netbook 10.10 "Maverick Meerkat" - Alpha i386 (20100803.1)
PackageArchitecture: all
SourcePackage: ufw

Related branches

Christian González (droetker) wrote :
summary: - /etc/ufw/applications.d has wrong syntax:
+ /etc/ufw/applications.d has wrong syntax
Jamie Strandboge (jdstrand) wrote :

Marking confirmed as I have seen this myself. I am not sure what is causing this as the version of ufw is the same in both Lucid and Maverick, and afaik lucid is not affected by this. Any help is appreciated.

Changed in ufw (Ubuntu):
status: New → Confirmed
Christian González (droetker) wrote :

Hm, could it be that the script tries to open "/etc/ufw/applications.d" as a file while it is a directory?
reinstalling ith with apt-get install --reinstall does NOT show the error again.

Jamie Strandboge (jdstrand) wrote :

This is caused by this line in /var/lib/dpkg/info/ufw.config:
if dpkg --compare-versions "$2" lt 0.28-1 ; then

Apparently something changed between in dpkg between maverick and lucid and the 'config' file is being passed different arguments.

Changed in ufw (Ubuntu):
status: Confirmed → In Progress
Changed in ufw (Ubuntu):
status: In Progress → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ufw - 0.30.0-1ubuntu1

ufw (0.30.0-1ubuntu1) maverick; urgency=low

  * src/frontend.py: display unicode error messages properly. Thanks to
    Serguey Basalaev.
    - upstream commit r700
    - LP: #580032
  * src/backend_iptables.py: fix gettext warning
    - upstream commit r701
  * run debconf-updatepo, but adjust debian/po/de.po and debian/po/es.po to
    add correct "Language:" tag
  * profiles/ufw-mailserver: remove Postfix specific language
    - upstream commit r705

ufw (0.30.0-1) unstable; urgency=low

  * New upstream release. Use 0.30.0 as the version even though upstream uses
    0.30 in order to sync to Ubuntu. Fixes:
    - LP: #568877
    - LP: #611982
    - LP: #606997
    - LP: #624199
    - LP: #625340
    - LP: #521359
    - LP: #436608
  * don't flush chains if ufw is not enabled (LP: #581744)
  * debian/postinst: don't source /usr/share/debconf/confmodule when $1 =
    triggered. Fix thanks to Colin Watson. (LP: #618410)
  * debian/control:
    - drop versioned depends on iptables. This helps with backporting now that
      the test suite can handle it
    - updated Standards-Version
  * debian/rules:
    - pass interpreter to run_tests.sh
    - don't install upstream application profiles for now
  * add rsyslog support
  * add debian/source/format
  * debian/before6.rules.md5sum: updated for ucf
 -- Jamie Strandboge <email address hidden> Mon, 30 Aug 2010 13:20:58 -0500

Changed in ufw (Ubuntu):
status: Fix Committed → Fix Released
zebrattt (zebrat) wrote :

what's the fix for this problem? I'd like to try your fix for my problem. thanks.

I got an error "dpkg: version 'uname -r' has bad syntax: version string has embedded spaces

when I tried to uninstall bootchart in ubuntu 10.10.

I found /var/lib/dpkg/info/bootchart.preinst has a similar line

if dpkg --compare-versions "$2" lt "0.90.2-1"; then

Jamie Strandboge (jdstrand) wrote :

zebratt, from the changelog:
  * debian/postinst: don't source /usr/share/debconf/confmodule when $1 =
    triggered. Fix thanks to Colin Watson. (LP: #618410)

Looking at debian/postinst, ufw now has:
# Only source /usr/share/debconf/confmodule when not called with 'triggered'
# to avoid LP: #618410.
if [ "$1" != "triggered" ]; then
    . /usr/share/debconf/confmodule

zebrattt (zebrat) wrote :

Thanks, Jamie.

I finally figured out a solution for my problen,=, although I still think the bug is still there, likely in bootchart. for some reason, `uname -r` may be written or executed as 'uname -r'.

the solution is delete the following garbage, then execute reinstall bootchart.

sudo rm /boot/initrd.img-uname
sudo rm /boot/initrd.img-uname -r
sudo rm /var/lib/initramfs-tools/uname
sudo rm /var/lib/initramfs-tools/uname -r
then, reinstall bootchart and pybootchartgui

at least, my apt-get works normal now.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers