How to re-install libgcc1:i386 which breaks libgcc1?












0















So, I went and did something very stupid. I have ubuntu-toolchain-r repository added to repositories which has up to some time ago provided libgcc1:i386 among other things. For a some time now the i386 packages have been shown as kept back during upgrades. I've ignored those since they are rather vital libraries but today I decided to look into it a bit.



I stumbled upon this "The following packages have been kept back:" Why and how do I solve it? and went to use the aptitude gui approach without realizing that it shall do basically the same thing as apt-get dist upgrade and as the gui hanged for a while, it took in my key presses after a while without me having a chance to do anything before it started to do some horrid package removing to my misfortune. I went and killed the aptitude process but a lot of damage was already done.



So afterwards killing aptitude I carefully went through the list of packages that it had removed and re-installed those. All except the ones that need ia32-libs or libc6:i386, meaning for example my wine and lots of other 32-bit applications and packages that I use because it all comes down to the fact that I can't re-install libgcc1:i386 package since it breaks libgcc1 package and vice versa (same goes for libstdc++6).



ahti@ahti:~$ sudo apt-get install libgcc1:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libgcc1 : Breaks: libgcc1:i386 (!= 1:4.9.2-0ubuntu1~12.04) but 1:5-20150401-0ubuntu12~12.04 is to be installed
libgcc1:i386 : Breaks: libgcc1 (!= 1:5-20150401-0ubuntu12~12.04) but 1:4.9.2-0ubuntu1~12.04 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.


So previously libgcc1:i386 was kept back in my system not causing any problems. Now that it's not there anymore and can't be re-installed it's bringing me a lot of things I can't re-install or use.



Here are results for apt-cache policy command:



ahti@ahti:~$ apt-cache policy libgcc1
libgcc1:
Installed: 1:4.9.2-0ubuntu1~12.04
Candidate: 1:4.9.2-0ubuntu1~12.04
Version table:
*** 1:4.9.2-0ubuntu1~12.04 0
500 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main amd64 Packages
100 /var/lib/dpkg/status
1:4.6.3-1ubuntu5 0
500 http://fi.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
ahti@ahti:~$ apt-cache policy libgcc1:i386
libgcc1:i386:
Installed: (none)
Candidate: 1:5-20150401-0ubuntu12~12.04
Version table:
1:5-20150401-0ubuntu12~12.04 0
500 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main i386 Packages
1:4.9.2-0ubuntu1~12.04 0
100 /var/lib/dpkg/status
1:4.6.3-1ubuntu5 0
500 http://fi.archive.ubuntu.com/ubuntu/ precise/main i386 Packages


Also I do have foreign-architecture i386 in my /etc/dpkg/dpkg.cfg.d/multiarch and here's a result of aptitude install wine command.



Is there anything I can do? This was a classic case of "if it ain't broken, don't fix it". Please help?



My system is 64-bit Ubuntu 12.04.5 with 3.2.0-80-generic kernel and gnome-session-fallback.










share|improve this question
















