One Ubuntu 16.04 system finds the package libsqlite3-dev, but another does not [duplicate]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite













This question already has an answer here:



  • “Unable to locate package” while trying to install packages with APT

    5 answers



I do the following on one Ubuntu machine (Ubuntu 16.04.3 LTS)



sudo apt-get install libsqlite3-dev


it shows



E: Unable to locate package libsqlite3-dev


But if I perform the same command on the other one (Ubuntu 16.04.3 LTS too), it shows the following and the package is installed successfully



After this operation, 1,699 kB of additional disk space will be used.
Get:1 http://sg.archive.ubuntu.com/ubuntu xenial/main amd64 libsqlite3-dev amd64 3.11.0-1ubuntu1 [508 kB]
Fetched 508 kB in 1s (383 kB/s)
Selecting previously unselected package libsqlite3-dev:amd64.


I suspect the repository:



http://sg.archive.ubuntu.com/ubuntu xenial/main amd64 


is not in the first machine repository list. How should I add it?










share|improve this question















marked as duplicate by muru, karel, N0rbert, Eric Carvalho, Zanna Feb 2 at 12:25


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


















    up vote
    1
    down vote

    favorite













    This question already has an answer here:



    • “Unable to locate package” while trying to install packages with APT

      5 answers



    I do the following on one Ubuntu machine (Ubuntu 16.04.3 LTS)



    sudo apt-get install libsqlite3-dev


    it shows



    E: Unable to locate package libsqlite3-dev


    But if I perform the same command on the other one (Ubuntu 16.04.3 LTS too), it shows the following and the package is installed successfully



    After this operation, 1,699 kB of additional disk space will be used.
    Get:1 http://sg.archive.ubuntu.com/ubuntu xenial/main amd64 libsqlite3-dev amd64 3.11.0-1ubuntu1 [508 kB]
    Fetched 508 kB in 1s (383 kB/s)
    Selecting previously unselected package libsqlite3-dev:amd64.


    I suspect the repository:



    http://sg.archive.ubuntu.com/ubuntu xenial/main amd64 


    is not in the first machine repository list. How should I add it?










    share|improve this question















    marked as duplicate by muru, karel, N0rbert, Eric Carvalho, Zanna Feb 2 at 12:25


    This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite












      This question already has an answer here:



      • “Unable to locate package” while trying to install packages with APT

        5 answers



      I do the following on one Ubuntu machine (Ubuntu 16.04.3 LTS)



      sudo apt-get install libsqlite3-dev


      it shows



      E: Unable to locate package libsqlite3-dev


      But if I perform the same command on the other one (Ubuntu 16.04.3 LTS too), it shows the following and the package is installed successfully



      After this operation, 1,699 kB of additional disk space will be used.
      Get:1 http://sg.archive.ubuntu.com/ubuntu xenial/main amd64 libsqlite3-dev amd64 3.11.0-1ubuntu1 [508 kB]
      Fetched 508 kB in 1s (383 kB/s)
      Selecting previously unselected package libsqlite3-dev:amd64.


      I suspect the repository:



      http://sg.archive.ubuntu.com/ubuntu xenial/main amd64 


      is not in the first machine repository list. How should I add it?










      share|improve this question
















      This question already has an answer here:



      • “Unable to locate package” while trying to install packages with APT

        5 answers



      I do the following on one Ubuntu machine (Ubuntu 16.04.3 LTS)



      sudo apt-get install libsqlite3-dev


      it shows



      E: Unable to locate package libsqlite3-dev


      But if I perform the same command on the other one (Ubuntu 16.04.3 LTS too), it shows the following and the package is installed successfully



      After this operation, 1,699 kB of additional disk space will be used.
      Get:1 http://sg.archive.ubuntu.com/ubuntu xenial/main amd64 libsqlite3-dev amd64 3.11.0-1ubuntu1 [508 kB]
      Fetched 508 kB in 1s (383 kB/s)
      Selecting previously unselected package libsqlite3-dev:amd64.


      I suspect the repository:



      http://sg.archive.ubuntu.com/ubuntu xenial/main amd64 


      is not in the first machine repository list. How should I add it?





      This question already has an answer here:



      • “Unable to locate package” while trying to install packages with APT

        5 answers







      apt package-management






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 2 at 12:25









      Zanna

      48.3k13120229




      48.3k13120229










      asked Feb 2 at 3:10









      william007

      1424




      1424




      marked as duplicate by muru, karel, N0rbert, Eric Carvalho, Zanna Feb 2 at 12:25


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






      marked as duplicate by muru, karel, N0rbert, Eric Carvalho, Zanna Feb 2 at 12:25


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          0
          down vote













          Some mirrors may be out of sync.



          Try to select other mirror:



          1. open Software & Updates (software-properties-gtk)

          2. on Ubuntu Software tab select other server (for example Main Server) from Download from drop-down menu.

          3. if you planning to compile something check Source code

          Software & Updates - Ubuntu Software



          1. confirm reloading lists

          Then try to install you program again with:



          sudo apt-get install libsqlite3-dev





          share|improve this answer



























            up vote
            -1
            down vote













            First, try updating your sources:



             sudo apt-get update


            Check for any error messages here, and try installing again.



            If you still have errors, you can check your active repositories with the following command:



             sudo nano /etc/apt/sources.list


            The line you are looking for should be the first active source in this file. The format should read:



             deb http://sg.archive.ubuntu.com/ubuntu/ xenial main restricted


            Inactive sources will have "#" at the beginning of the line. Remove this to activate them. Additionally, you can add your own sources at the end of this file.



            After editing your sources file, you will want to update apt again:



             sudo apt-get update





            share|improve this answer





























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              0
              down vote













              Some mirrors may be out of sync.



              Try to select other mirror:



              1. open Software & Updates (software-properties-gtk)

              2. on Ubuntu Software tab select other server (for example Main Server) from Download from drop-down menu.

              3. if you planning to compile something check Source code

              Software & Updates - Ubuntu Software



              1. confirm reloading lists

              Then try to install you program again with:



              sudo apt-get install libsqlite3-dev





              share|improve this answer
























                up vote
                0
                down vote













                Some mirrors may be out of sync.



                Try to select other mirror:



                1. open Software & Updates (software-properties-gtk)

                2. on Ubuntu Software tab select other server (for example Main Server) from Download from drop-down menu.

                3. if you planning to compile something check Source code

                Software & Updates - Ubuntu Software



                1. confirm reloading lists

                Then try to install you program again with:



                sudo apt-get install libsqlite3-dev





                share|improve this answer






















                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  Some mirrors may be out of sync.



                  Try to select other mirror:



                  1. open Software & Updates (software-properties-gtk)

                  2. on Ubuntu Software tab select other server (for example Main Server) from Download from drop-down menu.

                  3. if you planning to compile something check Source code

                  Software & Updates - Ubuntu Software



                  1. confirm reloading lists

                  Then try to install you program again with:



                  sudo apt-get install libsqlite3-dev





                  share|improve this answer












                  Some mirrors may be out of sync.



                  Try to select other mirror:



                  1. open Software & Updates (software-properties-gtk)

                  2. on Ubuntu Software tab select other server (for example Main Server) from Download from drop-down menu.

                  3. if you planning to compile something check Source code

                  Software & Updates - Ubuntu Software



                  1. confirm reloading lists

                  Then try to install you program again with:



                  sudo apt-get install libsqlite3-dev






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 2 at 9:44









                  N0rbert

                  16.7k33479




                  16.7k33479






















                      up vote
                      -1
                      down vote













                      First, try updating your sources:



                       sudo apt-get update


                      Check for any error messages here, and try installing again.



                      If you still have errors, you can check your active repositories with the following command:



                       sudo nano /etc/apt/sources.list


                      The line you are looking for should be the first active source in this file. The format should read:



                       deb http://sg.archive.ubuntu.com/ubuntu/ xenial main restricted


                      Inactive sources will have "#" at the beginning of the line. Remove this to activate them. Additionally, you can add your own sources at the end of this file.



                      After editing your sources file, you will want to update apt again:



                       sudo apt-get update





                      share|improve this answer


























                        up vote
                        -1
                        down vote













                        First, try updating your sources:



                         sudo apt-get update


                        Check for any error messages here, and try installing again.



                        If you still have errors, you can check your active repositories with the following command:



                         sudo nano /etc/apt/sources.list


                        The line you are looking for should be the first active source in this file. The format should read:



                         deb http://sg.archive.ubuntu.com/ubuntu/ xenial main restricted


                        Inactive sources will have "#" at the beginning of the line. Remove this to activate them. Additionally, you can add your own sources at the end of this file.



                        After editing your sources file, you will want to update apt again:



                         sudo apt-get update





                        share|improve this answer
























                          up vote
                          -1
                          down vote










                          up vote
                          -1
                          down vote









                          First, try updating your sources:



                           sudo apt-get update


                          Check for any error messages here, and try installing again.



                          If you still have errors, you can check your active repositories with the following command:



                           sudo nano /etc/apt/sources.list


                          The line you are looking for should be the first active source in this file. The format should read:



                           deb http://sg.archive.ubuntu.com/ubuntu/ xenial main restricted


                          Inactive sources will have "#" at the beginning of the line. Remove this to activate them. Additionally, you can add your own sources at the end of this file.



                          After editing your sources file, you will want to update apt again:



                           sudo apt-get update





                          share|improve this answer














                          First, try updating your sources:



                           sudo apt-get update


                          Check for any error messages here, and try installing again.



                          If you still have errors, you can check your active repositories with the following command:



                           sudo nano /etc/apt/sources.list


                          The line you are looking for should be the first active source in this file. The format should read:



                           deb http://sg.archive.ubuntu.com/ubuntu/ xenial main restricted


                          Inactive sources will have "#" at the beginning of the line. Remove this to activate them. Additionally, you can add your own sources at the end of this file.



                          After editing your sources file, you will want to update apt again:



                           sudo apt-get update






                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Feb 2 at 6:08

























                          answered Feb 2 at 5:48









                          Richard Knepp

                          137




                          137












                              Popular posts from this blog

                              pylint3 and pip3 broken

                              Missing snmpget and snmpwalk

                              How to enroll fingerprints to Ubuntu 17.10 with VFS491