synaptic error: unable to open files: mktemp

Asked by benzene

The following error worries me. mktemp is important. What does this mean, and how do I fix it? This is the first time I've seen an error from synaptic.

From synaptic, I tried to install kpovmodeler. I got the following:

E: /var/cache/apt/archives/kpovmodeler_4%3a3.5.8-0ubuntu1_i386.deb: unable to open files list file for package `mktemp'

In the details:

(Reading database ... dpkg: error processing /var/cache/apt/archives/kpovmodeler_4%3a3.5.8-0ubuntu1_i386.deb (--unpack):
unable to open files list file for package `mktemp': Input/output error
Errors were encountered while processing:
/var/cache/apt/archives/kpovmodeler_4%3a3.5.8-0ubuntu1_i386.deb
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:

<no further text>

My installation:

uname -a:
Linux black-host 2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25 UTC 2008 i686 GNU/Linux

cat /etc/issue:
Ubuntu 7.10 \n \l

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Theodotos Andreou
Solved:
Last query:
Last reply:
Revision history for this message
Theodotos Andreou (theodotos) said :
#1

Try install it manually using the command line tools:

"sudo apt-get install kpovmodeler" or

"sudo aptitude install kpovmodeler"

If you get any errors post them here.

Revision history for this message
benzene (6p2dex902) said :
#2

Thanks for the response. Here's what happens:

$ sudo apt-get install kpovmodeler
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  khelpcenter povray
The following NEW packages will be installed:
  kpovmodeler
0 upgraded, 1 newly installed, 0 to remove and 51 not upgraded.
Need to get 0B/2252kB of archives.
After unpacking 6578kB of additional disk space will be used.
(Reading database ... dpkg: error processing /var/cache/apt/archives/kpovmodeler_4%3a3.5.8-0ubuntu1_i386.deb (--unpack):
 unable to open files list file for package `mktemp': Input/output error
Errors were encountered while processing:
 /var/cache/apt/archives/kpovmodeler_4%3a3.5.8-0ubuntu1_i386.deb
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
:~$

Revision history for this message
benzene (6p2dex902) said :
#3

New information: Both synaptic and command line apt-get are failing on _all_ attempts to install _any_ new file. Cannot install updates. Same mktemp error in all cases.

Revision history for this message
Theodotos Andreou (theodotos) said :
#4

Are you behind a proxy? If yes you will need to configure it correctly for apt to work.

Edit "/etc/envionment" ans append the lines:
http_proxy=http://proxy.yourdomain.dom:<port>
ftp_proxy=http://proxy.yourdomain.dom:<port>

Revision history for this message
benzene (6p2dex902) said :
#5

No, not behind a proxy.

A major clue: mktemp.list was missing from /var/lib/dpkg/info/ In fact, mktemp.md5sums was the only mktemp* present. An attempt to cp a backup mktemp.list into that directory failed. Further inspection showed other files in that directory with only *.md5sums and no other variants, in particular no *.list files. There were question marks in all columns except the filename, for many files in that directory.

I forced an fsck on the partition containing /var/lib/dpkg/info/ , and it failed in automatic. I ran a manual fsck and found about 150 errors. An intensive search of the logs found no evidence of any hard disk failures, so this is probably caused somehow by software.

After the manual fsck, I was able to copy a replacement mktemp.list in the /var/lib/dpkg/info/ directory. Then the "apt-get install kpovmodeler" got past the mktemp error, and issued an error about module-init-tools:

After unpacking 6578kB of additional disk space will be used.
(Reading database ... dpkg: error processing /var/cache/apt/archives/kpovmodeler_4%3a3.5.8-0ubuntu1_i386.deb (--unpack):
 files list file for package `module-init-tools' contains empty filename
Errors were encountered while processing:
 /var/cache/apt/archives/kpovmodeler_4%3a3.5.8-0ubuntu1_i386.deb
Processing was halted because there were too many errors.

I'm at the point now where I think I'll just "punt," blow away Gutsy and do a fresh install of Hardy. Hate to give up, but it looks like one of those endless problems you can sometimes chase.

If anybody has an idea, I don't plan to do the new install until around 9:00 am (UDT -5.0), so holler.

Thanks.

Revision history for this message
Best Theodotos Andreou (theodotos) said :
#6

You system looks seriously broken. I think a fresh install is a good idea

Revision history for this message
benzene (6p2dex902) said :
#7

Thanks Theodotos Andreou, that solved my question.