Problem with 'sudo apt-get upgrade'





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







3















When I run sudo apt-get upgrade, the following error arises:



Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
mysql-client-5.5 mysql-server-5.5 mysql-server-core-5.5
The following packages will be upgraded:
accountsservice apport apt apt-transport-https apt-utils aptitude bash bash-completion bind9-host curl dbus dmsetup dnsutils icedtea-6-jre-cacao
icedtea-6-jre-jamvm iptables isc-dhcp-client isc-dhcp-common language-selector-common libaccountsservice0 libapt-inst1.4 libapt-pkg4.12 libasound2
libbind9-80 libc-bin libc-dev-bin libc6 libc6-dev libcups2 libcupsimage2 libcurl3 libcurl3-gnutls libdbus-1-3 libdevmapper1.02.1 libdns81
libdrm-intel1 libdrm-nouveau1a libdrm-radeon1 libdrm2 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgnutls26 libisc83 libisccc80 libisccfg82
liblwres80 libmysqlclient-dev libmysqlclient18 libnspr4 libnss3 libnss3-1d libplymouth2 libservlet2.5-java libssl-dev libssl-doc libssl1.0.0
libtiff4 libtomcat6-java libudev0 libx11-6 libx11-data libx11-xcb1 libxcb-glx0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb1 libxext6
libxfixes3 libxi6 libxinerama1 libxml2 libxrender1 libxslt1.1 libxt6 libxtst6 libxv1 libxxf86dga1 libxxf86vm1 linux-libc-dev multiarch-support
mysql-client mysql-client-core-5.5 mysql-common mysql-server nginx nginx-common nginx-full openjdk-6-jre-headless openjdk-6-jre-lib openssh-client
openssh-server openssl perl perl-base perl-modules plymouth plymouth-theme-ubuntu-text python-apport python-apt python-apt-common python-mysqldb
python-paramiko python-problem-report rsyslog tomcat6 tomcat6-admin tomcat6-common tomcat6-docs tomcat6-examples udev
112 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/88.4 MB of archives.
After this operation, 204 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Extracting templates from packages: 100%
Preconfiguring packages ...
dpkg-deb: error: subprocess tar was killed by signal (Segmentation fault), core dumped
dpkg: error processing /var/cache/apt/archives/bash_4.2-2ubuntu2.1_i386.deb (--unpack):
subprocess dpkg-deb --control returned error exit status 2
No apport report written because MaxReports is reached already
Errors were encountered while processing:
/var/cache/apt/archives/bash_4.2-2ubuntu2.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


I tried sudo apt-get clean && sudo apt-get --reinstall install bash, and it outputs:



Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
bash-doc
The following packages will be upgraded:
bash
1 upgraded, 0 newly installed, 0 to remove and 114 not upgraded.
Need to get 616 kB of archives.
After this operation, 12.3 kB disk space will be freed.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main bash i386 4.2-2ubuntu2.1 [616 kB]
Fetched 616 kB in 1s (591 kB/s)
dpkg-deb: error: subprocess tar was killed by signal (Segmentation fault), core dumped
dpkg: error processing /var/cache/apt/archives/bash_4.2-2ubuntu2.1_i386.deb (--unpack):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/bash_4.2-2ubuntu2.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


My problem seems to be with the bash package as alaa said.










share|improve this question

























  • Try sudo apt-get -f install

    – douggro
    Jun 18 '13 at 12:18











  • I tried it but the problem still persists

    – amr.negm
    Jun 18 '13 at 12:49











  • Have you run a fsck? Could be corruption or physical damage.

    – Ken Sharp
    Dec 18 '15 at 22:32











  • do sudo dpkg -a --configure

    – j0h
    Feb 18 '16 at 2:44


















3















