aptitude shows error at preinst about innexistent file

Bug #516160 reported by Hilario J. Montoliu (hjmf)
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
denyhosts (Debian)
Fix Released
Unknown
denyhosts (Ubuntu)
Fix Released
Medium
Brian Murray

Bug Description

Binary package hint: denyhosts

In lucid alpha2 when installing denyhosts on a fresh system aptitude (or apt-get) shows an error form the preinst script:

/var/lib/dpkg/tmp.ci/preinst: 10: cannot open /var/lib/dpkg/info/denyhosts.postrm: No such file

That line is odd and IMHO can be easily avoided.

full output:

root@ubuntu-lucid-alpha2:~# aptitude -y install denyhosts
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following NEW packages will be installed:
  denyhosts
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 66.0kB of archives. After unpacking 442kB will be used.
Writing extended state information... Done
Get:1 http://es.archive.ubuntu.com lucid/universe denyhosts 2.6-6.1 [66.0kB]
Fetched 66.0kB in 0s (139kB/s)
Selecting previously deselected package denyhosts.
(Reading database ... 43531 files and directories currently installed.)
Unpacking denyhosts (from .../denyhosts_2.6-6.1_all.deb) ...
/var/lib/dpkg/tmp.ci/preinst: 10: cannot open /var/lib/dpkg/info/denyhosts.postrm: No such file
Processing triggers for ureadahead ...
Setting up denyhosts (2.6-6.1) ...
 * Starting DenyHosts denyhosts [ OK ]

Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done

About the installation:

root@ubuntu-lucid-alpha2:~# cat /tmp/apport.denyhosts.VIFbAF.apport
ProblemType: Bug
Architecture: i386
Date: Tue Feb 2 18:06:52 2010
Dependencies:
 coreutils 7.4-2ubuntu1
 debconf 1.5.28ubuntu1
 debconf-i18n 1.5.28ubuntu1
 dpkg 1.15.4.1ubuntu1
 findutils 4.4.2-1
 gcc-4.4-base 4.4.3-2ubuntu1
 libacl1 2.2.49-1
 libattr1 1:2.4.44-1
 libbz2-1.0 1.0.5-3ubuntu1
 libc-bin 2.11.1-0ubuntu2
 libc6 2.11.1-0ubuntu2
 libdb4.7 4.7.25-8ubuntu1
 libgcc1 1:4.4.3-2ubuntu1
 liblocale-gettext-perl 1.05-6
 libncurses5 5.7+20090803-2ubuntu2
 libncursesw5 5.7+20090803-2ubuntu2
 libreadline6 6.1-1
 libselinux1 2.0.89-4
 libsqlite3-0 3.6.21-2
 libssl0.9.8 0.9.8k-7ubuntu5
 libstdc++6 4.4.3-2ubuntu1
 libtext-charwidth-perl 0.04-6
 libtext-iconv-perl 1.7-2
 libtext-wrapi18n-perl 0.06-7
 lsb-base 4.0-0ubuntu7
 lzma 4.43-14ubuntu1
 mime-support 3.48-1ubuntu1
 ncurses-bin 5.7+20090803-2ubuntu2
 perl-base 5.10.1-8ubuntu1
 python 2.6.4-0ubuntu2
 python-central 0.6.11ubuntu11
 python-minimal 2.6.4-0ubuntu2
 python2.6 2.6.4-5ubuntu1
 python2.6-minimal 2.6.4-5ubuntu1
 readline-common 6.1-1
 sed 4.2.1-6
 tzdata 2010b-1
 zlib1g 1:1.2.3.3.dfsg-15ubuntu1
DistroRelease: Ubuntu 10.04
InstallationMedia: Ubuntu-Server 10.04 "Lucid Lynx" - Alpha i386 (20100114)
Package: denyhosts 2.6-6.1
PackageArchitecture: all
ProcEnviron:
 LANG=es_ES.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-12.16-generic-pae
SourcePackage: denyhosts
Tags: lucid
Uname: Linux 2.6.32-12-generic-pae i686

Tags: patch

Related branches

Revision history for this message
Hilario J. Montoliu (hjmf) (hmontoliu) wrote :
Revision history for this message
Hilario J. Montoliu (hjmf) (hmontoliu) wrote :
tags: added: patch
Revision history for this message
Brian Murray (brian-murray) wrote :

Thanks for your patch and your merge request! I have a couple of comments. The package version should be 2.6-6.1ubuntu1. Using dch -i should have probably incremented the changelog. Additionally, the correct format for closing Launchpad bug reports is LP: #516160 while Closes: # is for Debian bug reports.

Revision history for this message
Brian Murray (brian-murray) wrote :

Actually its a bit more than that but I'm sorting it out.

Changed in denyhosts (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Brian Murray (brian-murray)
Revision history for this message
Hilario J. Montoliu (hjmf) (hmontoliu) wrote : Re: [Bug 516160] Re: aptitude shows error at preinst about innexistent file

Brian Murray escribió:
> Thanks for your patch and your merge request! I have a couple of
> comments. The package version should be 2.6-6.1ubuntu1. Using dch -i
> should have probably incremented the changelog. Additionally, the
> correct format for closing Launchpad bug reports is LP: #516160 while
> Closes: # is for Debian bug reports.
>

Thanks Brian

Good to know; where can I find the best practices for patching in Ubuntu?

I do some work from time to time and it seems that things change a lot
in the meanwhile

TIA

Revision history for this message
Brian Murray (brian-murray) wrote :

I refer to https://wiki.ubuntu.com/PackagingGuide/Complete on a regular basis. Its not easy to read through all of it but it is a handy reference.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package denyhosts - 2.6-6.1ubuntu1

---------------
denyhosts (2.6-6.1ubuntu1) lucid; urgency=low

  * Check for file before using it during preinst. Thanks to Hilario Montoliu
    (LP: #516160, Closes: #569257)
 -- Brian Murray <email address hidden> Wed, 10 Feb 2010 16:41:44 -0800

Changed in denyhosts (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Hilario J. Montoliu (hjmf) (hmontoliu) wrote :

Brian Murray escribió:
> I refer to https://wiki.ubuntu.com/PackagingGuide/Complete on a regular
> basis. Its not easy to read through all of it but it is a handy
> reference.
>

Thanks for the link

Changed in denyhosts (Debian):
status: Unknown → New
Changed in denyhosts (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.