bumped to the homepage by Community 5 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    0















    So, I went and did something very stupid. I have ubuntu-toolchain-r repository added to repositories which has up to some time ago provided libgcc1:i386 among other things. For a some time now the i386 packages have been shown as kept back during upgrades. I've ignored those since they are rather vital libraries but today I decided to look into it a bit.



    I stumbled upon this "The following packages have been kept back:" Why and how do I solve it? and went to use the aptitude gui approach without realizing that it shall do basically the same thing as apt-get dist upgrade and as the gui hanged for a while, it took in my key presses after a while without me having a chance to do anything before it started to do some horrid package removing to my misfortune. I went and killed the aptitude process but a lot of damage was already done.



    So afterwards killing aptitude I carefully went through the list of packages that it had removed and re-installed those. All except the ones that need ia32-libs or libc6:i386, meaning for example my wine and lots of other 32-bit applications and packages that I use because it all comes down to the fact that I can't re-install libgcc1:i386 package since it breaks libgcc1 package and vice versa (same goes for libstdc++6).



    ahti@ahti:~$ sudo apt-get install libgcc1:i386
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    libgcc1 : Breaks: libgcc1:i386 (!= 1:4.9.2-0ubuntu1~12.04) but 1:5-20150401-0ubuntu12~12.04 is to be installed
    libgcc1:i386 : Breaks: libgcc1 (!= 1:5-20150401-0ubuntu12~12.04) but 1:4.9.2-0ubuntu1~12.04 is to be installed
    E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.


    So previously libgcc1:i386 was kept back in my system not causing any problems. Now that it's not there anymore and can't be re-installed it's bringing me a lot of things I can't re-install or use.



    Here are results for apt-cache policy command:



    ahti@ahti:~$ apt-cache policy libgcc1
    libgcc1:
    Installed: 1:4.9.2-0ubuntu1~12.04
    Candidate: 1:4.9.2-0ubuntu1~12.04
    Version table:
    *** 1:4.9.2-0ubuntu1~12.04 0
    500 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main amd64 Packages
    100 /var/lib/dpkg/status
    1:4.6.3-1ubuntu5 0
    500 http://fi.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
    ahti@ahti:~$ apt-cache policy libgcc1:i386
    libgcc1:i386:
    Installed: (none)
    Candidate: 1:5-20150401-0ubuntu12~12.04
    Version table:
    1:5-20150401-0ubuntu12~12.04 0
    500 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main i386 Packages
    1:4.9.2-0ubuntu1~12.04 0
    100 /var/lib/dpkg/status
    1:4.6.3-1ubuntu5 0
    500 http://fi.archive.ubuntu.com/ubuntu/ precise/main i386 Packages


    Also I do have foreign-architecture i386 in my /etc/dpkg/dpkg.cfg.d/multiarch and here's a result of aptitude install wine command.



    Is there anything I can do? This was a classic case of "if it ain't broken, don't fix it". Please help?



    My system is 64-bit Ubuntu 12.04.5 with 3.2.0-80-generic kernel and gnome-session-fallback.










    share|improve this question
















    bumped to the homepage by Community 5 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      0












      0








      0








      So, I went and did something very stupid. I have ubuntu-toolchain-r repository added to repositories which has up to some time ago provided libgcc1:i386 among other things. For a some time now the i386 packages have been shown as kept back during upgrades. I've ignored those since they are rather vital libraries but today I decided to look into it a bit.



      I stumbled upon this "The following packages have been kept back:" Why and how do I solve it? and went to use the aptitude gui approach without realizing that it shall do basically the same thing as apt-get dist upgrade and as the gui hanged for a while, it took in my key presses after a while without me having a chance to do anything before it started to do some horrid package removing to my misfortune. I went and killed the aptitude process but a lot of damage was already done.



      So afterwards killing aptitude I carefully went through the list of packages that it had removed and re-installed those. All except the ones that need ia32-libs or libc6:i386, meaning for example my wine and lots of other 32-bit applications and packages that I use because it all comes down to the fact that I can't re-install libgcc1:i386 package since it breaks libgcc1 package and vice versa (same goes for libstdc++6).



      ahti@ahti:~$ sudo apt-get install libgcc1:i386
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Some packages could not be installed. This may mean that you have
      requested an impossible situation or if you are using the unstable
      distribution that some required packages have not yet been created
      or been moved out of Incoming.
      The following information may help to resolve the situation:

      The following packages have unmet dependencies:
      libgcc1 : Breaks: libgcc1:i386 (!= 1:4.9.2-0ubuntu1~12.04) but 1:5-20150401-0ubuntu12~12.04 is to be installed
      libgcc1:i386 : Breaks: libgcc1 (!= 1:5-20150401-0ubuntu12~12.04) but 1:4.9.2-0ubuntu1~12.04 is to be installed
      E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.


      So previously libgcc1:i386 was kept back in my system not causing any problems. Now that it's not there anymore and can't be re-installed it's bringing me a lot of things I can't re-install or use.



      Here are results for apt-cache policy command:



      ahti@ahti:~$ apt-cache policy libgcc1
      libgcc1:
      Installed: 1:4.9.2-0ubuntu1~12.04
      Candidate: 1:4.9.2-0ubuntu1~12.04
      Version table:
      *** 1:4.9.2-0ubuntu1~12.04 0
      500 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main amd64 Packages
      100 /var/lib/dpkg/status
      1:4.6.3-1ubuntu5 0
      500 http://fi.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
      ahti@ahti:~$ apt-cache policy libgcc1:i386
      libgcc1:i386:
      Installed: (none)
      Candidate: 1:5-20150401-0ubuntu12~12.04
      Version table:
      1:5-20150401-0ubuntu12~12.04 0
      500 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main i386 Packages
      1:4.9.2-0ubuntu1~12.04 0
      100 /var/lib/dpkg/status
      1:4.6.3-1ubuntu5 0
      500 http://fi.archive.ubuntu.com/ubuntu/ precise/main i386 Packages


      Also I do have foreign-architecture i386 in my /etc/dpkg/dpkg.cfg.d/multiarch and here's a result of aptitude install wine command.



      Is there anything I can do? This was a classic case of "if it ain't broken, don't fix it". Please help?



      My system is 64-bit Ubuntu 12.04.5 with 3.2.0-80-generic kernel and gnome-session-fallback.










      share|improve this question
















      So, I went and did something very stupid. I have ubuntu-toolchain-r repository added to repositories which has up to some time ago provided libgcc1:i386 among other things. For a some time now the i386 packages have been shown as kept back during upgrades. I've ignored those since they are rather vital libraries but today I decided to look into it a bit.



      I stumbled upon this "The following packages have been kept back:" Why and how do I solve it? and went to use the aptitude gui approach without realizing that it shall do basically the same thing as apt-get dist upgrade and as the gui hanged for a while, it took in my key presses after a while without me having a chance to do anything before it started to do some horrid package removing to my misfortune. I went and killed the aptitude process but a lot of damage was already done.



      So afterwards killing aptitude I carefully went through the list of packages that it had removed and re-installed those. All except the ones that need ia32-libs or libc6:i386, meaning for example my wine and lots of other 32-bit applications and packages that I use because it all comes down to the fact that I can't re-install libgcc1:i386 package since it breaks libgcc1 package and vice versa (same goes for libstdc++6).



      ahti@ahti:~$ sudo apt-get install libgcc1:i386
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Some packages could not be installed. This may mean that you have
      requested an impossible situation or if you are using the unstable
      distribution that some required packages have not yet been created
      or been moved out of Incoming.
      The following information may help to resolve the situation:

      The following packages have unmet dependencies:
      libgcc1 : Breaks: libgcc1:i386 (!= 1:4.9.2-0ubuntu1~12.04) but 1:5-20150401-0ubuntu12~12.04 is to be installed
      libgcc1:i386 : Breaks: libgcc1 (!= 1:5-20150401-0ubuntu12~12.04) but 1:4.9.2-0ubuntu1~12.04 is to be installed
      E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.


      So previously libgcc1:i386 was kept back in my system not causing any problems. Now that it's not there anymore and can't be re-installed it's bringing me a lot of things I can't re-install or use.



      Here are results for apt-cache policy command:



      ahti@ahti:~$ apt-cache policy libgcc1
      libgcc1:
      Installed: 1:4.9.2-0ubuntu1~12.04
      Candidate: 1:4.9.2-0ubuntu1~12.04
      Version table:
      *** 1:4.9.2-0ubuntu1~12.04 0
      500 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main amd64 Packages
      100 /var/lib/dpkg/status
      1:4.6.3-1ubuntu5 0
      500 http://fi.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
      ahti@ahti:~$ apt-cache policy libgcc1:i386
      libgcc1:i386:
      Installed: (none)
      Candidate: 1:5-20150401-0ubuntu12~12.04
      Version table:
      1:5-20150401-0ubuntu12~12.04 0
      500 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main i386 Packages
      1:4.9.2-0ubuntu1~12.04 0
      100 /var/lib/dpkg/status
      1:4.6.3-1ubuntu5 0
      500 http://fi.archive.ubuntu.com/ubuntu/ precise/main i386 Packages


      Also I do have foreign-architecture i386 in my /etc/dpkg/dpkg.cfg.d/multiarch and here's a result of aptitude install wine command.



      Is there anything I can do? This was a classic case of "if it ain't broken, don't fix it". Please help?



      My system is 64-bit Ubuntu 12.04.5 with 3.2.0-80-generic kernel and gnome-session-fallback.







      apt package-management wine aptitude multiarch






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 13 '17 at 12:24









      Community

      1




      1










      asked Apr 16 '15 at 10:38









      Ahti KomuAhti Komu

      40737




      40737





      bumped to the homepage by Community 5 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 5 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          Have you tried installing the libgcc1 package that is requested?



          sudo apt-get install libgcc1:i386=1:4.9.2-0ubuntu1~12.04


          or pin it:



          sudo sh -c "echo -e 'Package: libgcc1:i386nPin: version 1:4.9.2*nPin-Priority: 500'  > /etc/apt/preferences.d/multiarch-libgcc1"





          share|improve this answer
























          • The first command gave me this: ahti@ahti:~$ sudo apt-get install libgcc1:i386=1:4.9.2-0ubuntu1~12.04 Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libc6:i386 Suggested packages: glibc-doc:i386 locales:i386 The following NEW packages will be installed: libc6:i386 libgcc1:i386 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. E: I wasn't able to locate a file for the libgcc1 package. This might mean you need to manually fix this package.

            – Ahti Komu
            Apr 17 '15 at 8:28













          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%2f609959%2fhow-to-re-install-libgcc1i386-which-breaks-libgcc1%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Have you tried installing the libgcc1 package that is requested?



          sudo apt-get install libgcc1:i386=1:4.9.2-0ubuntu1~12.04


          or pin it:



          sudo sh -c "echo -e 'Package: libgcc1:i386nPin: version 1:4.9.2*nPin-Priority: 500'  > /etc/apt/preferences.d/multiarch-libgcc1"





          share|improve this answer
























          • The first command gave me this: ahti@ahti:~$ sudo apt-get install libgcc1:i386=1:4.9.2-0ubuntu1~12.04 Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libc6:i386 Suggested packages: glibc-doc:i386 locales:i386 The following NEW packages will be installed: libc6:i386 libgcc1:i386 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. E: I wasn't able to locate a file for the libgcc1 package. This might mean you need to manually fix this package.

            – Ahti Komu
            Apr 17 '15 at 8:28


















          0














          Have you tried installing the libgcc1 package that is requested?



          sudo apt-get install libgcc1:i386=1:4.9.2-0ubuntu1~12.04


          or pin it:



          sudo sh -c "echo -e 'Package: libgcc1:i386nPin: version 1:4.9.2*nPin-Priority: 500'  > /etc/apt/preferences.d/multiarch-libgcc1"





          share|improve this answer
























          • The first command gave me this: ahti@ahti:~$ sudo apt-get install libgcc1:i386=1:4.9.2-0ubuntu1~12.04 Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libc6:i386 Suggested packages: glibc-doc:i386 locales:i386 The following NEW packages will be installed: libc6:i386 libgcc1:i386 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. E: I wasn't able to locate a file for the libgcc1 package. This might mean you need to manually fix this package.

            – Ahti Komu
            Apr 17 '15 at 8:28
















          0












          0








          0







          Have you tried installing the libgcc1 package that is requested?



          sudo apt-get install libgcc1:i386=1:4.9.2-0ubuntu1~12.04


          or pin it:



          sudo sh -c "echo -e 'Package: libgcc1:i386nPin: version 1:4.9.2*nPin-Priority: 500'  > /etc/apt/preferences.d/multiarch-libgcc1"





          share|improve this answer













          Have you tried installing the libgcc1 package that is requested?



          sudo apt-get install libgcc1:i386=1:4.9.2-0ubuntu1~12.04


          or pin it:



          sudo sh -c "echo -e 'Package: libgcc1:i386nPin: version 1:4.9.2*nPin-Priority: 500'  > /etc/apt/preferences.d/multiarch-libgcc1"






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 16 '15 at 19:30









          fritzfritz

          212




          212













          • The first command gave me this: ahti@ahti:~$ sudo apt-get install libgcc1:i386=1:4.9.2-0ubuntu1~12.04 Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libc6:i386 Suggested packages: glibc-doc:i386 locales:i386 The following NEW packages will be installed: libc6:i386 libgcc1:i386 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. E: I wasn't able to locate a file for the libgcc1 package. This might mean you need to manually fix this package.

            – Ahti Komu
            Apr 17 '15 at 8:28





















          • The first command gave me this: ahti@ahti:~$ sudo apt-get install libgcc1:i386=1:4.9.2-0ubuntu1~12.04 Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libc6:i386 Suggested packages: glibc-doc:i386 locales:i386 The following NEW packages will be installed: libc6:i386 libgcc1:i386 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. E: I wasn't able to locate a file for the libgcc1 package. This might mean you need to manually fix this package.

            – Ahti Komu
            Apr 17 '15 at 8:28



















          The first command gave me this: ahti@ahti:~$ sudo apt-get install libgcc1:i386=1:4.9.2-0ubuntu1~12.04 Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libc6:i386 Suggested packages: glibc-doc:i386 locales:i386 The following NEW packages will be installed: libc6:i386 libgcc1:i386 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. E: I wasn't able to locate a file for the libgcc1 package. This might mean you need to manually fix this package.

          – Ahti Komu
          Apr 17 '15 at 8:28







          The first command gave me this: ahti@ahti:~$ sudo apt-get install libgcc1:i386=1:4.9.2-0ubuntu1~12.04 Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libc6:i386 Suggested packages: glibc-doc:i386 locales:i386 The following NEW packages will be installed: libc6:i386 libgcc1:i386 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. E: I wasn't able to locate a file for the libgcc1 package. This might mean you need to manually fix this package.

          – Ahti Komu
          Apr 17 '15 at 8:28




















          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%2f609959%2fhow-to-re-install-libgcc1i386-which-breaks-libgcc1%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

          GameSpot

          connect to host localhost port 22: Connection refused

          Getting a Wifi WPA2 wifi connection