When I run sudo apt-get upgrade, the following error arises:



Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
mysql-client-5.5 mysql-server-5.5 mysql-server-core-5.5
The following packages will be upgraded:
accountsservice apport apt apt-transport-https apt-utils aptitude bash bash-completion bind9-host curl dbus dmsetup dnsutils icedtea-6-jre-cacao
icedtea-6-jre-jamvm iptables isc-dhcp-client isc-dhcp-common language-selector-common libaccountsservice0 libapt-inst1.4 libapt-pkg4.12 libasound2
libbind9-80 libc-bin libc-dev-bin libc6 libc6-dev libcups2 libcupsimage2 libcurl3 libcurl3-gnutls libdbus-1-3 libdevmapper1.02.1 libdns81
libdrm-intel1 libdrm-nouveau1a libdrm-radeon1 libdrm2 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgnutls26 libisc83 libisccc80 libisccfg82
liblwres80 libmysqlclient-dev libmysqlclient18 libnspr4 libnss3 libnss3-1d libplymouth2 libservlet2.5-java libssl-dev libssl-doc libssl1.0.0
libtiff4 libtomcat6-java libudev0 libx11-6 libx11-data libx11-xcb1 libxcb-glx0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb1 libxext6
libxfixes3 libxi6 libxinerama1 libxml2 libxrender1 libxslt1.1 libxt6 libxtst6 libxv1 libxxf86dga1 libxxf86vm1 linux-libc-dev multiarch-support
mysql-client mysql-client-core-5.5 mysql-common mysql-server nginx nginx-common nginx-full openjdk-6-jre-headless openjdk-6-jre-lib openssh-client
openssh-server openssl perl perl-base perl-modules plymouth plymouth-theme-ubuntu-text python-apport python-apt python-apt-common python-mysqldb
python-paramiko python-problem-report rsyslog tomcat6 tomcat6-admin tomcat6-common tomcat6-docs tomcat6-examples udev
112 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/88.4 MB of archives.
After this operation, 204 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Extracting templates from packages: 100%
Preconfiguring packages ...
dpkg-deb: error: subprocess tar was killed by signal (Segmentation fault), core dumped
dpkg: error processing /var/cache/apt/archives/bash_4.2-2ubuntu2.1_i386.deb (--unpack):
subprocess dpkg-deb --control returned error exit status 2
No apport report written because MaxReports is reached already
Errors were encountered while processing:
/var/cache/apt/archives/bash_4.2-2ubuntu2.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


I tried sudo apt-get clean && sudo apt-get --reinstall install bash, and it outputs:



Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
bash-doc
The following packages will be upgraded:
bash
1 upgraded, 0 newly installed, 0 to remove and 114 not upgraded.
Need to get 616 kB of archives.
After this operation, 12.3 kB disk space will be freed.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main bash i386 4.2-2ubuntu2.1 [616 kB]
Fetched 616 kB in 1s (591 kB/s)
dpkg-deb: error: subprocess tar was killed by signal (Segmentation fault), core dumped
dpkg: error processing /var/cache/apt/archives/bash_4.2-2ubuntu2.1_i386.deb (--unpack):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/bash_4.2-2ubuntu2.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


My problem seems to be with the bash package as alaa said.










share|improve this question

























  • Try sudo apt-get -f install

    – douggro
    Jun 18 '13 at 12:18











  • I tried it but the problem still persists

    – amr.negm
    Jun 18 '13 at 12:49











  • Have you run a fsck? Could be corruption or physical damage.

    – Ken Sharp
    Dec 18 '15 at 22:32











  • do sudo dpkg -a --configure

    – j0h
    Feb 18 '16 at 2:44














3












3








3


1






