Removing iscan-plugin-gt-s600 ... --> failed with error: /var/lib/dpkg/info/iscan-plugin-gt-s600.prerm: 6: iscan-registry: not found

Asked by dewiq

whenever i try to run synaptic or click the update icon i get this :
E: The package iscan-plugin-gt-s600 needs to be reinstalled, but I can't find an archive for it.
E: Internal error opening cache (1). Please report.
I tried running : $ sudo apt-get remove iscan-plugin-gt-s600
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package iscan-plugin-gt-s600 needs to be reinstalled, but I can't find an archive for it

Thank's for your help

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu synaptic Edit question
Assignee:
No assignee Edit question
Solved by:
dewiq
Solved:
Last query:
Last reply:
Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#1

Hi,

First please make sure to close all open programs, including all package managers like Synaptic, Add/remove programs, etc ...

Then please try this procedure:

Step 1: Open Terminal from "Applications->Accessories->
Terminal"

Step 2: Please COPY-PASTE each line below into the Terminal then hit <enter> after each line)

sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
sudo rm -rf /var/lib/dpkg/updates/*
sudo rm -rf /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists/partial
sudo aptitude clean
sudo aptitude autoclean
sudo apt-get update
sudo dpkg --clear-avail
sudo dpkg --configure -a
sudo dpkg --remove --force-remove-reinstreq iscan-plugin-gt-s600
sudo apt-get update
sudo apt-get --fix-broken upgrade
sudo aptitude install -f
sudo aptitude update
sudo aptitude dist-upgrade

Step 3: Please post results (copy/paste terminal output from each command) on this thread

Hope it helps,

Regards,

Mark

Revision history for this message
dewiq (dewiq88) said :
#2

I've followed your instructions and this result :

dewiq@dewiq:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
[sudo] password for dewiq:
dewiq@dewiq:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
dewiq@dewiq:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
dewiq@dewiq:~$ sudo rm -rf /var/lib/dpkg/updates/*
dewiq@dewiq:~$ sudo rm -rf /var/lib/apt/lists
dewiq@dewiq:~$ sudo mkdir /var/lib/apt/lists
dewiq@dewiq:~$ sudo mkdir /var/lib/apt/lists/partial
dewiq@dewiq:~$ sudo aptitude clean
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
dewiq@dewiq:~$ sudo aptitude autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Freed 0B of disk space

dewiq@dewiq:~$ sudo apt-get update
Get:1 http://archive.ubuntu.com jaunty Release.gpg [189B]
Ign http://mambo.kuhp.kyoto-u.ac.jp ./ Release.gpg
Ign http://archive.ubuntu.com jaunty/main Translation-en_US
Ign http://mambo.kuhp.kyoto-u.ac.jp ./ Translation-en_US
Ign http://mambo.kuhp.kyoto-u.ac.jp ./ Release
Ign http://mambo.kuhp.kyoto-u.ac.jp ./ Packages
Get:2 http://mambo.kuhp.kyoto-u.ac.jp ./ Packages [1433B]
Get:3 http://ppa.launchpad.net jaunty Release.gpg [307B]
Get:4 http://archive.canonical.com jaunty Release.gpg [189B]
Ign http://archive.canonical.com jaunty/partner Translation-en_US
Get:5 http://archive.canonical.com jaunty Release [10.5kB]
Get:6 http://archive.canonical.com jaunty/partner Packages [3320B]
Get:7 http://archive.canonical.com jaunty/partner Sources [1555B]
Ign http://ppa.launchpad.net jaunty/main Translation-en_US
Ign http://archive.ubuntu.com jaunty/universe Translation-en_US
Ign http://archive.ubuntu.com jaunty/restricted Translation-en_US
Get:8 http://ppa.launchpad.net jaunty Release [74.7kB]
Ign http://archive.ubuntu.com jaunty/multiverse Translation-en_US
Get:9 http://archive.ubuntu.com jaunty Release [74.6kB]
Get:10 http://archive.ubuntu.com jaunty/main Packages [1253kB]
Get:11 http://ppa.launchpad.net jaunty/main Packages [22.5kB]
Get:12 http://ppa.launchpad.net jaunty/main Sources [2550B]
Get:13 http://archive.ubuntu.com jaunty/universe Packages [4757kB]
Get:14 http://archive.ubuntu.com jaunty/restricted Packages [8848B]
Get:15 http://archive.ubuntu.com jaunty/multiverse Packages [197kB]
Get:16 http://archive.ubuntu.com jaunty/universe Sources [2375kB]
Ign http://archive.ubuntu.com jaunty/universe Sources
Get:17 http://archive.ubuntu.com jaunty/main Sources [555kB]
Get:18 http://archive.ubuntu.com jaunty/multiverse Sources [107kB]
Ign http://archive.ubuntu.com jaunty/multiverse Sources
Get:19 http://archive.ubuntu.com jaunty/restricted Sources [3156B]
Get:20 http://archive.ubuntu.com jaunty/universe Sources [3042kB]
80% [20 Sources gzip 0] [Waiting for headers] 905B/s 45min 43s
gzip: stdin: not in gzip format
Err http://archive.ubuntu.com jaunty/universe Sources
  Sub-process gzip returned an error code (1)
Ign http://archive.ubuntu.com jaunty/multiverse Sources
Err http://archive.ubuntu.com jaunty/multiverse Sources
  404 Not Found
Fetched 9542kB in 57min 3s (2787B/s)
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty/universe/source/Sources.gz Sub-process gzip returned an error code (1)

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty/multiverse/source/Sources 404 Not Found

E: Some index files failed to download, they have been ignored, or old ones used instead.

dewiq@dewiq:~$ sudo dpkg --clear-avail
[sudo] password for dewiq:
dewiq@dewiq:~$ sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of libltdl7-dev:
 libltdl7-dev depends on libltdl7 (= 2.2.4-0ubuntu4); however:
  Version of libltdl7 on system is 2.2.6a-1ubuntu1.
dpkg: error processing libltdl7-dev (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libltdl7-dev
dewiq@dewiq:~$ sudo dpkg --remove --force-remove-reinstreq iscan-plugin-gt-s600
dpkg - warning, overriding problem because --force enabled:
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.
(Reading database ... 137585 files and directories currently installed.)
Removing iscan-plugin-gt-s600 ...
/var/lib/dpkg/info/iscan-plugin-gt-s600.prerm: 6: iscan-registry: not found
dpkg: error processing iscan-plugin-gt-s600 (--remove):
 subprocess pre-removal script returned error exit status 127
/var/lib/dpkg/info/iscan-plugin-gt-s600.postinst: 6: iscan-registry: not found
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 127
Errors were encountered while processing:
 iscan-plugin-gt-s600
dewiq@dewiq:~$ sudo apt-get update
Get:1 http://archive.ubuntu.com jaunty Release.gpg [189B]
Ign http://archive.ubuntu.com jaunty/main Translation-en_US
Get:2 http://archive.ubuntu.com jaunty/universe Translation-en_US [74.6kB]
99% [2 Translation-en_US bzip2 0] [Waiting for headers]bzip2: (stdin) is not a bzip2 file.
Ign http://archive.ubuntu.com jaunty/universe Translation-en_US
Ign http://archive.ubuntu.com jaunty/restricted Translation-en_US
Ign http://archive.ubuntu.com jaunty/multiverse Translation-en_US
Hit http://archive.ubuntu.com jaunty Release
Get:3 http://archive.ubuntu.com jaunty/main Packages [1253kB]
Get:4 http://archive.ubuntu.com jaunty/universe Packages [4757kB]
Get:5 http://archive.ubuntu.com jaunty/restricted Packages [8848B]
Get:6 http://archive.ubuntu.com jaunty/multiverse Packages [197kB]
Get:7 http://archive.ubuntu.com jaunty/universe Sources [2375kB]
Get:8 http://archive.ubuntu.com jaunty/main Sources [555kB]
Hit http://archive.ubuntu.com jaunty/multiverse Sources
Hit http://archive.ubuntu.com jaunty/restricted Sources
Fetched 9220kB in 1min 1s (149kB/s)
Reading package lists... Done
dewiq@dewiq:~$ sudo apt-get --fix-broken upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package iscan-plugin-gt-s600 needs to be reinstalled, but I can't find an archive for it.
dewiq@dewiq:~$ sudo aptitude install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following NEW packages will be installed:
  libsane-extras
The following packages will be REMOVED:
  libconvert-binhex-perl{u} libcrypt-ssleay-perl{u}
  libemail-date-format-perl{u} libfcgi-perl{u} libio-socket-ssl-perl{u}
  libio-stringy-perl{u} libjcode-pm-perl{u} libmime-lite-perl{u}
  libmime-tools-perl{u} libnet-ssleay-perl{u} nullmailer{u}
The following packages will be upgraded:
  libltdl7-dev
The following partially installed packages will be configured:
  iscan-plugin-gt-s600
1 packages upgraded, 1 newly installed, 11 to remove and 0 not upgraded.
Need to get 189kB of archives. After unpacking 2871kB will be freed.
Do you want to continue? [Y/n/?] y
E: I wasn't able to locate file for the iscan-plugin-gt-s600 package. This might mean you need to manually fix this package.
E: I wasn't able to locate file for the iscan-plugin-gt-s600 package. This might mean you need to manually fix this package.
E: Internal error: couldn't generate list of packages to download
dewiq@dewiq:~$ sudo aptitude update
Get:1 http://archive.ubuntu.com jaunty Release.gpg [189B]
Ign http://archive.ubuntu.com jaunty/main Translation-en_US
Get:2 http://archive.ubuntu.com jaunty/universe Translation-en_US [74.6kB]
99% [2 Translation-en_US bzip2 0] [Waiting for headers]bzip2: (stdin) is not a bzip2 file.
Ign http://archive.ubuntu.com jaunty/universe Translation-en_US
Ign http://archive.ubuntu.com jaunty/restricted Translation-en_US
Ign http://archive.ubuntu.com jaunty/multiverse Translation-en_US
Hit http://archive.ubuntu.com jaunty Release
Get:3 http://archive.ubuntu.com jaunty/main Packages [1253kB]
Get:4 http://archive.ubuntu.com jaunty/universe Packages [4757kB]
Get:5 http://archive.ubuntu.com jaunty/restricted Packages [8848B]
Get:6 http://archive.ubuntu.com jaunty/multiverse Packages [197kB]
Get:7 http://archive.ubuntu.com jaunty/universe Sources [2375kB]
Get:8 http://archive.ubuntu.com jaunty/main Sources [555kB]
Hit http://archive.ubuntu.com jaunty/multiverse Sources
Hit http://archive.ubuntu.com jaunty/restricted Sources
Fetched 9220kB in 53s (172kB/s)
Reading package lists... Done

dewiq@dewiq:~$ sudo aptitude dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following packages will be REMOVED:
  libconvert-binhex-perl{u} libcrypt-ssleay-perl{u}
  libemail-date-format-perl{u} libfcgi-perl{u} libio-socket-ssl-perl{u}
  libio-stringy-perl{u} libjcode-pm-perl{u} libmime-lite-perl{u}
  libmime-tools-perl{u} libnet-ssleay-perl{u} nullmailer{u}
The following packages will be upgraded:
  libltdl7-dev
The following partially installed packages will be configured:
  iscan-plugin-gt-s600
1 packages upgraded, 0 newly installed, 11 to remove and 0 not upgraded.
Need to get 189kB of archives. After unpacking 3531kB will be freed.
Do you want to continue? [Y/n/?] y
E: I wasn't able to locate file for the iscan-plugin-gt-s600 package. This might mean you need to manually fix this package.
Writing extended state information... Done
E: I wasn't able to locate file for the iscan-plugin-gt-s600 package. This might mean you need to manually fix this package.
E: Internal error: couldn't generate list of packages to download
dewiq@dewiq:~$

What should i do ???

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#3

Try running the following command:

gksudo gedit /var/lib/dpkg/info/iscan-plugin-gt-s600.prerm

Then, in that file, ONLY remove the lines that contain the word iscan-registry and save the change to the file /var/lib/dpkg/info/iscan-plugin-gt-s600.prerm

Then run the following command:

gksudo gedit /var/lib/dpkg/info/iscan-plugin-gt-s600.postinst

Then, in that file, ONLY remove the lines that contain the word iscan-registry and save the change to the file /var/lib/dpkg/info/iscan-plugin-gt-s600.postinst

Then run the following commands once more:

sudo dpkg --remove --force-remove-reinstreq iscan-plugin-gt-s600
sudo aptitude update
sudo aptitude dist-upgrade

Then send us the output from those 3 commands.

Revision history for this message
dewiq (dewiq88) said :
#4

Thank you very much ... after I did your instructions now my computer is back to normal, no problem anymore ....can add / remove, update again etc. Thank's a lot Mr. Mark Rijckenberg

dewiq@dewiq:~$ sudo dpkg --remove --force-remove-reinstreq iscan-plugin-gt-s600
dpkg - warning: ignoring request to remove iscan-plugin-gt-s600, only the config
 files of which are on the system. Use --purge to remove them too.

dewiq@dewiq:~$ sudo aptitude update
Get:1 http://archive.ubuntu.com jaunty Release.gpg [189B]
Ign http://archive.ubuntu.com jaunty/main Translation-en_US
Get:2 http://archive.ubuntu.com jaunty/universe Translation-en_US [74.6kB]
99% [2 Translation-en_US bzip2 0] [Waiting for headers]bzip2: (stdin) is not a bzip2 file.
Ign http://archive.ubuntu.com jaunty/universe Translation-en_US
Ign http://archive.ubuntu.com jaunty/restricted Translation-en_US
Ign http://archive.ubuntu.com jaunty/multiverse Translation-en_US
Hit http://archive.ubuntu.com jaunty Release
Get:3 http://archive.ubuntu.com jaunty/main Packages [1253kB]
Get:4 http://archive.ubuntu.com jaunty/universe Packages [4757kB]
Get:5 http://archive.ubuntu.com jaunty/restricted Packages [8848B]
Get:6 http://archive.ubuntu.com jaunty/multiverse Packages [197kB]
Get:7 http://archive.ubuntu.com jaunty/universe Sources [2375kB]
Get:8 http://archive.ubuntu.com jaunty/main Sources [555kB]
Get:9 http://archive.ubuntu.com jaunty/multiverse Sources [107kB]
Hit http://archive.ubuntu.com jaunty/restricted Sources
Fetched 9327kB in 11s (847kB/s)
Reading package lists... Done

dewiq@dewiq:~$ sudo aptitude dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following packages will be REMOVED:
  libconvert-binhex-perl{u} libcrypt-ssleay-perl{u}
  libemail-date-format-perl{u} libfcgi-perl{u} libio-socket-ssl-perl{u}
  libio-stringy-perl{u} libjcode-pm-perl{u} libmime-lite-perl{u}
  libmime-tools-perl{u} libnet-ssleay-perl{u} nullmailer{u}
0 packages upgraded, 0 newly installed, 11 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 3539kB will be freed.
Do you want to continue? [Y/n/?] y
(Reading database ... 137575 files and directories currently installed.)
Removing libmime-tools-perl ...
Removing libconvert-binhex-perl ...
Removing libcrypt-ssleay-perl ...
Removing libmime-lite-perl ...
Removing libemail-date-format-perl ...
Removing libfcgi-perl ...
Removing libio-socket-ssl-perl ...
Removing libio-stringy-perl ...
Removing libjcode-pm-perl ...
Removing libnet-ssleay-perl ...
Removing nullmailer ...
 * Stopping mail-transfer-agent: [ OK ]
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 1 removed doc-base file(s)...
Registering documents with scrollkeeper...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done