One Ubuntu 16.04 system finds the package libsqlite3-dev, but another does not [duplicate]
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
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?
apt package-management
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.
add a comment |Â
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?
apt package-management
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.
add a comment |Â
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?
apt package-management
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
apt package-management
edited Feb 2 at 12:25
![](https://i.stack.imgur.com/8CW8e.png?s=32&g=1)
![](https://i.stack.imgur.com/8CW8e.png?s=32&g=1)
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.
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
0
down vote
Some mirrors may be out of sync.
Try to select other mirror:
- open Software & Updates (
software-properties-gtk
) - on Ubuntu Software tab select other server (for example Main Server) from Download from drop-down menu.
- if you planning to compile something check Source code
- confirm reloading lists
Then try to install you program again with:
sudo apt-get install libsqlite3-dev
add a comment |Â
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
add a comment |Â
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:
- open Software & Updates (
software-properties-gtk
) - on Ubuntu Software tab select other server (for example Main Server) from Download from drop-down menu.
- if you planning to compile something check Source code
- confirm reloading lists
Then try to install you program again with:
sudo apt-get install libsqlite3-dev
add a comment |Â
up vote
0
down vote
Some mirrors may be out of sync.
Try to select other mirror:
- open Software & Updates (
software-properties-gtk
) - on Ubuntu Software tab select other server (for example Main Server) from Download from drop-down menu.
- if you planning to compile something check Source code
- confirm reloading lists
Then try to install you program again with:
sudo apt-get install libsqlite3-dev
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Some mirrors may be out of sync.
Try to select other mirror:
- open Software & Updates (
software-properties-gtk
) - on Ubuntu Software tab select other server (for example Main Server) from Download from drop-down menu.
- if you planning to compile something check Source code
- confirm reloading lists
Then try to install you program again with:
sudo apt-get install libsqlite3-dev
Some mirrors may be out of sync.
Try to select other mirror:
- open Software & Updates (
software-properties-gtk
) - on Ubuntu Software tab select other server (for example Main Server) from Download from drop-down menu.
- if you planning to compile something check Source code
- confirm reloading lists
Then try to install you program again with:
sudo apt-get install libsqlite3-dev
answered Feb 2 at 9:44
N0rbert
16.7k33479
16.7k33479
add a comment |Â
add a comment |Â
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
add a comment |Â
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
add a comment |Â
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
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
edited Feb 2 at 6:08
answered Feb 2 at 5:48
Richard Knepp
137
137
add a comment |Â
add a comment |Â