When I run sudo apt-get upgrade, the following error arises:



Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
mysql-client-5.5 mysql-server-5.5 mysql-server-core-5.5
The following packages will be upgraded:
accountsservice apport apt apt-transport-https apt-utils aptitude bash bash-completion bind9-host curl dbus dmsetup dnsutils icedtea-6-jre-cacao
icedtea-6-jre-jamvm iptables isc-dhcp-client isc-dhcp-common language-selector-common libaccountsservice0 libapt-inst1.4 libapt-pkg4.12 libasound2
libbind9-80 libc-bin libc-dev-bin libc6 libc6-dev libcups2 libcupsimage2 libcurl3 libcurl3-gnutls libdbus-1-3 libdevmapper1.02.1 libdns81
libdrm-intel1 libdrm-nouveau1a libdrm-radeon1 libdrm2 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgnutls26 libisc83 libisccc80 libisccfg82
liblwres80 libmysqlclient-dev libmysqlclient18 libnspr4 libnss3 libnss3-1d libplymouth2 libservlet2.5-java libssl-dev libssl-doc libssl1.0.0
libtiff4 libtomcat6-java libudev0 libx11-6 libx11-data libx11-xcb1 libxcb-glx0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb1 libxext6
libxfixes3 libxi6 libxinerama1 libxml2 libxrender1 libxslt1.1 libxt6 libxtst6 libxv1 libxxf86dga1 libxxf86vm1 linux-libc-dev multiarch-support
mysql-client mysql-client-core-5.5 mysql-common mysql-server nginx nginx-common nginx-full openjdk-6-jre-headless openjdk-6-jre-lib openssh-client
openssh-server openssl perl perl-base perl-modules plymouth plymouth-theme-ubuntu-text python-apport python-apt python-apt-common python-mysqldb
python-paramiko python-problem-report rsyslog tomcat6 tomcat6-admin tomcat6-common tomcat6-docs tomcat6-examples udev
112 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/88.4 MB of archives.
After this operation, 204 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Extracting templates from packages: 100%
Preconfiguring packages ...
dpkg-deb: error: subprocess tar was killed by signal (Segmentation fault), core dumped
dpkg: error processing /var/cache/apt/archives/bash_4.2-2ubuntu2.1_i386.deb (--unpack):
subprocess dpkg-deb --control returned error exit status 2
No apport report written because MaxReports is reached already
Errors were encountered while processing:
/var/cache/apt/archives/bash_4.2-2ubuntu2.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


I tried sudo apt-get clean && sudo apt-get --reinstall install bash, and it outputs:



Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
bash-doc
The following packages will be upgraded:
bash
1 upgraded, 0 newly installed, 0 to remove and 114 not upgraded.
Need to get 616 kB of archives.
After this operation, 12.3 kB disk space will be freed.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main bash i386 4.2-2ubuntu2.1 [616 kB]
Fetched 616 kB in 1s (591 kB/s)
dpkg-deb: error: subprocess tar was killed by signal (Segmentation fault), core dumped
dpkg: error processing /var/cache/apt/archives/bash_4.2-2ubuntu2.1_i386.deb (--unpack):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/bash_4.2-2ubuntu2.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


My problem seems to be with the bash package as alaa said.










share|improve this question
















