質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
nginx

nginixは軽量で高性能なwebサーバーの1つです。BSD-likeライセンスのもとリリースされており、あわせてHTTPサーバ、リバースプロキシ、メールプロキシの機能も備えています。MacOSX、Windows、Linux、上で動作します。

AWS(Amazon Web Services)

Amazon Web Services (AWS)は、仮想空間を機軸とした、クラスター状のコンピュータ・ネットワーク・データベース・ストーレッジ・サポートツールをAWSというインフラから提供する商用サービスです。

Q&A

解決済

1回答

2403閲覧

Amazon Linux 1でnginxのバージョンを1.18.0にあげたい

basken

総合スコア12

nginx

nginixは軽量で高性能なwebサーバーの1つです。BSD-likeライセンスのもとリリースされており、あわせてHTTPサーバ、リバースプロキシ、メールプロキシの機能も備えています。MacOSX、Windows、Linux、上で動作します。

AWS(Amazon Web Services)

Amazon Web Services (AWS)は、仮想空間を機軸とした、クラスター状のコンピュータ・ネットワーク・データベース・ストーレッジ・サポートツールをAWSというインフラから提供する商用サービスです。

0グッド

1クリップ

投稿2020/09/03 09:47

Amazon Linux 1でnginxのバージョンを1.16.1から1.18.0にあげたいのですが、
エラーが発生しあげれません。

解決策教えていただきたいです。

現バージョン: 1:nginx-1.16.1-1.37.amzn1.x86_64
上げたいバージョン:nginx-1.18.0-1.el6.ngx.x86_64

(バージョンアップ手順)
・リポジトリ作成後以下コマンド実施

sudo yum --disablerepo=amzn-updates --enablerepo=nginx-stable install nginx-1.18.0-1.el6.ngx.x86_64

(エラー内容)

