How to upgrade nginx on Ubuntu 16.04How can I upgrade nginx after adding ppa:nginx/development?Recompile Nginx with nginx-push-stream-module?Can't upgrade nginx on ubuntu 12.04official nginx trusty ppa gives KEYEXPIRED gpg errorupgrade ICU version ubuntu 16.04nginx troubleshooting Ubuntu 16.04 ( dependency problems)Nginx failed question programs not downloading
Length-terminated sequences
Company asks (more than once) if I can involve family members in project
Wood glue versus epoxy for doweling stripped screw holes
Mutate my DNA sequence
Explanation for why nickel turns green in hydrochloric acid
If ten experts each of different fields where sent back 10 000y, can they recreate the 21 century in 100y?
Do European politicians typically put their pronouns on their social media pages?
Extract lines from files with names begining with given letter
How to write 2**n - 1 as a recursive function?
Is rent considered a debt?
Implement the 2D Hadamard Transform
Holding cost vs carrying cost vs storage cost
Why is Microwaved mac & cheese burnt where they touch?
Is there a name for the phenomenon of false positives counterintuitively outstripping true positives
Can a company prevent a co-author of a paper to put his name on it?
How are astronauts in the ISS protected from electric shock?
Is Jupiter bright enough to be seen in color by the naked eye from Jupiter orbit?
Is the EU Settlement Scheme legal?
What does "Summoned creature has maximum hit points" actually mean?
Asimov's story where a man's speech contains no information
Can someone interview their sibling?
Integrate GA or GA360 with SFMC?
Response to referee after rejection
Algorithm that converts array-like data into MathJax: Python
How to upgrade nginx on Ubuntu 16.04
How can I upgrade nginx after adding ppa:nginx/development?Recompile Nginx with nginx-push-stream-module?Can't upgrade nginx on ubuntu 12.04official nginx trusty ppa gives KEYEXPIRED gpg errorupgrade ICU version ubuntu 16.04nginx troubleshooting Ubuntu 16.04 ( dependency problems)Nginx failed question programs not downloading
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
We are currently running nginx on ubuntu, installed version is:1.10.3-0ubuntu0.16.04.3
Running sudo apt update
it reflects that we are on the latest version, however going to nginx.org shows the latest version is 1.17.
How do we upgrade to the latest version?
upgrade nginx
add a comment
|
We are currently running nginx on ubuntu, installed version is:1.10.3-0ubuntu0.16.04.3
Running sudo apt update
it reflects that we are on the latest version, however going to nginx.org shows the latest version is 1.17.
How do we upgrade to the latest version?
upgrade nginx
add a comment
|
We are currently running nginx on ubuntu, installed version is:1.10.3-0ubuntu0.16.04.3
Running sudo apt update
it reflects that we are on the latest version, however going to nginx.org shows the latest version is 1.17.
How do we upgrade to the latest version?
upgrade nginx
We are currently running nginx on ubuntu, installed version is:1.10.3-0ubuntu0.16.04.3
Running sudo apt update
it reflects that we are on the latest version, however going to nginx.org shows the latest version is 1.17.
How do we upgrade to the latest version?
upgrade nginx
upgrade nginx
asked May 29 at 14:44
SteveSteve
1
1
add a comment
|
add a comment
|
3 Answers
3
active
oldest
votes
Follow below commands from the terminal.
cd /tmp
wget http://nginx.org/keys/nginx_signing.key
sudo apt-key add nginx_signing.key
sudo sh -c "echo 'deb http://nginx.org/packages/stable/ubuntu/ '$(lsb_release -cs)' nginx' > /etc/apt/sources.list.d/Nginx.list"
sudo apt-get update
sudo apt-get dist-upgrade
After doing this I still get the same version?
– Steve
May 30 at 6:02
add a comment
|
The best solution is, Compile Nignx yourself. It will give you the latest updated version.
Compiled packages are not always the updated version, But they focus on the stable version.
add a comment
|
Follow the instructions on the Nginx website:
http://nginx.org/en/linux_packages.html#Ubuntu
Install the prerequisites:
sudo apt install curl gnupg2 ca-certificates lsb-release
To set up the apt repository for stable nginx packages, run the following command:
echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list
If you would like to use mainline nginx packages, run the following command instead:
echo "deb http://nginx.org/packages/mainline/ubuntu `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list
Next, import an official nginx signing key so apt could verify the packages
authenticity:curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add -
Verify that you now have the proper key:
sudo apt-key fingerprint ABF5BD827BD9BF62
The output should contain the full fingerprint
573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62
as follows:pub rsa2048 2011-08-19 [SC] [expires: 2024-06-14]
573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62
uid [ unknown] nginx signing key <signing-key@nginx.com>
To install nginx,
run the following commands:sudo apt update
sudo apt install nginx
add a comment
|
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/4.0/"u003ecc by-sa 4.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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1147144%2fhow-to-upgrade-nginx-on-ubuntu-16-04%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
Follow below commands from the terminal.
cd /tmp
wget http://nginx.org/keys/nginx_signing.key
sudo apt-key add nginx_signing.key
sudo sh -c "echo 'deb http://nginx.org/packages/stable/ubuntu/ '$(lsb_release -cs)' nginx' > /etc/apt/sources.list.d/Nginx.list"
sudo apt-get update
sudo apt-get dist-upgrade
After doing this I still get the same version?
– Steve
May 30 at 6:02
add a comment
|
Follow below commands from the terminal.
cd /tmp
wget http://nginx.org/keys/nginx_signing.key
sudo apt-key add nginx_signing.key
sudo sh -c "echo 'deb http://nginx.org/packages/stable/ubuntu/ '$(lsb_release -cs)' nginx' > /etc/apt/sources.list.d/Nginx.list"
sudo apt-get update
sudo apt-get dist-upgrade
After doing this I still get the same version?
– Steve
May 30 at 6:02
add a comment
|
Follow below commands from the terminal.
cd /tmp
wget http://nginx.org/keys/nginx_signing.key
sudo apt-key add nginx_signing.key
sudo sh -c "echo 'deb http://nginx.org/packages/stable/ubuntu/ '$(lsb_release -cs)' nginx' > /etc/apt/sources.list.d/Nginx.list"
sudo apt-get update
sudo apt-get dist-upgrade
Follow below commands from the terminal.
cd /tmp
wget http://nginx.org/keys/nginx_signing.key
sudo apt-key add nginx_signing.key
sudo sh -c "echo 'deb http://nginx.org/packages/stable/ubuntu/ '$(lsb_release -cs)' nginx' > /etc/apt/sources.list.d/Nginx.list"
sudo apt-get update
sudo apt-get dist-upgrade
answered May 29 at 15:19
ScareCrowScareCrow
9512 bronze badges
9512 bronze badges
After doing this I still get the same version?
– Steve
May 30 at 6:02
add a comment
|
After doing this I still get the same version?
– Steve
May 30 at 6:02
After doing this I still get the same version?
– Steve
May 30 at 6:02
After doing this I still get the same version?
– Steve
May 30 at 6:02
add a comment
|
The best solution is, Compile Nignx yourself. It will give you the latest updated version.
Compiled packages are not always the updated version, But they focus on the stable version.
add a comment
|
The best solution is, Compile Nignx yourself. It will give you the latest updated version.
Compiled packages are not always the updated version, But they focus on the stable version.
add a comment
|
The best solution is, Compile Nignx yourself. It will give you the latest updated version.
Compiled packages are not always the updated version, But they focus on the stable version.
The best solution is, Compile Nignx yourself. It will give you the latest updated version.
Compiled packages are not always the updated version, But they focus on the stable version.
answered May 29 at 14:49
Sakhawat HossenSakhawat Hossen
1
1
add a comment
|
add a comment
|
Follow the instructions on the Nginx website:
http://nginx.org/en/linux_packages.html#Ubuntu
Install the prerequisites:
sudo apt install curl gnupg2 ca-certificates lsb-release
To set up the apt repository for stable nginx packages, run the following command:
echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list
If you would like to use mainline nginx packages, run the following command instead:
echo "deb http://nginx.org/packages/mainline/ubuntu `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list
Next, import an official nginx signing key so apt could verify the packages
authenticity:curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add -
Verify that you now have the proper key:
sudo apt-key fingerprint ABF5BD827BD9BF62
The output should contain the full fingerprint
573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62
as follows:pub rsa2048 2011-08-19 [SC] [expires: 2024-06-14]
573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62
uid [ unknown] nginx signing key <signing-key@nginx.com>
To install nginx,
run the following commands:sudo apt update
sudo apt install nginx
add a comment
|
Follow the instructions on the Nginx website:
http://nginx.org/en/linux_packages.html#Ubuntu
Install the prerequisites:
sudo apt install curl gnupg2 ca-certificates lsb-release
To set up the apt repository for stable nginx packages, run the following command:
echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list
If you would like to use mainline nginx packages, run the following command instead:
echo "deb http://nginx.org/packages/mainline/ubuntu `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list
Next, import an official nginx signing key so apt could verify the packages
authenticity:curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add -
Verify that you now have the proper key:
sudo apt-key fingerprint ABF5BD827BD9BF62
The output should contain the full fingerprint
573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62
as follows:pub rsa2048 2011-08-19 [SC] [expires: 2024-06-14]
573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62
uid [ unknown] nginx signing key <signing-key@nginx.com>
To install nginx,
run the following commands:sudo apt update
sudo apt install nginx
add a comment
|
Follow the instructions on the Nginx website:
http://nginx.org/en/linux_packages.html#Ubuntu
Install the prerequisites:
sudo apt install curl gnupg2 ca-certificates lsb-release
To set up the apt repository for stable nginx packages, run the following command:
echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list
If you would like to use mainline nginx packages, run the following command instead:
echo "deb http://nginx.org/packages/mainline/ubuntu `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list
Next, import an official nginx signing key so apt could verify the packages
authenticity:curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add -
Verify that you now have the proper key:
sudo apt-key fingerprint ABF5BD827BD9BF62
The output should contain the full fingerprint
573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62
as follows:pub rsa2048 2011-08-19 [SC] [expires: 2024-06-14]
573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62
uid [ unknown] nginx signing key <signing-key@nginx.com>
To install nginx,
run the following commands:sudo apt update
sudo apt install nginx
Follow the instructions on the Nginx website:
http://nginx.org/en/linux_packages.html#Ubuntu
Install the prerequisites:
sudo apt install curl gnupg2 ca-certificates lsb-release
To set up the apt repository for stable nginx packages, run the following command:
echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list
If you would like to use mainline nginx packages, run the following command instead:
echo "deb http://nginx.org/packages/mainline/ubuntu `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list
Next, import an official nginx signing key so apt could verify the packages
authenticity:curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add -
Verify that you now have the proper key:
sudo apt-key fingerprint ABF5BD827BD9BF62
The output should contain the full fingerprint
573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62
as follows:pub rsa2048 2011-08-19 [SC] [expires: 2024-06-14]
573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62
uid [ unknown] nginx signing key <signing-key@nginx.com>
To install nginx,
run the following commands:sudo apt update
sudo apt install nginx
edited Oct 3 at 6:28
Zanna
53.5k15 gold badges150 silver badges251 bronze badges
53.5k15 gold badges150 silver badges251 bronze badges
answered Jun 5 at 15:03
ephemerephemer
1011 bronze badge
1011 bronze badge
add a comment
|
add a comment
|
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1147144%2fhow-to-upgrade-nginx-on-ubuntu-16-04%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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