Error ocurring whileprocessing some packages.

Asked by Kruti Deepan Panda on 2016-04-10

shows this message-
Errors were encountered while processing:
 /var/cache/apt/archives/lib32z1-dev_1%3a1.2.8.dfsg-2ubuntu4_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

What is the output of:

sudo apt-get update; sudo apt-get install lib32z1-dev

Thanks

suod apt-get update gave an error-
W: Failed to fetch cdrom://Ubuntu 15.10 _Wily Werewolf_ - Release amd64
(20151021)/dists/wily/main/binary-amd64/Packages Please use apt-cdrom to
make this CD-ROM recognized by APT. apt-get update cannot be used to add
new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 15.10 _Wily Werewolf_ - Release amd64
(20151021)/dists/wily/restricted/binary-amd64/Packages Please use
apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be
used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 15.10 _Wily Werewolf_ - Release amd64
(20151021)/dists/wily/main/binary-i386/Packages Please use apt-cdrom to
make this CD-ROM recognized by APT. apt-get update cannot be used to add
new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 15.10 _Wily Werewolf_ - Release amd64
(20151021)/dists/wily/restricted/binary-i386/Packages Please use apt-cdrom
to make this CD-ROM recognized by APT. apt-get update cannot be used to add
new CD-ROMs

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

On Sun, Apr 10, 2016 at 9:52 PM, actionparsnip <
<email address hidden>> wrote:

> Your question #290379 on zlib in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/zlib/+question/290379
>
> Status: Open => Needs information
>
> actionparsnip requested more information:
> What is the output of:
>
> sudo apt-get update; sudo apt-get install lib32z1-dev
>
> Thanks
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+source/zlib/+question/290379
>
> You received this question notification because you asked the question.
>

Manfred Hampl (m-hampl) said : #3

You have to disable the installation DVD as a source for installing software.

Use the system settings - software dialogue to untick the installation CD on the first or second tabs

see http://itsfoss.com/wp-content/uploads/2015/02/CDROM_Error_Update_Software_Sources.jpeg and http://i.stack.imgur.com/dhCUh.png

Then try running the commands

sudo apt-get update; sudo apt-get install lib32z1-dev

again and copy/paste the full output that we can check.

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer
required:
  linux-headers-4.2.0-16 linux-headers-4.2.0-16-generic
  linux-image-4.2.0-16-generic linux-image-extra-4.2.0-16-generic
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  lib32z1-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
103 not fully installed or removed.
Need to get 0 B/54.7 kB of archives.
After this operation, 188 kB of additional disk space will be used.
(Reading database ... 252437 files and directories currently installed.)
Preparing to unpack .../lib32z1-dev_1%3a1.2.8.dfsg-2ubuntu4_amd64.deb ...
Unpacking lib32z1-dev (1:1.2.8.dfsg-2ubuntu4) ...
dpkg: error processing archive
/var/cache/apt/archives/lib32z1-dev_1%3a1.2.8.dfsg-2ubuntu4_amd64.deb
(--unpack):
 trying to overwrite '/usr/include/i386-linux-gnu/zconf.h', which is also
in package zlib1g-dev:i386 1:1.2.8.dfsg-2ubuntu4
Errors were encountered while processing:
 /var/cache/apt/archives/lib32z1-dev_1%3a1.2.8.dfsg-2ubuntu4_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
kruti@kruti-VirtualBox:~$ sudo apt-get install lib32z1-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer
required:
  linux-headers-4.2.0-16 linux-headers-4.2.0-16-generic
  linux-image-4.2.0-16-generic linux-image-extra-4.2.0-16-generic
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  lib32z1-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
103 not fully installed or removed.
Need to get 0 B/54.7 kB of archives.
After this operation, 188 kB of additional disk space will be used.
(Reading database ... 252437 files and directories currently installed.)
Preparing to unpack .../lib32z1-dev_1%3a1.2.8.dfsg-2ubuntu4_amd64.deb ...
Unpacking lib32z1-dev (1:1.2.8.dfsg-2ubuntu4) ...
dpkg: error processing archive
/var/cache/apt/archives/lib32z1-dev_1%3a1.2.8.dfsg-2ubuntu4_amd64.deb
(--unpack):
 trying to overwrite '/usr/include/i386-linux-gnu/zconf.h', which is also
in package zlib1g-dev:i386 1:1.2.8.dfsg-2ubuntu4
Errors were encountered while processing:
 /var/cache/apt/archives/lib32z1-dev_1%3a1.2.8.dfsg-2ubuntu4_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

On Mon, Apr 11, 2016 at 9:38 PM, Manfred Hampl <
<email address hidden>> wrote:

