hplip-data package maverick - broken install?

Asked by Jim Brittain

I did the upgrade to Maverick today, and hplip did not install correctly. I uninstalled the package, and when I try to install using synaptic package manager, I get the message that the hplip-data package is broken; this has happened on at least two servers. Upgrade manager has told me that the package needs to be upgraded, but fails each time. I have completely removed the package.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu hplip Edit question
Assignee:
No assignee Edit question
Solved by:
Jim Brittain
Solved:
Last query:
Last reply:
Revision history for this message
Fabián Rodríguez (magicfab) said :
#1

Could you share with us the results of:

sudo apt-get update

sudo apt-get remove --reinstall hplip

Revision history for this message
Jim Brittain (jim-brittain) said :
#2

  Results of:
sudo apt-get update
-- nothing, probably because I have completely uninstalled the hplip &
hplip-data packages.

Results of
sudo apt-get remove --reinstall hplip
-- message:
Package hplip is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Based on this, I tried:
sudo apt-get install hplip
message:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
   hplip-data
Suggested packages:
   kdeprint gtklp xpp hplip-gui hplip-doc
The following NEW packages will be installed:
   hplip hplip-data
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/7,870kB of archives.
After this operation, 12.9MB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 204366 files and directories currently installed.)
Unpacking hplip-data (from .../hplip-data_3.10.6-1ubuntu10_all.deb) ...
dpkg-deb (subprocess): data: internal gzip read error: '<fd:0>: data error'
dpkg-deb: subprocess <decompress> returned error exit status 2
dpkg: error processing
/var/cache/apt/archives/hplip-data_3.10.6-1ubuntu10_all.deb (--unpack):
  subprocess dpkg-deb --fsys-tarfile returned error exit status 2
Selecting previously deselected package hplip.
Unpacking hplip (from .../hplip_3.10.6-1ubuntu10_i386.deb) ...
Processing triggers for man-db ...
Errors were encountered while processing:
  /var/cache/apt/archives/hplip-data_3.10.6-1ubuntu10_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I hope this is helpful.

On 10/11/2010 02:51 PM, Fabián Rodríguez wrote:
> Your question #128892 on hplip in ubuntu changed:
> https://answers.edge.launchpad.net/ubuntu/+source/hplip/+question/128892
>
> Status: Open => Needs information
>
> Fabián Rodríguez requested for more information:
> Could you share with us the results of:
>
> sudo apt-get update
>
> sudo apt-get remove --reinstall hplip
>

Revision history for this message
PeterPall (peterpall) said :
#3

The problem might be that the download has technically succeeded - but on the long way to your computer at least one byte has changed - even if with all internet packages containing loads of checksums that should be theoretically impossible.

If this is the case you can try a

sudo rm /var/cache/apt/archives/*
sudo rm /var/cache/apt/archives/partial/*

This will delete any downloaded package file and give your computer a chance to download them again if you try to install it another time.

Revision history for this message
Jim Brittain (jim-brittain) said :
#4

  I tried to run the commands you sent, and could not; I got messages
they could not be removed because they were directories. I ran:
gksu nautilus
... and removed them through a gui; there were some files in
/var/cache/apt/archives which I also deleted. (I know this was
dangerous; in retrospect, I suppose I should have rm .../*.*, then rd
the directories - is that correct?) I then ran Synaptic Package
Manager, and was able to install hplip with the dependency hplip-data; I
have printed a test page both from the hplip icon and from an application.

I think we're done here; thank you for your attention.

On 10/11/2010 03:30 PM, PeterPall wrote:
> Your question #128892 on hplip in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/hplip/+question/128892
>
> Status: Open => Needs information
>
> PeterPall requested for more information:
> The problem might be that the download has technically succeeded - but
> on the long way to your computer at least one byte has changed - even if
> with all internet packages containing loads of checksums that should be
> theoretically impossible.
>
> If this is the case you can try a
>
> sudo rm /var/cache/apt/archives/*
> sudo rm /var/cache/apt/archives/partial/*
>
> This will delete any downloaded package file and give your computer a
> chance to download them again if you try to install it another time.
>

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#5

Open a Terminal from the menu Applications->Accessories->Terminal

**Tip: right click with mouse on the top terminal windows title caption and select the menu item "Always on Top"
doing this you will force the terminal window to stay on top of the other windows and you will find very easy
to copy single row from this web page into the terminal...
Something more about using the terminal https://help.ubuntu.com/community/UsingTheTerminal

Then type or better copy and paste a row a time then press enter:
(Tip: select the single row to copy from this page then right click and select copy then click into the terminal window
and to quick paste click with middle button of mouse )

Copy and paste the rows below, copy and paste one row a time (see the **Tip) then press enter:

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 apt-get clean; LANG=C;sudo apt-get autoclean
sudo apt-get update
sudo dpkg --clear-avail; sudo dpkg --configure -a
sudo apt-get install -f
sudo apt-get update
sudo apt-get dist-upgrade

give your user password when requested, you don't see nothing when you type it, then press enter.

Then try to reinstall/install the hplip package

sudo apt-get --reinstall install hplip

Hope this helps

Revision history for this message
Jim Brittain (jim-brittain) said :
#6

Thanks for the instructions; I will save them.