The dpkg messages are not likely to be fixed until the unfortunate
doogieism fd_buffer_copy et al is removed and replaced with something
sensible.

** Also affects: apt (Ubuntu)
   Importance: Undecided
       Status: Unconfirmed

** Summary changed:

- dpkg fails too mysteriously when out of disc space
+ confusing messages when installation fails due to ENOSPC

** Also affects: debconf (Ubuntu)
   Importance: Undecided
       Status: Unconfirmed

** Description changed:

- Instead of clearly stating that there is no more disc space, dpkg failure mode
- is to report the result of that -- namely that the package does not unpack 
properly:
+ There are at least the following bugs here:
  
- [EMAIL PROTECTED]:/home/deepfire # apt-get install hibernate
- Reading package lists... Done
- Building dependency tree       
- Reading state information... Done
- The following packages were automatically installed and are no longer 
required:
-   libmdbtools openoffice.org-math openbsd-inetd libhsqldb-java
-   libservlet2.3-java openoffice.org-base glob2-data
- Use 'apt-get autoremove' to remove them.
- Suggested packages:
-   915resolution xscreensaver kscreensaver gnome-screensaver xlock vlock
- Recommended packages:
-   uswsusp
- The following NEW packages will be installed:
-   hibernate
- 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
- Need to get 86.1kB of archives.
+ 1. apt says:
+   After unpacking 434kB of additional disk space will be used.
+   Get:1 http://ru.archive.ubuntu.com feisty/universe hibernate 1.94-2 [86.1kB]
+   Fetched 86.1kB in 0s (4366kB/s)
+   E: Archive is too short
+   E: Prior errors apply to /var/cache/apt/archives/hibernate_1.94-2_all.deb
+ This message fails to mention the lack of disk space.
  
- After unpacking 434kB of additional disk space will be used.
- Get:1 http://ru.archive.ubuntu.com feisty/universe hibernate 1.94-2 [86.1kB]
- Fetched 86.1kB in 0s (4366kB/s)
- E: Archive is too short
- E: Prior errors apply to /var/cache/apt/archives/hibernate_1.94-2_all.deb
- debconf: apt-extracttemplates failed: Bad file descriptor(Reading database 
... 109935 files and directories currently installed.)
+ 2. debconf: apt-extracttemplates failed: Bad file descriptor(Reading
+ database ... 109935 files and directories currently installed.)
+ 
+ This is a bug in debconf which is probably trying to read from fd -1
+ after failing to notice that open failed.
+ 
+ 3.
  Unpacking hibernate (from .../hibernate_1.94-2_all.deb) ...
  dpkg-deb (subprocess): short read in buffer_copy (failed to write to pipe in 
copy)
  dpkg-deb: subprocess paste returned error exit status 2
  dpkg: error processing /var/cache/apt/archives/hibernate_1.94-2_all.deb 
(--unpack):
   short read in buffer_copy (backend dpkg-deb during 
`./usr/share/hibernate/scriptlets.d/network')
- Errors were encountered while processing:
-  /var/cache/apt/archives/hibernate_1.94-2_all.deb
- E: Sub-process /usr/bin/dpkg returned an error code (1)
+ 
+ This is a very opaque way of saying "this .deb is corrupted -
+ specifically, it is truncated".

** Changed in: dpkg (Ubuntu)
       Status: Unconfirmed => Confirmed

** Changed in: dpkg (Ubuntu)
   Importance: Undecided => Wishlist

-- 
confusing messages when installation fails due to ENOSPC
https://bugs.launchpad.net/bugs/108837
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

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

Reply via email to