> Your question #290379 on zlib in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/zlib/+question/290379
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> You have to disable the installation DVD as a source for installing
> software.
>
> Use the system settings - software dialogue to untick the installation
> CD on the first or second tabs
>
> see http://itsfoss.com/wp-
> content/uploads/2015/02/CDROM_Error_Update_Software_Sources.jpeg and
> http://i.stack.imgur.com/dhCUh.png
>
> Then try running the commands
>
> sudo apt-get update; sudo apt-get install lib32z1-dev
>
> again and copy/paste the full output that we can check.
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+source/zlib/+question/290379
>
> You received this question notification because you asked the question.
>

Manfred Hampl (m-hampl) said : #5

This is a known bug 1512992

Try the command

sudo apt-get -o Dpkg::Options::="--force-overwrite" install lib32z1-dev

and report the result

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer
required:
  linux-headers-4.2.0-16 linux-headers-4.2.0-16-generic
  linux-image-4.2.0-16-generic linux-image-extra-4.2.0-16-generic
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  lib32z1-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
103 not fully installed or removed.
Need to get 0 B/54.7 kB of archives.
After this operation, 188 kB of additional disk space will be used.
(Reading database ... 252437 files and directories currently installed.)
Preparing to unpack .../lib32z1-dev_1%3a1.2.8.dfsg-2ubuntu4_amd64.deb ...
Unpacking lib32z1-dev (1:1.2.8.dfsg-2ubuntu4) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: trying to overwrite '/usr/include/i386-linux-gnu/zconf.h',
which is also in package zlib1g-dev:i386 1:1.2.8.dfsg-2ubuntu4
Setting up ant (1.9.6-1ubuntu1) ...
Setting up ant-optional (1.9.6-1ubuntu1) ...
Setting up libbsh-java (2.0b4-15ubuntu0.15.10.1) ...
Setting up libjline-java (1.0-2) ...
Setting up bsh (2.0b4-15ubuntu0.15.10.1) ...
Setting up lib32stdc++-5-dev (5.2.1-22ubuntu2) ...
Setting up libx32stdc++-5-dev (5.2.1-22ubuntu2) ...
Setting up g++-5-multilib (5.2.1-22ubuntu2) ...
Setting up g++-multilib (4:5.2.1-3ubuntu1) ...
Setting up junit (3.8.2-8build1) ...
Setting up libhamcrest-java (1.3-5ubuntu1) ...
Setting up junit4 (4.12-2ubuntu1) ...
Setting up lib32readline6 (6.3-8ubuntu1) ...
Setting up lib32readline6-dev (6.3-8ubuntu1) ...
Setting up libapache-pom-java (10-2build1) ...
Setting up libasm3-java (3.3.2-2) ...
Setting up libasm4-java (5.0.4-1) ...
Setting up libatinject-jsr330-api-java (1.0+ds1-2) ...
Setting up libgeronimo-interceptor-3.0-spec-java (1.0.1-2fakesync1) ...
Setting up libservlet3.1-java (8.0.26-1) ...
Setting up libcdi-api-java (1.0-2) ...
Setting up libcglib3-java (3.1+dfsg-1) ...
Setting up libclassworlds-java (1.1-final-5) ...
Setting up libcommons-lang-java (2.6-5ubuntu1) ...
Setting up libcommons-cli-java (1.3.1-2ubuntu1) ...
Setting up libcommons-codec-java (1.10-1) ...
Setting up libcommons-parent-java (22-2build1) ...
Setting up libcommons-logging-java (1.2-1ubuntu1) ...
Setting up libcommons-httpclient-java (3.1-11ubuntu1) ...
Setting up libcommons-io-java (2.4-2) ...
Setting up libcommons-net2-java (2.2-2) ...
Setting up libjaxen-java (1.1.6-1ubuntu1) ...
Setting up libxpp2-java (2.1.10-7build1) ...
Setting up libxpp3-java (1.1.4c-2build1) ...
Setting up libdom4j-java (1.6.1+dfsg.3-2ubuntu1) ...
Setting up libhttpcore-java (4.4.1-1) ...
Setting up libhttpclient-java (4.4.1-1) ...
Setting up libjaxp1.3-java (1.3.05-2ubuntu3) ...
Setting up libxml-commons-resolver1.1-java (1.2-7build1) ...
Setting up libxml-commons-external-java (1.4.01-2build1) ...
Setting up libxerces2-java (2.11.0-7) ...
Setting up libxalan2-java (2.7.1-9) ...
Setting up libplexus-interpolation-java (1.21-1) ...
Setting up libplexus-utils-java (1:1.5.15-4) ...
Setting up libdoxia-core-java (1.1.4-3ubuntu1) ...
Setting up libobjenesis-java (2.1-2) ...
Setting up libeasymock-java (3.3.1+ds-3) ...
Setting up libslf4j-java (1.7.12-2) ...
Setting up libjsch-java (0.1.53-1ubuntu1) ...
Setting up libjsoup-java (1.8.3-1) ...
Setting up libjsr305-java (0.1~+svn49-9) ...
Setting up libguava-java (18.0-4ubuntu1) ...
Setting up libplexus-classworlds-java (1.5.0-5) ...
Setting up libxbean-java (4.3-2) ...
Setting up libplexus-containers-java (1.0~beta3.0.7-7) ...
Setting up libplexus-interactivity-api-java (1.0-alpha-6-7) ...
Setting up libwagon-java (1.0.0-7) ...
Setting up libeclipse-aether-java (1.0.2-1) ...
Setting up libganymed-ssh2-java (250-2) ...
Setting up libaopalliance-java (20070526-5) ...
Setting up libguice-java (4.0~beta5-1) ...
Setting up libjackrabbit-java (2.10.1-1) ...
Setting up libjdom1-java (1.1.3-1) ...
Setting up libservlet2.5-java (6.0.41-4) ...
Setting up libjetty-java (6.1.26-5) ...
Setting up libjna-jni (4.2.0-1) ...
Setting up libjna-java (4.2.0-1) ...
Setting up libjna-platform-java (4.2.0-1) ...
Setting up libjsch-agent-proxy-java (0.0.8-2) ...
Setting up liblog4j1.2-java (1.2.17-6ubuntu1) ...
Setting up libmaven-parent-java (21-2) ...
Setting up libplexus-container-default-java (1.0-alpha-9-stable-1-7) ...
Setting up libplexus-ant-factory-java (1.0~alpha2.1-3) ...
Setting up libplexus-io-java (1.0~alpha5-2) ...
Setting up libplexus-archiver-java (2.2-1) ...
Setting up libplexus-bsh-factory-java (1.0~alpha7-3) ...
Setting up libplexus-cipher-java (1.7-1) ...
Setting up libplexus-sec-dispatcher-java (1.3.1-6) ...
Setting up libmaven2-core-java (2.2.1-22) ...
Setting up libnetbeans-cvsclient-java (6.5-2) ...
Setting up libregexp-java (1.5-3build1) ...
Setting up libmaven-scm-java (1.3-5) ...
Setting up libplexus-classworlds2-java (2.5.2-1) ...
Setting up libplexus-cli-java (1.2-5) ...
Setting up libplexus-utils2-java (3.0.15-1) ...
Setting up libqdox-java (1.12-1build1) ...
Setting up libplexus-containers1.5-java (1.5.5-6) ...
Setting up libsisu-guice-java (3.2.4-1) ...
Setting up libsisu-inject-java (0.3.1-2) ...
Setting up libsisu-plexus-java (0.3.1-2) ...
Setting up libwagon2-java (2.7-1) ...
Setting up libmaven3-core-java (3.3.3-3) ...
Setting up libwxbase2.8-0:amd64 (2.8.12.1+dfsg2-2ubuntu2) ...
Setting up wx2.8-headers (2.8.12.1+dfsg2-2ubuntu2) ...
Setting up libwxbase2.8-dev (2.8.12.1+dfsg2-2ubuntu2) ...
Setting up libwxgtk2.8-0:amd64 (2.8.12.1+dfsg2-2ubuntu2) ...
Setting up libwxgtk2.8-dev (2.8.12.1+dfsg2-2ubuntu2) ...
Setting up libxml2-utils (2.9.2+zdfsg1-4ubuntu0.3) ...
Setting up libxom-java (1.2.10-1) ...
Setting up maven (3.3.3-3) ...
update-alternatives: using /usr/share/maven/bin/mvn to provide /usr/bin/mvn
(mvn) in auto mode
Setting up xsltproc (1.1.28-2build2) ...
Setting up liblz4-1:amd64 (0.0~r131-1) ...
Setting up liblz4-tool (0.0~r131-1) ...
Setting up lib32z1-dev (1:1.2.8.dfsg-2ubuntu4) ...
Processing triggers for libc-bin (2.21-0ubuntu4.1) ...

On Mon, Apr 11, 2016 at 11:02 PM, Manfred Hampl <
<email address hidden>> wrote:

> Your question #290379 on zlib in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/zlib/+question/290379
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> This is a known bug 1512992
>
> Try the command
>
> sudo apt-get -o Dpkg::Options::="--force-overwrite" install lib32z1-dev
>
> and report the result
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/ubuntu/+source/zlib/+question/290379/+confirm?answer_id=4
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/zlib/+question/290379
>
> You received this question notification because you asked the question.
>

Best Manfred Hampl (m-hampl) said : #7

This looks fine, all packages have been successfully installed.
Unless there is some additional problem or error message popping you, you might mark this question document as "solved".

Thanks Manfred Hampl, that solved my question.