How to solve error slapt-get incomplete download

I use Slackware Linux as the main operating system. Today I wanna upgrade some softwares installed on my system like Mozilla Firefox, Thunderbird and etc. Currently the firefox version installed in my system is version 3.0.8. The latest version of firefox is 3.5 so I wanna upgrade it and other softwares too. To update/upgrade Slackware I use ‘slapt-get’, an apt-get like tool to upgrade software in debian families.

The ‘slapt-get -u’ for updating the list of available upgraded softwares is fine but while executing the ‘slapt-get –upgrade’ to upgrade the available softwares was failed with an error message “Failed to download: Incomplete download”. Retrying the same way three times still got the same result.

Here are how to fix this issue.
Basically this issue can be solved by reinstalling the slapt-get tool with the newest one.

So we have to remove the installaed slapt-get first.

$ sudo removepkg slapt-get
$ sudo rm -rf /etc/slapt-get

Then download the latest slapt-get tool here and install it.

$ sudo installpkg sources/slapt-get-0.10.1c-i386-1.tgz
Installing package slapt-get-0.10.1c-i386-1...
PACKAGE DESCRIPTION:
slapt-get: slapt-get (an apt-like front-end to Slackware's pkgtools)
slapt-get: slapt-get is an apt like system for Slackware package management.
slapt-get:
slapt-get:  * See /usr/doc/slapt-get-0.10.1c/ for complete documentation.
slapt-get:  * You will also want to customize /etc/slapt-get/slapt-getrc,
slapt-get:    using a local mirror.  www.slackware.com may be very busy.
slapt-get:  * Support:
slapt-get:    http://software.jaos.org/cgi-bin/mailman/listinfo/slapt-get-user
slapt-get:  * Please translate
slapt-get:    http://software.jaos.org/BUILD/slapt-get/po/slapt-get.pot
slapt-get:    then send to slapt-get-devel@software.jaos.org
Executing install script for slapt-get-0.10.1c-i386-1...

Run the ‘slapt-get -u’ and ‘slapt-get –upgrade’ again.

$ sudo slapt-get --upgrade
Reading Package Lists... Done
The following packages have been EXCLUDED:
  udev
The following packages will be upgraded:
  apr apr-util bind cups curl cyrus-sasl dhcp fetchmail ghostscript gnutls
  libpng mozilla-firefox mozilla-thunderbird ntp pidgin ruby samba subversion
  xpdf
19 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 93.7MB/93.9MB of archives.
After unpacking 10.0MB of additional disk space will be used.
Do you want to continue? [y/N] y
2/19 Get ftp://ftp.slackware.com/pub/slackware/slackware-12.2/ apr-util 1.3.9-i486-1_slack12.2 [136.0kB]...Done
3/19 Get ftp://ftp.slackware.com/pub/slackware/slackware-12.2/ bind 9.4.3_P3-i486-1_slack12.2 [1.9MB]...^C8%
bash-3.1$ sudo slapt-get --upgrade
Reading Package Lists... Done
The following packages have been EXCLUDED:
  udev
The following packages will be upgraded:
  apr apr-util bind cups curl cyrus-sasl dhcp fetchmail ghostscript gnutls
  libpng mozilla-firefox mozilla-thunderbird ntp pidgin ruby samba subversion
  xpdf
19 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 93.2MB/93.9MB of archives.
After unpacking 10.0MB of additional disk space will be used.
Do you want to continue? [y/N] y

Type ‘y’ to continue to the upgrade process.
You should see that the upgrade is now running properly without error as before.