Ubuntu 16.04 “sudo apt-get update” error












0















When I give sudo apt-get update and sudo apt install -f I am getting errors and stuck. Below are console logs for your reference.



Logs of sudo apt-get update command:



Ign:1 http://dl.google.com/linux/chrome/deb stable
InRelease
Hit:2 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu xenial
InRelease
Hit:3 http://package.perforce.com/apt/ubuntu trusty InRelease
Hit:4 https://repo.skype.com/deb stable InRelease
Hit:5 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial
InRelease
Hit:6 http://linux.teamviewer.com/deb stable InRelease
Hit:7 http://linux.teamviewer.com/deb preview InRelease
Hit:8 http://dl.google.com/linux/chrome/deb stable Release
Hit:9 http://apt.postgresql.org/pub/repos/apt xenial-pgdg InRelease
Hit:10 http://ppa.launchpad.net/mc3man/xerus-media/ubuntu xenial
InRelease
Hit:12 https://download.sublimetext.com apt/stable/ InRelease
Hit:13 http://ppa.launchpad.net/team-gcc-arm-embedded/ppa/ubuntu
xenial InRelease
0% [Connecting to in.archive.ubuntu.com (2001:67c:1560:8001::14)]
[Connecting to archive.ubuntu.com (2001:67c:1360:8001::21)]
[Connecting to o


Here my console stuck after this line appeared on the terminal.



Logs of sudo apt install -f command:



Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
qml-module-qtquick-controls qml-module-qtquick-dialogs qml-module-qtquick-privatewidgets
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libpng12-0:i386
The following packages will be upgraded:
libpng12-0:i386
1 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
5 not fully installed or removed.
Need to get 0 B/122 kB of archives.
After this operation, 11.3 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: warning: files list file for package 'python-minimal' missing; assuming package has no files currently installed
(Reading database ... 321705 files and directories currently installed.)
Preparing to unpack .../libpng12-0_1.2.54-1ubuntu1.1_i386.deb ...
Unpacking libpng12-0:i386 (1.2.54-1ubuntu1.1) over (1.2.50-2+deb8u3) ...
dpkg: error processing archive /var/cache/apt/archives/libpng12-0_1.2.54-1ubuntu1.1_i386.deb (--unpack):
trying to overwrite shared '/usr/share/doc/libpng12-0/ANNOUNCE', which is different from other instances of package libpng12-0:i386
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Errors were encountered while processing:
/var/cache/apt/archives/libpng12-0_1.2.54-1ubuntu1.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Please help me so that I can solve these errors.



Thanks










share|improve this question

























  • Have you made any changes to your Python setup?

    – wjandrea
    Jan 5 at 20:38











  • @wjandrea, no i don't made any changes to my Python setup.

    – Bhavin
    Jan 6 at 4:34











  • Try clearing the apt cache with sudo apt-get clean and even if that fails, try reinstalling python-minimal with sudo apt-get install --reinstall python-minimal.

    – wjandrea
    Jan 6 at 19:26
















0















When I give sudo apt-get update and sudo apt install -f I am getting errors and stuck. Below are console logs for your reference.



Logs of sudo apt-get update command:



Ign:1 http://dl.google.com/linux/chrome/deb stable
InRelease
Hit:2 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu xenial
InRelease
Hit:3 http://package.perforce.com/apt/ubuntu trusty InRelease
Hit:4 https://repo.skype.com/deb stable InRelease
Hit:5 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial
InRelease
Hit:6 http://linux.teamviewer.com/deb stable InRelease
Hit:7 http://linux.teamviewer.com/deb preview InRelease
Hit:8 http://dl.google.com/linux/chrome/deb stable Release
Hit:9 http://apt.postgresql.org/pub/repos/apt xenial-pgdg InRelease
Hit:10 http://ppa.launchpad.net/mc3man/xerus-media/ubuntu xenial
InRelease
Hit:12 https://download.sublimetext.com apt/stable/ InRelease
Hit:13 http://ppa.launchpad.net/team-gcc-arm-embedded/ppa/ubuntu
xenial InRelease
0% [Connecting to in.archive.ubuntu.com (2001:67c:1560:8001::14)]
[Connecting to archive.ubuntu.com (2001:67c:1360:8001::21)]
[Connecting to o


Here my console stuck after this line appeared on the terminal.



Logs of sudo apt install -f command:



Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
qml-module-qtquick-controls qml-module-qtquick-dialogs qml-module-qtquick-privatewidgets
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libpng12-0:i386
The following packages will be upgraded:
libpng12-0:i386
1 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
5 not fully installed or removed.
Need to get 0 B/122 kB of archives.
After this operation, 11.3 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: warning: files list file for package 'python-minimal' missing; assuming package has no files currently installed
(Reading database ... 321705 files and directories currently installed.)
Preparing to unpack .../libpng12-0_1.2.54-1ubuntu1.1_i386.deb ...
Unpacking libpng12-0:i386 (1.2.54-1ubuntu1.1) over (1.2.50-2+deb8u3) ...
dpkg: error processing archive /var/cache/apt/archives/libpng12-0_1.2.54-1ubuntu1.1_i386.deb (--unpack):
trying to overwrite shared '/usr/share/doc/libpng12-0/ANNOUNCE', which is different from other instances of package libpng12-0:i386
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Errors were encountered while processing:
/var/cache/apt/archives/libpng12-0_1.2.54-1ubuntu1.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Please help me so that I can solve these errors.



Thanks










share|improve this question

























  • Have you made any changes to your Python setup?

    – wjandrea
    Jan 5 at 20:38











  • @wjandrea, no i don't made any changes to my Python setup.

    – Bhavin
    Jan 6 at 4:34











  • Try clearing the apt cache with sudo apt-get clean and even if that fails, try reinstalling python-minimal with sudo apt-get install --reinstall python-minimal.

    – wjandrea
    Jan 6 at 19:26














0












0








0








When I give sudo apt-get update and sudo apt install -f I am getting errors and stuck. Below are console logs for your reference.



Logs of sudo apt-get update command:



Ign:1 http://dl.google.com/linux/chrome/deb stable
InRelease
Hit:2 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu xenial
InRelease
Hit:3 http://package.perforce.com/apt/ubuntu trusty InRelease
Hit:4 https://repo.skype.com/deb stable InRelease
Hit:5 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial
InRelease
Hit:6 http://linux.teamviewer.com/deb stable InRelease
Hit:7 http://linux.teamviewer.com/deb preview InRelease
Hit:8 http://dl.google.com/linux/chrome/deb stable Release
Hit:9 http://apt.postgresql.org/pub/repos/apt xenial-pgdg InRelease
Hit:10 http://ppa.launchpad.net/mc3man/xerus-media/ubuntu xenial
InRelease
Hit:12 https://download.sublimetext.com apt/stable/ InRelease
Hit:13 http://ppa.launchpad.net/team-gcc-arm-embedded/ppa/ubuntu
xenial InRelease
0% [Connecting to in.archive.ubuntu.com (2001:67c:1560:8001::14)]
[Connecting to archive.ubuntu.com (2001:67c:1360:8001::21)]
[Connecting to o


Here my console stuck after this line appeared on the terminal.



Logs of sudo apt install -f command:



Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
qml-module-qtquick-controls qml-module-qtquick-dialogs qml-module-qtquick-privatewidgets
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libpng12-0:i386
The following packages will be upgraded:
libpng12-0:i386
1 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
5 not fully installed or removed.
Need to get 0 B/122 kB of archives.
After this operation, 11.3 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: warning: files list file for package 'python-minimal' missing; assuming package has no files currently installed
(Reading database ... 321705 files and directories currently installed.)
Preparing to unpack .../libpng12-0_1.2.54-1ubuntu1.1_i386.deb ...
Unpacking libpng12-0:i386 (1.2.54-1ubuntu1.1) over (1.2.50-2+deb8u3) ...
dpkg: error processing archive /var/cache/apt/archives/libpng12-0_1.2.54-1ubuntu1.1_i386.deb (--unpack):
trying to overwrite shared '/usr/share/doc/libpng12-0/ANNOUNCE', which is different from other instances of package libpng12-0:i386
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Errors were encountered while processing:
/var/cache/apt/archives/libpng12-0_1.2.54-1ubuntu1.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Please help me so that I can solve these errors.



Thanks










share|improve this question
















When I give sudo apt-get update and sudo apt install -f I am getting errors and stuck. Below are console logs for your reference.



Logs of sudo apt-get update command:



Ign:1 http://dl.google.com/linux/chrome/deb stable
InRelease
Hit:2 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu xenial
InRelease
Hit:3 http://package.perforce.com/apt/ubuntu trusty InRelease
Hit:4 https://repo.skype.com/deb stable InRelease
Hit:5 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial
InRelease
Hit:6 http://linux.teamviewer.com/deb stable InRelease
Hit:7 http://linux.teamviewer.com/deb preview InRelease
Hit:8 http://dl.google.com/linux/chrome/deb stable Release
Hit:9 http://apt.postgresql.org/pub/repos/apt xenial-pgdg InRelease
Hit:10 http://ppa.launchpad.net/mc3man/xerus-media/ubuntu xenial
InRelease
Hit:12 https://download.sublimetext.com apt/stable/ InRelease
Hit:13 http://ppa.launchpad.net/team-gcc-arm-embedded/ppa/ubuntu
xenial InRelease
0% [Connecting to in.archive.ubuntu.com (2001:67c:1560:8001::14)]
[Connecting to archive.ubuntu.com (2001:67c:1360:8001::21)]
[Connecting to o


Here my console stuck after this line appeared on the terminal.



Logs of sudo apt install -f command:



Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
qml-module-qtquick-controls qml-module-qtquick-dialogs qml-module-qtquick-privatewidgets
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libpng12-0:i386
The following packages will be upgraded:
libpng12-0:i386
1 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
5 not fully installed or removed.
Need to get 0 B/122 kB of archives.
After this operation, 11.3 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: warning: files list file for package 'python-minimal' missing; assuming package has no files currently installed
(Reading database ... 321705 files and directories currently installed.)
Preparing to unpack .../libpng12-0_1.2.54-1ubuntu1.1_i386.deb ...
Unpacking libpng12-0:i386 (1.2.54-1ubuntu1.1) over (1.2.50-2+deb8u3) ...
dpkg: error processing archive /var/cache/apt/archives/libpng12-0_1.2.54-1ubuntu1.1_i386.deb (--unpack):
trying to overwrite shared '/usr/share/doc/libpng12-0/ANNOUNCE', which is different from other instances of package libpng12-0:i386
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Errors were encountered while processing:
/var/cache/apt/archives/libpng12-0_1.2.54-1ubuntu1.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Please help me so that I can solve these errors.



Thanks







16.04 apt






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 5 at 20:37









wjandrea

8,50742259




8,50742259










asked Jan 5 at 17:24









BhavinBhavin

32




32













  • Have you made any changes to your Python setup?

    – wjandrea
    Jan 5 at 20:38











  • @wjandrea, no i don't made any changes to my Python setup.

    – Bhavin
    Jan 6 at 4:34











  • Try clearing the apt cache with sudo apt-get clean and even if that fails, try reinstalling python-minimal with sudo apt-get install --reinstall python-minimal.

    – wjandrea
    Jan 6 at 19:26



















  • Have you made any changes to your Python setup?

    – wjandrea
    Jan 5 at 20:38











  • @wjandrea, no i don't made any changes to my Python setup.

    – Bhavin
    Jan 6 at 4:34











  • Try clearing the apt cache with sudo apt-get clean and even if that fails, try reinstalling python-minimal with sudo apt-get install --reinstall python-minimal.

    – wjandrea
    Jan 6 at 19:26

















Have you made any changes to your Python setup?

– wjandrea
Jan 5 at 20:38





Have you made any changes to your Python setup?

– wjandrea
Jan 5 at 20:38













@wjandrea, no i don't made any changes to my Python setup.

– Bhavin
Jan 6 at 4:34





@wjandrea, no i don't made any changes to my Python setup.

– Bhavin
Jan 6 at 4:34













Try clearing the apt cache with sudo apt-get clean and even if that fails, try reinstalling python-minimal with sudo apt-get install --reinstall python-minimal.

– wjandrea
Jan 6 at 19:26





Try clearing the apt cache with sudo apt-get clean and even if that fails, try reinstalling python-minimal with sudo apt-get install --reinstall python-minimal.

– wjandrea
Jan 6 at 19:26










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1107226%2fubuntu-16-04-sudo-apt-get-update-error%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1107226%2fubuntu-16-04-sudo-apt-get-update-error%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Human spaceflight

Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

張江高科駅