Error on install/update

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Rhoxus

Error on install/update

Post by Rhoxus »

Hey guys,

Since last night I am getting an error everytime I try to install or update a package, I'm not sure whats causing it so i'll just post the log here and hope for someone to recognise the problem.

Trying to update Dropbox:

Code: Select all

jaimie@jaimie-Laptop ~ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be upgraded:
  nautilus-dropbox
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/90.5kB of archives.
After this operation, 12.3kB of additional disk space will be used.
Do you want to continue [Y/n]? y
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
dpkg-deb: subprocess tar returned error exit status 2
dpkg: error processing /var/cache/apt/archives/nautilus-dropbox_0.6.7_amd64.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/nautilus-dropbox_0.6.7_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Trying to install USB supported VirtualBox:

Code: Select all

jaimie@jaimie-Laptop ~ $ sudo apt-get install virtualbox-nonfree
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  dkms libsdl-ttf2.0-0 virtualbox-3.2
The following NEW packages will be installed:
  dkms libsdl-ttf2.0-0 virtualbox-3.2 virtualbox-nonfree
0 upgraded, 4 newly installed, 0 to remove and 1 not upgraded.
Need to get 49.8MB of archives.
After this operation, 98.3MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://packages.linuxmint-fr.net/ julia/import virtualbox-3.2 amd64 3.2.8-64453~Ubuntu~lucid [49.7MB]
Get:2 http://archive.ubuntu.com/ubuntu/ maverick-updates/main dkms all 2.1.1.2-3ubuntu1.1 [71.3kB]
Get:3 http://archive.ubuntu.com/ubuntu/ maverick/universe libsdl-ttf2.0-0 amd64 2.0.9-1build1 [16.6kB]
Get:4 http://packages.linuxmint-fr.net/ julia/main virtualbox-nonfree all 3.2 [1,370B]
Fetched 49.8MB in 31s (1,564kB/s)                                              
Preconfiguring packages ...
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
dpkg-deb: subprocess tar returned error exit status 2
dpkg: error processing /var/cache/apt/archives/virtualbox-3.2_3.2.8-64453~Ubuntu~lucid_amd64.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
(Reading database ... 238868 files and directories currently installed.)
Unpacking dkms (from .../dkms_2.1.1.2-3ubuntu1.1_all.deb) ...
dpkg-deb (subprocess): data: internal gzip read error: '<fd:0>: invalid distance too far back'
dpkg-deb: subprocess <decompress> returned error exit status 2
dpkg: error processing /var/cache/apt/archives/dkms_2.1.1.2-3ubuntu1.1_all.deb (--unpack):
 short read on buffer copy for backend dpkg-deb during `./usr/sbin/dkms'
Unpacking libsdl-ttf2.0-0 (from .../libsdl-ttf2.0-0_2.0.9-1build1_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/libsdl-ttf2.0-0_2.0.9-1build1_amd64.deb (--unpack):
 corrupted filesystem tarfile - corrupted package archive
Selecting previously deselected package virtualbox-nonfree.
Unpacking virtualbox-nonfree (from .../virtualbox-nonfree_3.2_all.deb) ...
Errors were encountered while processing:
 /var/cache/apt/archives/virtualbox-3.2_3.2.8-64453~Ubuntu~lucid_amd64.deb
 /var/cache/apt/archives/dkms_2.1.1.2-3ubuntu1.1_all.deb
 /var/cache/apt/archives/libsdl-ttf2.0-0_2.0.9-1build1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
So far I've tried apt-get autoclean, apt-get -f install, apt-get clean all, and a bunch of other commands, but no avail.

I've tried to compile and install the latest Mono from source to get ASP.NET MVC 2 supported with Apache2, thats when the problems started appearing, but I'm not sure if that's causing it.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
mads

Re: Error on install/update

Post by mads »

Hi. You need Apache2. If it is already installed, try to start it automatically at boot by changing the "NO_START" entry in "/etc/default/apache2" to 0, i.e. NO_START=0 (# 0 = start on boot; 1 = don't start on boot). Restart.
Last edited by mads on Mon Nov 08, 2010 5:30 pm, edited 2 times in total.
Rhoxus

Re: Error on install/update

Post by Rhoxus »

I believe you didn't get the question, I tried your fix but Apache2 was already running, Ive installed it before compiling mono by Tasksel LAMP server.

Thanks though.
Locked

Return to “Beginner Questions”