Upgrade from gdb 7.7 to 7.8












9















How to upgrade my GDB debugger from the current version which is 7.7 to the next version which is 7.8, Also I'm working on Ubuntu 14.04.1?










share|improve this question



























    9















    How to upgrade my GDB debugger from the current version which is 7.7 to the next version which is 7.8, Also I'm working on Ubuntu 14.04.1?










    share|improve this question

























      9












      9








      9


      5






      How to upgrade my GDB debugger from the current version which is 7.7 to the next version which is 7.8, Also I'm working on Ubuntu 14.04.1?










      share|improve this question














      How to upgrade my GDB debugger from the current version which is 7.7 to the next version which is 7.8, Also I'm working on Ubuntu 14.04.1?







      gdb






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 28 '14 at 19:18









      Belal MedhatBelal Medhat

      67128




      67128






















          3 Answers
          3






          active

          oldest

          votes


















          12














          gdb 7.8 is currently not available in trusty repo. But you can install it from the source.



          Open terminal and type following commands



          wget http://ftp.gnu.org/gnu/gdb/gdb-7.8.tar.xz
          tar -xf gdb-7.8.tar.xz
          cd gdb-7.8/
          ./configure
          make
          sudo cp gdb/gdb /usr/local/bin/gdb


          It will install gdb in /usr/local/bin/ directory. As /usr/local/bin/ is searched before /usr/bin/ whenever a command is executed, running gdb will execute gdb 7.8.



          Once installed, you can check gdb version using



          gdb --version


          It should output



          GNU gdb (GDB) 7.8
          Copyright (C) 2014 Free Software Foundation, Inc.
          License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
          This is free software: you are free to change and redistribute it.
          There is NO WARRANTY, to the extent permitted by law. Type "show copying"
          and "show warranty" for details.
          This GDB was configured as "i686-pc-linux-gnu".
          Type "show configuration" for configuration details.
          For bug reporting instructions, please see:
          <http://www.gnu.org/software/gdb/bugs/>.
          Find the GDB manual and other documentation resources online at:
          <http://www.gnu.org/software/gdb/documentation/>.
          For help, type "help".
          Type "apropos word" to search for commands related to "word".




          If you want to uninstall it simply remove gdb from /usr/local/bin/ by executing



          sudo rm /usr/local/bin/gdb





          share|improve this answer


























          • Actually gdb is available in the repositories. What makes you say it is not?

            – Thomas Ward
            Sep 28 '14 at 21:16











          • (note the gdb in the repositories is NOT 7.8. You may want to add the clarification for that in your answer here)

            – Thomas Ward
            Sep 28 '14 at 23:15











          • Ok. It have added it. It was a typo.

            – g_p
            Sep 29 '14 at 3:00






          • 1





            The answer didn't address the conflicts between the original and newly installed versions of gdb. Also, gdb doesn't provide means for make uninstall. So one should use sudo checkinstall to keep track of everything. A blunt make install will render a major pain if you decide to uninstall the package sometime in the future.

            – Naitree
            Jan 23 '15 at 2:31








          • 2





            Copying to /usr/local/bin/gdb did not do the job for me. When I copied to /usr/bin, it worked, but I get the following error: Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing:

            – AlwaysLearning
            Nov 11 '15 at 18:11



















          1














          Updating GDB from 7.7.1 to 8.2 on Ubuntu 14.04:



          sudo add-apt-repository ppa:ubuntu-toolchain-r/test
          sudo apt-get update
          sudo apt-get -y --force-yes install gdb
          gdb -v
          sudo add-apt-repository --remove ppa:ubuntu-toolchain-r/test
          sudo apt-get update





          share|improve this answer































            0














            The top answer didn't work for me. For some reason I also needed this package to complete the make:



            sudo apt-get install texinfo


            Then I highly recommend to install this the correct way. I installed the checkinstall utility (which will create a debian package to auto-track all your files generated by make):



            sudo apt-get update && sudo apt-get install checkinstall


            Now call these commands:



            wget http://ftp.gnu.org/gnu/gdb/gdb-7.8.tar.xz
            tar -xf gdb-7.8.tar.xz
            cd gdb-7.8/
            ./configure
            sudo checkinstall


            Verify that this crated a *.deb file in the current directory (mine was gdb_7.8-1_amd64.deb). So now let's install it the correct way, go ahead and:




            1. uninstall gdb quick

            2. set the install path of the *.deb

            3. then install it using apt-get


            using these respective commands:



            sudo dpkg -r gdb
            sudo dpkg -i ~/gdb-7.8/gdb_7.8-1_amd64.deb
            sudo apt-get install -f


            Now you have a properly installed package, and you can remove it using sudo apt-get remove gdb OR sudo dpkg -r gdb. Note that I tested this with gdb 8.0.1, but I assume it should work for any version.






            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%2f529781%2fupgrade-from-gdb-7-7-to-7-8%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              12














              gdb 7.8 is currently not available in trusty repo. But you can install it from the source.



              Open terminal and type following commands



              wget http://ftp.gnu.org/gnu/gdb/gdb-7.8.tar.xz
              tar -xf gdb-7.8.tar.xz
              cd gdb-7.8/
              ./configure
              make
              sudo cp gdb/gdb /usr/local/bin/gdb


              It will install gdb in /usr/local/bin/ directory. As /usr/local/bin/ is searched before /usr/bin/ whenever a command is executed, running gdb will execute gdb 7.8.



              Once installed, you can check gdb version using



              gdb --version


              It should output



              GNU gdb (GDB) 7.8
              Copyright (C) 2014 Free Software Foundation, Inc.
              License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
              This is free software: you are free to change and redistribute it.
              There is NO WARRANTY, to the extent permitted by law. Type "show copying"
              and "show warranty" for details.
              This GDB was configured as "i686-pc-linux-gnu".
              Type "show configuration" for configuration details.
              For bug reporting instructions, please see:
              <http://www.gnu.org/software/gdb/bugs/>.
              Find the GDB manual and other documentation resources online at:
              <http://www.gnu.org/software/gdb/documentation/>.
              For help, type "help".
              Type "apropos word" to search for commands related to "word".




              If you want to uninstall it simply remove gdb from /usr/local/bin/ by executing



              sudo rm /usr/local/bin/gdb





              share|improve this answer


























              • Actually gdb is available in the repositories. What makes you say it is not?

                – Thomas Ward
                Sep 28 '14 at 21:16











              • (note the gdb in the repositories is NOT 7.8. You may want to add the clarification for that in your answer here)

                – Thomas Ward
                Sep 28 '14 at 23:15











              • Ok. It have added it. It was a typo.

                – g_p
                Sep 29 '14 at 3:00






              • 1





                The answer didn't address the conflicts between the original and newly installed versions of gdb. Also, gdb doesn't provide means for make uninstall. So one should use sudo checkinstall to keep track of everything. A blunt make install will render a major pain if you decide to uninstall the package sometime in the future.

                – Naitree
                Jan 23 '15 at 2:31








              • 2





                Copying to /usr/local/bin/gdb did not do the job for me. When I copied to /usr/bin, it worked, but I get the following error: Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing:

                – AlwaysLearning
                Nov 11 '15 at 18:11
















              12














              gdb 7.8 is currently not available in trusty repo. But you can install it from the source.



              Open terminal and type following commands



              wget http://ftp.gnu.org/gnu/gdb/gdb-7.8.tar.xz
              tar -xf gdb-7.8.tar.xz
              cd gdb-7.8/
              ./configure
              make
              sudo cp gdb/gdb /usr/local/bin/gdb


              It will install gdb in /usr/local/bin/ directory. As /usr/local/bin/ is searched before /usr/bin/ whenever a command is executed, running gdb will execute gdb 7.8.



              Once installed, you can check gdb version using



              gdb --version


              It should output



              GNU gdb (GDB) 7.8
              Copyright (C) 2014 Free Software Foundation, Inc.
              License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
              This is free software: you are free to change and redistribute it.
              There is NO WARRANTY, to the extent permitted by law. Type "show copying"
              and "show warranty" for details.
              This GDB was configured as "i686-pc-linux-gnu".
              Type "show configuration" for configuration details.
              For bug reporting instructions, please see:
              <http://www.gnu.org/software/gdb/bugs/>.
              Find the GDB manual and other documentation resources online at:
              <http://www.gnu.org/software/gdb/documentation/>.
              For help, type "help".
              Type "apropos word" to search for commands related to "word".




              If you want to uninstall it simply remove gdb from /usr/local/bin/ by executing



              sudo rm /usr/local/bin/gdb





              share|improve this answer


























              • Actually gdb is available in the repositories. What makes you say it is not?

                – Thomas Ward
                Sep 28 '14 at 21:16











              • (note the gdb in the repositories is NOT 7.8. You may want to add the clarification for that in your answer here)

                – Thomas Ward
                Sep 28 '14 at 23:15











              • Ok. It have added it. It was a typo.

                – g_p
                Sep 29 '14 at 3:00






              • 1





                The answer didn't address the conflicts between the original and newly installed versions of gdb. Also, gdb doesn't provide means for make uninstall. So one should use sudo checkinstall to keep track of everything. A blunt make install will render a major pain if you decide to uninstall the package sometime in the future.

                – Naitree
                Jan 23 '15 at 2:31








              • 2





                Copying to /usr/local/bin/gdb did not do the job for me. When I copied to /usr/bin, it worked, but I get the following error: Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing:

                – AlwaysLearning
                Nov 11 '15 at 18:11














              12












              12








              12







              gdb 7.8 is currently not available in trusty repo. But you can install it from the source.



              Open terminal and type following commands



              wget http://ftp.gnu.org/gnu/gdb/gdb-7.8.tar.xz
              tar -xf gdb-7.8.tar.xz
              cd gdb-7.8/
              ./configure
              make
              sudo cp gdb/gdb /usr/local/bin/gdb


              It will install gdb in /usr/local/bin/ directory. As /usr/local/bin/ is searched before /usr/bin/ whenever a command is executed, running gdb will execute gdb 7.8.



              Once installed, you can check gdb version using



              gdb --version


              It should output



              GNU gdb (GDB) 7.8
              Copyright (C) 2014 Free Software Foundation, Inc.
              License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
              This is free software: you are free to change and redistribute it.
              There is NO WARRANTY, to the extent permitted by law. Type "show copying"
              and "show warranty" for details.
              This GDB was configured as "i686-pc-linux-gnu".
              Type "show configuration" for configuration details.
              For bug reporting instructions, please see:
              <http://www.gnu.org/software/gdb/bugs/>.
              Find the GDB manual and other documentation resources online at:
              <http://www.gnu.org/software/gdb/documentation/>.
              For help, type "help".
              Type "apropos word" to search for commands related to "word".




              If you want to uninstall it simply remove gdb from /usr/local/bin/ by executing



              sudo rm /usr/local/bin/gdb





              share|improve this answer















              gdb 7.8 is currently not available in trusty repo. But you can install it from the source.



              Open terminal and type following commands



              wget http://ftp.gnu.org/gnu/gdb/gdb-7.8.tar.xz
              tar -xf gdb-7.8.tar.xz
              cd gdb-7.8/
              ./configure
              make
              sudo cp gdb/gdb /usr/local/bin/gdb


              It will install gdb in /usr/local/bin/ directory. As /usr/local/bin/ is searched before /usr/bin/ whenever a command is executed, running gdb will execute gdb 7.8.



              Once installed, you can check gdb version using



              gdb --version


              It should output



              GNU gdb (GDB) 7.8
              Copyright (C) 2014 Free Software Foundation, Inc.
              License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
              This is free software: you are free to change and redistribute it.
              There is NO WARRANTY, to the extent permitted by law. Type "show copying"
              and "show warranty" for details.
              This GDB was configured as "i686-pc-linux-gnu".
              Type "show configuration" for configuration details.
              For bug reporting instructions, please see:
              <http://www.gnu.org/software/gdb/bugs/>.
              Find the GDB manual and other documentation resources online at:
              <http://www.gnu.org/software/gdb/documentation/>.
              For help, type "help".
              Type "apropos word" to search for commands related to "word".




              If you want to uninstall it simply remove gdb from /usr/local/bin/ by executing



              sudo rm /usr/local/bin/gdb






              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Jan 23 '15 at 16:20

























              answered Sep 28 '14 at 20:01









              g_pg_p

              12.6k24461




              12.6k24461













              • Actually gdb is available in the repositories. What makes you say it is not?

                – Thomas Ward
                Sep 28 '14 at 21:16











              • (note the gdb in the repositories is NOT 7.8. You may want to add the clarification for that in your answer here)

                – Thomas Ward
                Sep 28 '14 at 23:15











              • Ok. It have added it. It was a typo.

                – g_p
                Sep 29 '14 at 3:00






              • 1





                The answer didn't address the conflicts between the original and newly installed versions of gdb. Also, gdb doesn't provide means for make uninstall. So one should use sudo checkinstall to keep track of everything. A blunt make install will render a major pain if you decide to uninstall the package sometime in the future.

                – Naitree
                Jan 23 '15 at 2:31








              • 2





                Copying to /usr/local/bin/gdb did not do the job for me. When I copied to /usr/bin, it worked, but I get the following error: Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing:

                – AlwaysLearning
                Nov 11 '15 at 18:11



















              • Actually gdb is available in the repositories. What makes you say it is not?

                – Thomas Ward
                Sep 28 '14 at 21:16











              • (note the gdb in the repositories is NOT 7.8. You may want to add the clarification for that in your answer here)

                – Thomas Ward
                Sep 28 '14 at 23:15











              • Ok. It have added it. It was a typo.

                – g_p
                Sep 29 '14 at 3:00






              • 1





                The answer didn't address the conflicts between the original and newly installed versions of gdb. Also, gdb doesn't provide means for make uninstall. So one should use sudo checkinstall to keep track of everything. A blunt make install will render a major pain if you decide to uninstall the package sometime in the future.

                – Naitree
                Jan 23 '15 at 2:31








              • 2





                Copying to /usr/local/bin/gdb did not do the job for me. When I copied to /usr/bin, it worked, but I get the following error: Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing:

                – AlwaysLearning
                Nov 11 '15 at 18:11

















              Actually gdb is available in the repositories. What makes you say it is not?

              – Thomas Ward
              Sep 28 '14 at 21:16





              Actually gdb is available in the repositories. What makes you say it is not?

              – Thomas Ward
              Sep 28 '14 at 21:16













              (note the gdb in the repositories is NOT 7.8. You may want to add the clarification for that in your answer here)

              – Thomas Ward
              Sep 28 '14 at 23:15





              (note the gdb in the repositories is NOT 7.8. You may want to add the clarification for that in your answer here)

              – Thomas Ward
              Sep 28 '14 at 23:15













              Ok. It have added it. It was a typo.

              – g_p
              Sep 29 '14 at 3:00





              Ok. It have added it. It was a typo.

              – g_p
              Sep 29 '14 at 3:00




              1




              1





              The answer didn't address the conflicts between the original and newly installed versions of gdb. Also, gdb doesn't provide means for make uninstall. So one should use sudo checkinstall to keep track of everything. A blunt make install will render a major pain if you decide to uninstall the package sometime in the future.

              – Naitree
              Jan 23 '15 at 2:31







              The answer didn't address the conflicts between the original and newly installed versions of gdb. Also, gdb doesn't provide means for make uninstall. So one should use sudo checkinstall to keep track of everything. A blunt make install will render a major pain if you decide to uninstall the package sometime in the future.

              – Naitree
              Jan 23 '15 at 2:31






              2




              2





              Copying to /usr/local/bin/gdb did not do the job for me. When I copied to /usr/bin, it worked, but I get the following error: Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing:

              – AlwaysLearning
              Nov 11 '15 at 18:11





              Copying to /usr/local/bin/gdb did not do the job for me. When I copied to /usr/bin, it worked, but I get the following error: Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing:

              – AlwaysLearning
              Nov 11 '15 at 18:11













              1














              Updating GDB from 7.7.1 to 8.2 on Ubuntu 14.04:



              sudo add-apt-repository ppa:ubuntu-toolchain-r/test
              sudo apt-get update
              sudo apt-get -y --force-yes install gdb
              gdb -v
              sudo add-apt-repository --remove ppa:ubuntu-toolchain-r/test
              sudo apt-get update





              share|improve this answer




























                1














                Updating GDB from 7.7.1 to 8.2 on Ubuntu 14.04:



                sudo add-apt-repository ppa:ubuntu-toolchain-r/test
                sudo apt-get update
                sudo apt-get -y --force-yes install gdb
                gdb -v
                sudo add-apt-repository --remove ppa:ubuntu-toolchain-r/test
                sudo apt-get update





                share|improve this answer


























                  1












                  1








                  1







                  Updating GDB from 7.7.1 to 8.2 on Ubuntu 14.04:



                  sudo add-apt-repository ppa:ubuntu-toolchain-r/test
                  sudo apt-get update
                  sudo apt-get -y --force-yes install gdb
                  gdb -v
                  sudo add-apt-repository --remove ppa:ubuntu-toolchain-r/test
                  sudo apt-get update





                  share|improve this answer













                  Updating GDB from 7.7.1 to 8.2 on Ubuntu 14.04:



                  sudo add-apt-repository ppa:ubuntu-toolchain-r/test
                  sudo apt-get update
                  sudo apt-get -y --force-yes install gdb
                  gdb -v
                  sudo add-apt-repository --remove ppa:ubuntu-toolchain-r/test
                  sudo apt-get update






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 17 at 16:17









                  Yevhen VovchukYevhen Vovchuk

                  111




                  111























                      0














                      The top answer didn't work for me. For some reason I also needed this package to complete the make:



                      sudo apt-get install texinfo


                      Then I highly recommend to install this the correct way. I installed the checkinstall utility (which will create a debian package to auto-track all your files generated by make):



                      sudo apt-get update && sudo apt-get install checkinstall


                      Now call these commands:



                      wget http://ftp.gnu.org/gnu/gdb/gdb-7.8.tar.xz
                      tar -xf gdb-7.8.tar.xz
                      cd gdb-7.8/
                      ./configure
                      sudo checkinstall


                      Verify that this crated a *.deb file in the current directory (mine was gdb_7.8-1_amd64.deb). So now let's install it the correct way, go ahead and:




                      1. uninstall gdb quick

                      2. set the install path of the *.deb

                      3. then install it using apt-get


                      using these respective commands:



                      sudo dpkg -r gdb
                      sudo dpkg -i ~/gdb-7.8/gdb_7.8-1_amd64.deb
                      sudo apt-get install -f


                      Now you have a properly installed package, and you can remove it using sudo apt-get remove gdb OR sudo dpkg -r gdb. Note that I tested this with gdb 8.0.1, but I assume it should work for any version.






                      share|improve this answer




























                        0














                        The top answer didn't work for me. For some reason I also needed this package to complete the make:



                        sudo apt-get install texinfo


                        Then I highly recommend to install this the correct way. I installed the checkinstall utility (which will create a debian package to auto-track all your files generated by make):



                        sudo apt-get update && sudo apt-get install checkinstall


                        Now call these commands:



                        wget http://ftp.gnu.org/gnu/gdb/gdb-7.8.tar.xz
                        tar -xf gdb-7.8.tar.xz
                        cd gdb-7.8/
                        ./configure
                        sudo checkinstall


                        Verify that this crated a *.deb file in the current directory (mine was gdb_7.8-1_amd64.deb). So now let's install it the correct way, go ahead and:




                        1. uninstall gdb quick

                        2. set the install path of the *.deb

                        3. then install it using apt-get


                        using these respective commands:



                        sudo dpkg -r gdb
                        sudo dpkg -i ~/gdb-7.8/gdb_7.8-1_amd64.deb
                        sudo apt-get install -f


                        Now you have a properly installed package, and you can remove it using sudo apt-get remove gdb OR sudo dpkg -r gdb. Note that I tested this with gdb 8.0.1, but I assume it should work for any version.






                        share|improve this answer


























                          0












                          0








                          0







                          The top answer didn't work for me. For some reason I also needed this package to complete the make:



                          sudo apt-get install texinfo


                          Then I highly recommend to install this the correct way. I installed the checkinstall utility (which will create a debian package to auto-track all your files generated by make):



                          sudo apt-get update && sudo apt-get install checkinstall


                          Now call these commands:



                          wget http://ftp.gnu.org/gnu/gdb/gdb-7.8.tar.xz
                          tar -xf gdb-7.8.tar.xz
                          cd gdb-7.8/
                          ./configure
                          sudo checkinstall


                          Verify that this crated a *.deb file in the current directory (mine was gdb_7.8-1_amd64.deb). So now let's install it the correct way, go ahead and:




                          1. uninstall gdb quick

                          2. set the install path of the *.deb

                          3. then install it using apt-get


                          using these respective commands:



                          sudo dpkg -r gdb
                          sudo dpkg -i ~/gdb-7.8/gdb_7.8-1_amd64.deb
                          sudo apt-get install -f


                          Now you have a properly installed package, and you can remove it using sudo apt-get remove gdb OR sudo dpkg -r gdb. Note that I tested this with gdb 8.0.1, but I assume it should work for any version.






                          share|improve this answer













                          The top answer didn't work for me. For some reason I also needed this package to complete the make:



                          sudo apt-get install texinfo


                          Then I highly recommend to install this the correct way. I installed the checkinstall utility (which will create a debian package to auto-track all your files generated by make):



                          sudo apt-get update && sudo apt-get install checkinstall


                          Now call these commands:



                          wget http://ftp.gnu.org/gnu/gdb/gdb-7.8.tar.xz
                          tar -xf gdb-7.8.tar.xz
                          cd gdb-7.8/
                          ./configure
                          sudo checkinstall


                          Verify that this crated a *.deb file in the current directory (mine was gdb_7.8-1_amd64.deb). So now let's install it the correct way, go ahead and:




                          1. uninstall gdb quick

                          2. set the install path of the *.deb

                          3. then install it using apt-get


                          using these respective commands:



                          sudo dpkg -r gdb
                          sudo dpkg -i ~/gdb-7.8/gdb_7.8-1_amd64.deb
                          sudo apt-get install -f


                          Now you have a properly installed package, and you can remove it using sudo apt-get remove gdb OR sudo dpkg -r gdb. Note that I tested this with gdb 8.0.1, but I assume it should work for any version.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Sep 25 '17 at 11:37









                          MasterHDMasterHD

                          1034




                          1034






























                              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%2f529781%2fupgrade-from-gdb-7-7-to-7-8%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?

                              張江高科駅