When I run sudo apt-get upgrade, the following error arises:



Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
mysql-client-5.5 mysql-server-5.5 mysql-server-core-5.5
The following packages will be upgraded:
accountsservice apport apt apt-transport-https apt-utils aptitude bash bash-completion bind9-host curl dbus dmsetup dnsutils icedtea-6-jre-cacao
icedtea-6-jre-jamvm iptables isc-dhcp-client isc-dhcp-common language-selector-common libaccountsservice0 libapt-inst1.4 libapt-pkg4.12 libasound2
libbind9-80 libc-bin libc-dev-bin libc6 libc6-dev libcups2 libcupsimage2 libcurl3 libcurl3-gnutls libdbus-1-3 libdevmapper1.02.1 libdns81
libdrm-intel1 libdrm-nouveau1a libdrm-radeon1 libdrm2 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgnutls26 libisc83 libisccc80 libisccfg82
liblwres80 libmysqlclient-dev libmysqlclient18 libnspr4 libnss3 libnss3-1d libplymouth2 libservlet2.5-java libssl-dev libssl-doc libssl1.0.0
libtiff4 libtomcat6-java libudev0 libx11-6 libx11-data libx11-xcb1 libxcb-glx0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb1 libxext6
libxfixes3 libxi6 libxinerama1 libxml2 libxrender1 libxslt1.1 libxt6 libxtst6 libxv1 libxxf86dga1 libxxf86vm1 linux-libc-dev multiarch-support
mysql-client mysql-client-core-5.5 mysql-common mysql-server nginx nginx-common nginx-full openjdk-6-jre-headless openjdk-6-jre-lib openssh-client
openssh-server openssl perl perl-base perl-modules plymouth plymouth-theme-ubuntu-text python-apport python-apt python-apt-common python-mysqldb
python-paramiko python-problem-report rsyslog tomcat6 tomcat6-admin tomcat6-common tomcat6-docs tomcat6-examples udev
112 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/88.4 MB of archives.
After this operation, 204 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Extracting templates from packages: 100%
Preconfiguring packages ...
dpkg-deb: error: subprocess tar was killed by signal (Segmentation fault), core dumped
dpkg: error processing /var/cache/apt/archives/bash_4.2-2ubuntu2.1_i386.deb (--unpack):
subprocess dpkg-deb --control returned error exit status 2
No apport report written because MaxReports is reached already
Errors were encountered while processing:
/var/cache/apt/archives/bash_4.2-2ubuntu2.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


I tried sudo apt-get clean && sudo apt-get --reinstall install bash, and it outputs:



Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
bash-doc
The following packages will be upgraded:
bash
1 upgraded, 0 newly installed, 0 to remove and 114 not upgraded.
Need to get 616 kB of archives.
After this operation, 12.3 kB disk space will be freed.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main bash i386 4.2-2ubuntu2.1 [616 kB]
Fetched 616 kB in 1s (591 kB/s)
dpkg-deb: error: subprocess tar was killed by signal (Segmentation fault), core dumped
dpkg: error processing /var/cache/apt/archives/bash_4.2-2ubuntu2.1_i386.deb (--unpack):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/bash_4.2-2ubuntu2.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


My problem seems to be with the bash package as alaa said.







upgrade apt dpkg






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 7 '17 at 23:56









Eliah Kagan

83.2k22229369




83.2k22229369










asked Jun 18 '13 at 11:59









amr.negmamr.negm

1615




1615













  • Try sudo apt-get -f install

    – douggro
    Jun 18 '13 at 12:18











  • I tried it but the problem still persists

    – amr.negm
    Jun 18 '13 at 12:49











  • Have you run a fsck? Could be corruption or physical damage.

    – Ken Sharp
    Dec 18 '15 at 22:32











  • do sudo dpkg -a --configure

    – j0h
    Feb 18 '16 at 2:44



















  • Try sudo apt-get -f install

    – douggro
    Jun 18 '13 at 12:18











  • I tried it but the problem still persists

    – amr.negm
    Jun 18 '13 at 12:49











  • Have you run a fsck? Could be corruption or physical damage.

    – Ken Sharp
    Dec 18 '15 at 22:32











  • do sudo dpkg -a --configure

    – j0h
    Feb 18 '16 at 2:44

















Try sudo apt-get -f install

– douggro
Jun 18 '13 at 12:18





Try sudo apt-get -f install

– douggro
Jun 18 '13 at 12:18













I tried it but the problem still persists

– amr.negm
Jun 18 '13 at 12:49





I tried it but the problem still persists

– amr.negm
Jun 18 '13 at 12:49













Have you run a fsck? Could be corruption or physical damage.

– Ken Sharp
Dec 18 '15 at 22:32





Have you run a fsck? Could be corruption or physical damage.

– Ken Sharp
Dec 18 '15 at 22:32













do sudo dpkg -a --configure

