[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Package installation problems with apt-get and dpkg on a Sarge box.



Hi there.

Having a problem with a package installation, and I would appreciate some pointers.

Running Sarge on a HP pc, P4, 256 Mb ram, ide disc etc.

So, in this case, want to install freeswan:

<quote>

The following NEW packages will be installed:
  freeswan
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/1951kB of archives.
After unpacking 5473kB of additional disk space will be used.
Preconfiguring packages ...

</quote>

But, here it stops and hangs for several minutes (didn't feel like waiting anymore so broke it with Ctrl+c.

Edited this file:

-rw-r--r--  1 root root 182 Nov 22 05:51 /etc/apt/apt.conf.d/70debconf

and remarked this line:

# DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt || true";};  

Which took me a step further:

<quote>

The following NEW packages will be installed:
  freeswan
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/1951kB of archives.
After unpacking 5473kB of additional disk space will be used.
(Reading database ... 13604 files and directories currently installed.)
Unpacking freeswan (from .../freeswan_2.04-11.3_i386.deb) ...

</quote>

But then it hangs again. Looking at top when running the above commands I have these two processes:

 2727 root      15   0  7208 7204 1724 S 56.7  1.9   1:50.20 frontend                                                       
 2735 root      15   0  1112 1108  928 R 43.4  0.3   1:20.77 config  

I have tried to apt-get autoclean, apt-get -f install etc, but same thing.

Then I tried to download the package manually from another mirror and ran dpkg -i, but same thing again, 'hangs' with the above two processes taking up too many resources.

Any ideas?

Thanks,

Niklas
----------
Reply to: