reinstall synaptic manager

Asked by criz

i mess up with synaptic i accidentally remove synaptic. now i try to re-install with this command. i get this message from terminal.
im using ubuntu 7.04 upgraded from 6.10. want to installl synaptic again to make my system up to date tnx...

root@xx:~$ sudo apt-get upgrade

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  apt libkrb53 librpcsecgss3
3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B/1919kB of archives.
After unpacking 111kB of additional disk space will be used.
Do you want to continue [Y/n]?
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 153398 files and directories currently installed.)
Preparing to replace apt 0.6.45ubuntu14 (using .../apt_0.6.46.4ubuntu10_i386.deb) ...
Unpacking replacement apt ...
dpkg: error processing /var/cache/apt/archives/apt_0.6.46.4ubuntu10_i386.deb (--unpack):
 unable to install (supposed) new info file `/var/lib/dpkg/tmp.ci/preinst': Is a directory
Errors were encountered while processing:
 /var/cache/apt/archives/apt_0.6.46.4ubuntu10_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alli (alzeih) said :
#1

start by "sudo apt-get install synaptic" this should install synaptic package manager for you.

For the update: try installing apt-utils first "sudo apt-get install apt-utils"
or "sudo apt-get install apt" possibly with a " --fix-missing" appended to that command

Essentially don't use "upgrade" at the moment as you have broken packages, and apt refuses to do much for anything related to them.

post back any error messages and what actions caused them

Revision history for this message
Bhavani Shankar (bhavi) said :
#2

yes... also try sudo dpkg --configure -a.

Can you help with this problem?

Provide an answer of your own, or ask criz for more information if necessary.

To post a message you must log in.