– j0h
Feb 18 '16 at 2:44





do sudo dpkg -a --configure

– j0h
Feb 18 '16 at 2:44










6 Answers
6






active

oldest

votes


















1














Your problem is with the bash package that's in the cache. Here's what you can try:




  1. Do sudo apt-get clean.

  2. Do sudo apt-get --reinstall install bash

  3. If it installs successfully, do sudo apt-get update, then do sudo apt-get upgrade.






share|improve this answer
























  • Wouldn't it be: "apt-get install' (before)" --reinstall"? or does this not matter? 'sudo aptitude apt-get install --reinstall bash'

    – DnrDevil
    Jan 18 '16 at 2:33













  • @DnrDevil shouldn't matter.

    – Alaa Ali
    Jan 18 '16 at 2:45



















0














Probably this helps:




sudo apt-get update --fix-missing




then this:




sudo apt-get dist-upgrade







share|improve this answer































    0














    This may be due to a broken dpkg system. Try this.




    1. sudo dpkg --configure -a

    2. sudo apt-get upgrade


    I hope this helps!






    share|improve this answer































      0














      Open the Terminal and do:



      sudo apt-get install -f


      Then:



      sudo apt-get update





      share|improve this answer


























      • did not work too

        – amr.negm
        Jun 18 '13 at 12:29











      • This fixes most problems with broken dependencies but if you read the output you see the OPs problem is not about broken dependencies.

        – derHugo
        Dec 8 '17 at 5:46



















      0














      I had the same problem and tried dozens of solutions I have found online but nothing worked. In the end, this is what fixed it for me:



      sudo touch /forcefsck



      sudo shutdown -rF now



      As seen here: https://askubuntu.com/a/47974






      share|improve this answer































        0














        The tar binary file is corrupted and you can validate this by running:



        tar --help


        and you get segmentation fault, core dumped.

        you should replace the /bin/tar binary with a healthy tar file from another host.






        share|improve this answer
























          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%2f309672%2fproblem-with-sudo-apt-get-upgrade%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          6 Answers
          6






          active

          oldest

          votes








          6 Answers
          6






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          Your problem is with the bash package that's in the cache. Here's what you can try:




          1. Do sudo apt-get clean.

          2. Do sudo apt-get --reinstall install bash

          3. If it installs successfully, do sudo apt-get update, then do sudo apt-get upgrade.






          share|improve this answer
























          • Wouldn't it be: "apt-get install' (before)" --reinstall"? or does this not matter? 'sudo aptitude apt-get install --reinstall bash'

            – DnrDevil
            Jan 18 '16 at 2:33













          • @DnrDevil shouldn't matter.

            – Alaa Ali
            Jan 18 '16 at 2:45
















          1














          Your problem is with the bash package that's in the cache. Here's what you can try:




          1. Do sudo apt-get clean.

          2. Do sudo apt-get --reinstall install bash

          3. If it installs successfully, do sudo apt-get update, then do sudo apt-get upgrade.






          share|improve this answer
























          • Wouldn't it be: "apt-get install' (before)" --reinstall"? or does this not matter? 'sudo aptitude apt-get install --reinstall bash'

            – DnrDevil
            Jan 18 '16 at 2:33













          • @DnrDevil shouldn't matter.

            – Alaa Ali
            Jan 18 '16 at 2:45














          1












          1








          1







          Your problem is with the bash package that's in the cache. Here's what you can try:




          1. Do sudo apt-get clean.

          2. Do sudo apt-get --reinstall install bash

          3. If it installs successfully, do sudo apt-get update, then do sudo apt-get upgrade.






          share|improve this answer













          Your problem is with the bash package that's in the cache. Here's what you can try:




          1. Do sudo apt-get clean.

          2. Do sudo apt-get --reinstall install bash

          3. If it installs successfully, do sudo apt-get update, then do sudo apt-get upgrade.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jun 18 '13 at 13:16









          Alaa AliAlaa Ali

          22.6k97095




          22.6k97095













          • Wouldn't it be: "apt-get install' (before)" --reinstall"? or does this not matter? 'sudo aptitude apt-get install --reinstall bash'

            – DnrDevil
            Jan 18 '16 at 2:33













          • @DnrDevil shouldn't matter.

            – Alaa Ali
            Jan 18 '16 at 2:45



















          • Wouldn't it be: "apt-get install' (before)" --reinstall"? or does this not matter? 'sudo aptitude apt-get install --reinstall bash'

            – DnrDevil
            Jan 18 '16 at 2:33













          • @DnrDevil shouldn't matter.

            – Alaa Ali
            Jan 18 '16 at 2:45

















          Wouldn't it be: "apt-get install' (before)" --reinstall"? or does this not matter? 'sudo aptitude apt-get install --reinstall bash'

          – DnrDevil
          Jan 18 '16 at 2:33







          Wouldn't it be: "apt-get install' (before)" --reinstall"? or does this not matter? 'sudo aptitude apt-get install --reinstall bash'

          – DnrDevil
          Jan 18 '16 at 2:33















          @DnrDevil shouldn't matter.

          – Alaa Ali
          Jan 18 '16 at 2:45





          @DnrDevil shouldn't matter.

          – Alaa Ali
          Jan 18 '16 at 2:45













          0














          Probably this helps:




          sudo apt-get update --fix-missing




          then this:




          sudo apt-get dist-upgrade







          share|improve this answer




























            0














            Probably this helps:




            sudo apt-get update --fix-missing




            then this:




            sudo apt-get dist-upgrade







            share|improve this answer


























              0












              0








              0







              Probably this helps:




              sudo apt-get update --fix-missing




              then this:




              sudo apt-get dist-upgrade







              share|improve this answer













              Probably this helps:




              sudo apt-get update --fix-missing




              then this:




              sudo apt-get dist-upgrade








              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Mar 8 '17 at 15:51









              dschinn1001dschinn1001

              2,31931935




              2,31931935























                  0














                  This may be due to a broken dpkg system. Try this.




                  1. sudo dpkg --configure -a

                  2. sudo apt-get upgrade


                  I hope this helps!






                  share|improve this answer




























                    0














                    This may be due to a broken dpkg system. Try this.




                    1. sudo dpkg --configure -a

                    2. sudo apt-get upgrade


                    I hope this helps!






                    share|improve this answer


























                      0












                      0








                      0







                      This may be due to a broken dpkg system. Try this.




                      1. sudo dpkg --configure -a

                      2. sudo apt-get upgrade


                      I hope this helps!






                      share|improve this answer













                      This may be due to a broken dpkg system. Try this.




                      1. sudo dpkg --configure -a

                      2. sudo apt-get upgrade


                      I hope this helps!







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Jun 24 '17 at 13:19









                      BONEPIEBONEPIEBONEPIEBONEPIE

                      811212




                      811212























                          0














                          Open the Terminal and do:



                          sudo apt-get install -f


                          Then:



                          sudo apt-get update





                          share|improve this answer


























                          • did not work too

                            – amr.negm
                            Jun 18 '13 at 12:29











                          • This fixes most problems with broken dependencies but if you read the output you see the OPs problem is not about broken dependencies.

                            – derHugo
                            Dec 8 '17 at 5:46
















                          0














                          Open the Terminal and do:



                          sudo apt-get install -f


                          Then:



                          sudo apt-get update





                          share|improve this answer


























                          • did not work too

                            – amr.negm
                            Jun 18 '13 at 12:29











                          • This fixes most problems with broken dependencies but if you read the output you see the OPs problem is not about broken dependencies.

                            – derHugo
                            Dec 8 '17 at 5:46














                          0












                          0








                          0







                          Open the Terminal and do:



                          sudo apt-get install -f


                          Then:



                          sudo apt-get update





                          share|improve this answer















                          Open the Terminal and do:



                          sudo apt-get install -f


                          Then:



                          sudo apt-get update






                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Dec 7 '17 at 23:57









                          Eliah Kagan

                          83.2k22229369




                          83.2k22229369










                          answered Jun 18 '13 at 12:23









                          YassineYassine

                          37915




                          37915













                          • did not work too

                            – amr.negm
                            Jun 18 '13 at 12:29











                          • This fixes most problems with broken dependencies but if you read the output you see the OPs problem is not about broken dependencies.

                            – derHugo
                            Dec 8 '17 at 5:46



















                          • did not work too

                            – amr.negm
                            Jun 18 '13 at 12:29











                          • This fixes most problems with broken dependencies but if you read the output you see the OPs problem is not about broken dependencies.

                            – derHugo
                            Dec 8 '17 at 5:46

















                          did not work too

                          – amr.negm
                          Jun 18 '13 at 12:29





                          did not work too

                          – amr.negm
                          Jun 18 '13 at 12:29













                          This fixes most problems with broken dependencies but if you read the output you see the OPs problem is not about broken dependencies.

                          – derHugo
                          Dec 8 '17 at 5:46





                          This fixes most problems with broken dependencies but if you read the output you see the OPs problem is not about broken dependencies.

                          – derHugo
                          Dec 8 '17 at 5:46











                          0














                          I had the same problem and tried dozens of solutions I have found online but nothing worked. In the end, this is what fixed it for me:



                          sudo touch /forcefsck



                          sudo shutdown -rF now



                          As seen here: https://askubuntu.com/a/47974






                          share|improve this answer




























                            0














                            I had the same problem and tried dozens of solutions I have found online but nothing worked. In the end, this is what fixed it for me:



                            sudo touch /forcefsck



                            sudo shutdown -rF now



                            As seen here: https://askubuntu.com/a/47974






                            share|improve this answer


























                              0












                              0








                              0







                              I had the same problem and tried dozens of solutions I have found online but nothing worked. In the end, this is what fixed it for me:



                              sudo touch /forcefsck



                              sudo shutdown -rF now



                              As seen here: https://askubuntu.com/a/47974






                              share|improve this answer













                              I had the same problem and tried dozens of solutions I have found online but nothing worked. In the end, this is what fixed it for me:



                              sudo touch /forcefsck



                              sudo shutdown -rF now



                              As seen here: https://askubuntu.com/a/47974







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Mar 22 at 13:41









                              Vapid LinusVapid Linus

                              1011




                              1011























                                  0














                                  The tar binary file is corrupted and you can validate this by running:



                                  tar --help


                                  and you get segmentation fault, core dumped.

                                  you should replace the /bin/tar binary with a healthy tar file from another host.






                                  share|improve this answer




























                                    0














                                    The tar binary file is corrupted and you can validate this by running:



                                    tar --help


                                    and you get segmentation fault, core dumped.

                                    you should replace the /bin/tar binary with a healthy tar file from another host.






                                    share|improve this answer


























                                      0












                                      0








                                      0







                                      The tar binary file is corrupted and you can validate this by running:



                                      tar --help


                                      and you get segmentation fault, core dumped.

                                      you should replace the /bin/tar binary with a healthy tar file from another host.






                                      share|improve this answer













                                      The tar binary file is corrupted and you can validate this by running:



                                      tar --help


                                      and you get segmentation fault, core dumped.

                                      you should replace the /bin/tar binary with a healthy tar file from another host.







                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered Mar 30 at 12:02









                                      Ghasem PahlavanGhasem Pahlavan

                                      1,231717




                                      1,231717






























                                          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%2f309672%2fproblem-with-sudo-apt-get-upgrade%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

                                          How did Captain America manage to do this?

                                          迪纳利

                                          南乌拉尔铁路局