読み込んだプラグイン:priorities, update-motd, upgrade-helper
1 packages excluded due to repository priority protections
パッケージ nginx は nginx-all-modules によって不要になりました。代わりに 1:nginx-all-modules-1.12.1-1.33.amzn1.x86_64 のインストールを試みています。
依存性の解決をしています
--> トランザクションの確認を実行しています。
---> パッケージ nginx-all-modules.x86_64 1:1.12.1-1.33.amzn1 を インストール
--> 依存性の処理をしています: nginx-mod-stream(x86-64) = 1:1.12.1-1.33.amzn1 のパッケージ: 1:nginx-all-modules-1.12.1-1.33.amzn1.x86_64
--> 依存性の処理をしています: nginx-mod-mail(x86-64) = 1:1.12.1-1.33.amzn1 のパッケージ: 1:nginx-all-modules-1.12.1-1.33.amzn1.x86_64
--> 依存性の処理をしています: nginx-mod-http-xslt-filter(x86-64) = 1:1.12.1-1.33.amzn1 のパッケージ: 1:nginx-all-modules-1.12.1-1.33.amzn1.x86_64
--> 依存性の処理をしています: nginx-mod-http-perl(x86-64) = 1:1.12.1-1.33.amzn1 のパッケージ: 1:nginx-all-modules-1.12.1-1.33.amzn1.x86_64
--> 依存性の処理をしています: nginx-mod-http-image-filter(x86-64) = 1:1.12.1-1.33.amzn1 のパッケージ: 1:nginx-all-modules-1.12.1-1.33.amzn1.x86_64
--> 依存性の処理をしています: nginx-mod-http-geoip(x86-64) = 1:1.12.1-1.33.amzn1 のパッケージ: 1:nginx-all-modules-1.12.1-1.33.amzn1.x86_64
--> トランザクションの確認を実行しています。
---> パッケージ nginx-mod-http-geoip.x86_64 1:1.12.1-1.33.amzn1 を インストール
--> 依存性の処理をしています: nginx(x86-64) = 1:1.12.1-1.33.amzn1 のパッケージ: 1:nginx-mod-http-geoip-1.12.1-1.33.amzn1.x86_64
--> 依存性の処理をしています: GeoIP のパッケージ: 1:nginx-mod-http-geoip-1.12.1-1.33.amzn1.x86_64
--> 依存性の処理をしています: libGeoIP.so.1()(64bit) のパッケージ: 1:nginx-mod-http-geoip-1.12.1-1.33.amzn1.x86_64
---> パッケージ nginx-mod-http-image-filter.x86_64 1:1.12.1-1.33.amzn1 を インストール
--> 依存性の処理をしています: nginx(x86-64) = 1:1.12.1-1.33.amzn1 のパッケージ: 1:nginx-mod-http-image-filter-1.12.1-1.33.amzn1.x86_64
--> 依存性の処理をしています: gd のパッケージ: 1:nginx-mod-http-image-filter-1.12.1-1.33.amzn1.x86_64
--> 依存性の処理をしています: libgd.so.2()(64bit) のパッケージ: 1:nginx-mod-http-image-filter-1.12.1-1.33.amzn1.x86_64
---> パッケージ nginx-mod-http-perl.x86_64 1:1.12.1-1.33.amzn1 を インストール
--> 依存性の処理をしています: nginx(x86-64) = 1:1.12.1-1.33.amzn1 のパッケージ: 1:nginx-mod-http-perl-1.12.1-1.33.amzn1.x86_64
---> パッケージ nginx-mod-http-xslt-filter.x86_64 1:1.12.1-1.33.amzn1 を インストール
--> 依存性の処理をしています: nginx(x86-64) = 1:1.12.1-1.33.amzn1 のパッケージ: 1:nginx-mod-http-xslt-filter-1.12.1-1.33.amzn1.x86_64
---> パッケージ nginx-mod-mail.x86_64 1:1.12.1-1.33.amzn1 を インストール
--> 依存性の処理をしています: nginx(x86-64) = 1:1.12.1-1.33.amzn1 のパッケージ: 1:nginx-mod-mail-1.12.1-1.33.amzn1.x86_64
---> パッケージ nginx-mod-stream.x86_64 1:1.12.1-1.33.amzn1 を インストール
--> 依存性の処理をしています: nginx(x86-64) = 1:1.12.1-1.33.amzn1 のパッケージ: 1:nginx-mod-stream-1.12.1-1.33.amzn1.x86_64
--> トランザクションの確認を実行しています。
---> パッケージ GeoIP.x86_64 0:1.4.8-1.5.amzn1 を インストール
---> パッケージ gd.x86_64 0:2.0.35-11.10.amzn1 を インストール
--> 依存性の処理をしています: libXpm.so.4()(64bit) のパッケージ: gd-2.0.35-11.10.amzn1.x86_64
---> パッケージ nginx-mod-http-geoip.x86_64 1:1.12.1-1.33.amzn1 を インストール
--> 依存性の処理をしています: nginx(x86-64) = 1:1.12.1-1.33.amzn1 のパッケージ: 1:nginx-mod-http-geoip-1.12.1-1.33.amzn1.x86_64
---> パッケージ nginx-mod-http-image-filter.x86_64 1:1.12.1-1.33.amzn1 を インストール
--> 依存性の処理をしています: nginx(x86-64) = 1:1.12.1-1.33.amzn1 のパッケージ: 1:nginx-mod-http-image-filter-1.12.1-1.33.amzn1.x86_64
---> パッケージ nginx-mod-http-perl.x86_64 1:1.12.1-1.33.amzn1 を インストール
--> 依存性の処理をしています: nginx(x86-64) = 1:1.12.1-1.33.amzn1 のパッケージ: 1:nginx-mod-http-perl-1.12.1-1.33.amzn1.x86_64
---> パッケージ nginx-mod-http-xslt-filter.x86_64 1:1.12.1-1.33.amzn1 を インストール
--> 依存性の処理をしています: nginx(x86-64) = 1:1.12.1-1.33.amzn1 のパッケージ: 1:nginx-mod-http-xslt-filter-1.12.1-1.33.amzn1.x86_64
---> パッケージ nginx-mod-mail.x86_64 1:1.12.1-1.33.amzn1 を インストール
--> 依存性の処理をしています: nginx(x86-64) = 1:1.12.1-1.33.amzn1 のパッケージ: 1:nginx-mod-mail-1.12.1-1.33.amzn1.x86_64
---> パッケージ nginx-mod-stream.x86_64 1:1.12.1-1.33.amzn1 を インストール
--> 依存性の処理をしています: nginx(x86-64) = 1:1.12.1-1.33.amzn1 のパッケージ: 1:nginx-mod-stream-1.12.1-1.33.amzn1.x86_64
--> トランザクションの確認を実行しています。
---> パッケージ libXpm.x86_64 0:3.5.10-2.9.amzn1 を インストール
---> パッケージ nginx-mod-http-geoip.x86_64 1:1.12.1-1.33.amzn1 を インストール
--> 依存性の処理をしています: nginx(x86-64) = 1:1.12.1-1.33.amzn1 のパッケージ: 1:nginx-mod-http-geoip-1.12.1-1.33.amzn1.x86_64
---> パッケージ nginx-mod-http-image-filter.x86_64 1:1.12.1-1.33.amzn1 を インストール
--> 依存性の処理をしています: nginx(x86-64) = 1:1.12.1-1.33.amzn1 のパッケージ: 1:nginx-mod-http-image-filter-1.12.1-1.33.amzn1.x86_64
---> パッケージ nginx-mod-http-perl.x86_64 1:1.12.1-1.33.amzn1 を インストール
--> 依存性の処理をしています: nginx(x86-64) = 1:1.12.1-1.33.amzn1 のパッケージ: 1:nginx-mod-http-perl-1.12.1-1.33.amzn1.x86_64
---> パッケージ nginx-mod-http-xslt-filter.x86_64 1:1.12.1-1.33.amzn1 を インストール
--> 依存性の処理をしています: nginx(x86-64) = 1:1.12.1-1.33.amzn1 のパッケージ: 1:nginx-mod-http-xslt-filter-1.12.1-1.33.amzn1.x86_64
---> パッケージ nginx-mod-mail.x86_64 1:1.12.1-1.33.amzn1 を インストール
--> 依存性の処理をしています: nginx(x86-64) = 1:1.12.1-1.33.amzn1 のパッケージ: 1:nginx-mod-mail-1.12.1-1.33.amzn1.x86_64
---> パッケージ nginx-mod-stream.x86_64 1:1.12.1-1.33.amzn1 を インストール
--> 依存性の処理をしています: nginx(x86-64) = 1:1.12.1-1.33.amzn1 のパッケージ: 1:nginx-mod-stream-1.12.1-1.33.amzn1.x86_64
--> 依存性解決を終了しました。
エラー: パッケージ: 1:nginx-mod-http-geoip-1.12.1-1.33.amzn1.x86_64 (amzn-main)
要求: nginx(x86-64) = 1:1.12.1-1.33.amzn1
利用可能: nginx-1.8.0-1.el6.ngx.x86_64 (nginx-stable)
nginx(x86-64) = 1.8.0-1.el6.ngx
利用可能: nginx-1.8.1-1.el6.ngx.x86_64 (nginx-stable)
nginx(x86-64) = 1.8.1-1.el6.ngx
利用可能: nginx-1.10.0-1.el6.ngx.x86_64 (nginx-stable)
nginx(x86-64) = 1.10.0-1.el6.ngx
利用可能: nginx-1.10.1-1.el6.ngx.x86_64 (nginx-stable)
nginx(x86-64) = 1.10.1-1.el6.ngx
利用可能: nginx-1.10.2-1.el6.ngx.x86_64 (nginx-stable)
nginx(x86-64) = 1.10.2-1.el6.ngx
利用可能: nginx-1.10.3-1.el6.ngx.x86_64 (nginx-stable)
nginx(x86-64) = 1.10.3-1.el6.ngx
利用可能: nginx-1.12.0-1.el6.ngx.x86_64 (nginx-stable)
nginx(x86-64) = 1.12.0-1.el6.ngx
利用可能: nginx-1.12.1-1.el6.ngx.x86_64 (nginx-stable)
nginx(x86-64) = 1.12.1-1.el6.ngx
利用可能: nginx-1.12.2-1.el6.ngx.x86_64 (nginx-stable)
nginx(x86-64) = 1.12.2-1.el6.ngx
利用可能: nginx-1.14.0-1.el6.ngx.x86_64 (nginx-stable)
nginx(x86-64) = 1.14.0-1.el6.ngx
利用可能: nginx-1.14.1-1.el6.ngx.x86_64 (nginx-stable)
nginx(x86-64) = 1.14.1-1.el6.ngx
利用可能: nginx-1.14.2-1.el6.ngx.x86_64 (nginx-stable)
nginx(x86-64) = 1.14.2-1.el6.ngx
利用可能: nginx-1.16.0-1.el6.ngx.x86_64 (nginx-stable)
nginx(x86-64) = 1.16.0-1.el6.ngx
利用可能: nginx-1.16.1-1.el6.ngx.x86_64 (nginx-stable)
nginx(x86-64) = 1.16.1-1.el6.ngx
利用可能: nginx-1.18.0-1.el6.ngx.x86_64 (nginx-stable)
nginx(x86-64) = 1.18.0-1.el6.ngx
エラー: パッケージ: 1:nginx-mod-http-xslt-filter-1.12.1-1.33.amzn1.x86_64 (amzn-main)
要求: nginx(x86-64) = 1:1.12.1-1.33.amzn1
利用可能: nginx-1.8.0-1.el6.ngx.x86_64 (nginx-stable)
nginx(x86-64) = 1.8.0-1.el6.ngx
利用可能: nginx-1.8.1-1.el6.ngx.x86_64 (nginx-stable)
nginx(x86-64) = 1.8.1-1.el6.ngx
利用可能: nginx-1.10.0-1.el6.ngx.x86_64 (nginx-stable)
nginx(x86-64) = 1.10.0-1.el6.ngx
利用可能: nginx-1.10.1-1.el6.ngx.x86_64 (nginx-stable)
nginx(x86-64) = 1.10.1-1.el6.ngx
利用可能: nginx-1.10.2-1.el6.ngx.x86_64 (nginx-stable)
nginx(x86-64) = 1.10.2-1.el6.ngx
利用可能: nginx-1.10.3-1.el6.ngx.x86_64 (nginx-stable)
nginx(x86-64) = 1.10.3-1.el6.ngx
利用可能: nginx-1.12.0-1.el6.ngx.x86_64 (nginx-stable)
nginx(x86-64) = 1.12.0-1.el6.ngx
利用可能: nginx-1.12.1-1.el6.ngx.x86_64 (nginx-stable)
nginx(x86-64) = 1.12.1-1.el6.ngx
利用可能: nginx-1.12.2-1.el6.ngx.x86_64 (nginx-stable)
nginx(x86-64) = 1.12.2-1.el6.ngx
利用可能: nginx-1.14.0-1.el6.ngx.x86_64 (nginx-stable)
nginx(x86-64) = 1.14.0-1.el6.ngx
利用可能: nginx-1.14.1-1.el6.ngx.x86_64 (nginx-stable)
nginx(x86-64) = 1.14.1-1.el6.ngx
利用可能: nginx-1.14.2-1.el6.ngx.x86_64 (nginx-stable)
・・・・・・・・・・・

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

パッケージ nginx は nginx-all-modules によって不要になりました。代わりに 1:nginx-all-modules-1.12.1-1.33.amzn1.x86_64 のインストールを試みています。

というメッセージであれば、 nginx-all-modules-1.12.1-1.33.amzn1.x86_64 が新しいパッケージと判断していますね。

試していないのですが、yum で install の代わりに downgrade を指定したらインストールできたりしないでしょうか。(自己責任で試してくださいね。)

man yum

downgrade
Will try and downgrade a package from the version currently installed to the previously highest version (or the specified version). The depsolver will not necessarily work, but if you specify all the packages it should work (and thus. all the simple cases will work). Also this does not work for "installonly" packages, like Kernels. downgrade operates on groups, files, provides, filelists and rpm files just like the "install" command.

投稿2020/09/03 10:30

編集2020/09/03 10:31
CHERRY

総合スコア25171

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

basken

2020/09/03 10:37

解決できました!! ありがとうございます!
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問