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

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

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

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

Apache

Apacheは、Apache HTTP Serverの略で、最も人気の高いWebサーバソフトウェアの一つです。安定性が高いオープンソースソフトウェアとして商用サイトから自宅サーバまで、多くのプラットフォーム向けに開発・配布されています。サーバーソフトウェアの不具合(NCSA httpd)を修正するパッチ(a patch)を集積、一つ独立したソフトウェアとして開発されました。

Q&A

解決済

1回答

4102閲覧

CentOS7にCertbotをインストールできない(snapdがインストールできない)

maedamin

総合スコア13

CentOS

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

Apache

Apacheは、Apache HTTP Serverの略で、最も人気の高いWebサーバソフトウェアの一つです。安定性が高いオープンソースソフトウェアとして商用サイトから自宅サーバまで、多くのプラットフォーム向けに開発・配布されています。サーバーソフトウェアの不具合(NCSA httpd)を修正するパッチ(a patch)を集積、一つ独立したソフトウェアとして開発されました。

0グッド

0クリップ

投稿2021/02/28 16:23

編集2021/02/28 16:29

Let'sEncryptのワイルドカードタイプ更新のためCentOS7にCertbotをインストールしたい

CentOS7.2.1511 、WEBサーバーはApacheです。

すでにLet'sEncryptのワイルドカードはインストール済です。
一度更新はしており、その際はcertbot-autoを使っていました。

しかし、同様の手順で行うとすると、certbot-autoはもう使えないとのメッセージが出ます。

Your system is not supported by certbot-auto anymore. certbot-auto and its Certbot installation will no longer receive updates. You will not receive any bug fixes including those fixing server compatibility or security problems. Please visit https://certbot.eff.org/ to check for other alternatives. Saving debug log to /var/log/letsencrypt/letsencrypt.log Plugins selected: Authenticator apache, Installer apache

### snapdがインストールできない?
https://certbot.eff.org/ サイトに行き、
https://certbot.eff.org/lets-encrypt/centosrhel7-apache
の手順に従い、snapdのインストールを試みますが、

[root@centos70]# sudo yum install snapd 読み込んだプラグイン:copr, fastestmirror cr | 2.9 kB 00:00:00 cr/7/x86_64/primary_db | 1.1 kB 00:00:00 Loading mirror speeds from cached hostfile * base: d36uatko69830t.cloudfront.net * extras: d36uatko69830t.cloudfront.net * remi-safe: ftp.riken.jp * updates: d36uatko69830t.cloudfront.net 依存性の解決をしています --> トランザクションの確認を実行しています。 ---> パッケージ snapd.x86_64 0:2.30-0.el7.centos.1 を インストール --> 依存性の処理をしています: snap-confine(x86-64) = 2.30-0.el7.centos.1 のパッケージ: snapd-2.30-0.el7.centos.1.x86_64 --> 依存性の処理をしています: snapd-selinux = 2.30-0.el7.centos.1 のパッケージ: snapd-2.30-0.el7.centos.1.x86_64 --> 依存性の処理をしています: bash-completion のパッケージ: snapd-2.30-0.el7.centos.1.x86_64 --> 依存性の処理をしています: fuse のパッケージ: snapd-2.30-0.el7.centos.1.x86_64 --> 依存性の処理をしています: squashfs-tools のパッケージ: snapd-2.30-0.el7.centos.1.x86_64 --> 依存性の処理をしています: squashfuse のパッケージ: snapd-2.30-0.el7.centos.1.x86_64 --> トランザクションの確認を実行しています。 ---> パッケージ bash-completion.noarch 1:2.1-8.el7 を インストール ---> パッケージ fuse.x86_64 0:2.9.2-11.el7 を インストール ---> パッケージ snap-confine.x86_64 0:2.30-0.el7.centos.1 を インストール --> 依存性の処理をしています: libseccomp.so.2()(64bit) のパッケージ: snap-confine-2.30-0.el7.centos.1.x86_64 ---> パッケージ snapd.x86_64 0:2.30-0.el7.centos.1 を インストール --> 依存性の処理をしています: squashfuse のパッケージ: snapd-2.30-0.el7.centos.1.x86_64 ---> パッケージ snapd-selinux.noarch 0:2.30-0.el7.centos.1 を インストール --> 依存性の処理をしています: selinux-policy-base >= 3.13.1-166.el7_4.7 のパッケージ: snapd-selinux-2.30-0.el7.centos.1.noarch ---> パッケージ squashfs-tools.x86_64 0:4.3-0.21.gitaae0aff4.el7 を インストール --> トランザクションの確認を実行しています。 ---> パッケージ libseccomp.x86_64 0:2.3.1-4.el7 を インストール ---> パッケージ selinux-policy-targeted.noarch 0:3.13.1-102.el7_3.15 を 更新 ---> パッケージ selinux-policy-targeted.noarch 0:3.13.1-268.el7_9.2 を アップデート --> 依存性の処理をしています: selinux-policy = 3.13.1-268.el7_9.2 のパッケージ: selinux-policy-targeted-3.13.1-268.el7_9.2.noarch --> 依存性の処理をしています: selinux-policy = 3.13.1-268.el7_9.2 のパッケージ: selinux-policy-targeted-3.13.1-268.el7_9.2.noarch ---> パッケージ snapd.x86_64 0:2.30-0.el7.centos.1 を インストール --> 依存性の処理をしています: squashfuse のパッケージ: snapd-2.30-0.el7.centos.1.x86_64 --> トランザクションの確認を実行しています。 ---> パッケージ selinux-policy.noarch 0:3.13.1-102.el7_3.15 を 更新 ---> パッケージ selinux-policy.noarch 0:3.13.1-268.el7_9.2 を アップデート ---> パッケージ snapd.x86_64 0:2.30-0.el7.centos.1 を インストール --> 依存性の処理をしています: squashfuse のパッケージ: snapd-2.30-0.el7.centos.1.x86_64 --> 依存性解決を終了しました。 エラー: パッケージ: snapd-2.30-0.el7.centos.1.x86_64 (copr:copr.fedorainfracloud.org:ngompa:snapcore-el7) 要求: squashfuse 問題を回避するために --skip-broken を用いることができます。 これらを試行できます: rpm -Va --nofiles --nodigest

--skip-brokenを後ろにつけて、再実行すると

[root@centos70]# sudo yum install snapd --skip-broken 読み込んだプラグイン:copr, fastestmirror Loading mirror speeds from cached hostfile * base: d36uatko69830t.cloudfront.net * extras: d36uatko69830t.cloudfront.net * remi-safe: ftp.riken.jp * updates: d36uatko69830t.cloudfront.net 依存性の解決をしています --> トランザクションの確認を実行しています。 ---> パッケージ snapd.x86_64 0:2.30-0.el7.centos.1 を インストール --> 依存性の処理をしています: snap-confine(x86-64) = 2.30-0.el7.centos.1 のパッケージ: snapd-2.30-0.el7.centos.1.x86_64 --> 依存性の処理をしています: snapd-selinux = 2.30-0.el7.centos.1 のパッケージ: snapd-2.30-0.el7.centos.1.x86_64 --> 依存性の処理をしています: bash-completion のパッケージ: snapd-2.30-0.el7.centos.1.x86_64 --> 依存性の処理をしています: fuse のパッケージ: snapd-2.30-0.el7.centos.1.x86_64 --> 依存性の処理をしています: squashfs-tools のパッケージ: snapd-2.30-0.el7.centos.1.x86_64 --> 依存性の処理をしています: squashfuse のパッケージ: snapd-2.30-0.el7.centos.1.x86_64 --> トランザクションの確認を実行しています。 ---> パッケージ bash-completion.noarch 1:2.1-8.el7 を インストール ---> パッケージ fuse.x86_64 0:2.9.2-11.el7 を インストール ---> パッケージ snap-confine.x86_64 0:2.30-0.el7.centos.1 を インストール --> 依存性の処理をしています: libseccomp.so.2()(64bit) のパッケージ: snap-confine-2.30-0.el7.centos.1.x86_64 ---> パッケージ snapd.x86_64 0:2.30-0.el7.centos.1 を インストール --> 依存性の処理をしています: squashfuse のパッケージ: snapd-2.30-0.el7.centos.1.x86_64 ---> パッケージ snapd-selinux.noarch 0:2.30-0.el7.centos.1 を インストール --> 依存性の処理をしています: selinux-policy-base >= 3.13.1-166.el7_4.7 のパッケージ: snapd-selinux-2.30-0.el7.centos.1.noarch ---> パッケージ squashfs-tools.x86_64 0:4.3-0.21.gitaae0aff4.el7 を インストール --> トランザクションの確認を実行しています。 ---> パッケージ libseccomp.x86_64 0:2.3.1-4.el7 を インストール ---> パッケージ selinux-policy-targeted.noarch 0:3.13.1-102.el7_3.15 を 更新 ---> パッケージ selinux-policy-targeted.noarch 0:3.13.1-268.el7_9.2 を アップデート --> 依存性の処理をしています: selinux-policy = 3.13.1-268.el7_9.2 のパッケージ: selinux-policy-targeted-3.13.1-268.el7_9.2.noarch --> 依存性の処理をしています: selinux-policy = 3.13.1-268.el7_9.2 のパッケージ: selinux-policy-targeted-3.13.1-268.el7_9.2.noarch ---> パッケージ snapd.x86_64 0:2.30-0.el7.centos.1 を インストール --> 依存性の処理をしています: squashfuse のパッケージ: snapd-2.30-0.el7.centos.1.x86_64 --> トランザクションの確認を実行しています。 ---> パッケージ selinux-policy.noarch 0:3.13.1-102.el7_3.15 を 更新 ---> パッケージ selinux-policy.noarch 0:3.13.1-268.el7_9.2 を アップデート ---> パッケージ snapd.x86_64 0:2.30-0.el7.centos.1 を インストール --> 依存性の処理をしています: squashfuse のパッケージ: snapd-2.30-0.el7.centos.1.x86_64 パッケージは依存関係に問題があるため、飛ばします: 1:bash-completion-2.1-8.el7.noarch (base から) fuse-2.9.2-11.el7.x86_64 (base から) libseccomp-2.3.1-4.el7.x86_64 (base から) selinux-policy-3.13.1-268.el7_9.2.noarch (updates から) selinux-policy-targeted-3.13.1-268.el7_9.2.noarch (updates から) snap-confine-2.30-0.el7.centos.1.x86_64 (copr:copr.fedorainfracloud.org:ngompa:snapcore-el7 から) snapd-2.30-0.el7.centos.1.x86_64 (copr:copr.fedorainfracloud.org:ngompa:snapcore-el7 から) snapd-selinux-2.30-0.el7.centos.1.noarch (copr:copr.fedorainfracloud.org:ngompa:snapcore-el7 から) squashfs-tools-4.3-0.21.gitaae0aff4.el7.x86_64 (base から)

ですが、次の
sudo systemctl enable --now snapd.socket
を試しても、ファイル、ディレクトリがないと言われます。
(インストールに失敗しているようです。)

### 最終的に実行したいこと

どうもsnapdが入らないことにはcertbotがインストールできません。
最終的にはLet's Encryptのワイルドカードが更新できれば良いので、他の手段でも構いません。

よろしくお願いいたします。

### 補足情報
エラーメッセージにある「要求: squashfuse」が不明です。
また
rpm -Va --nofiles --nodigest
も試しましたが、変化はありませんでした。

[root@centos70 /]# yum install epel-release 読み込んだプラグイン:copr, fastestmirror Loading mirror speeds from cached hostfile * base: d36uatko69830t.cloudfront.net * extras: d36uatko69830t.cloudfront.net * remi-safe: ftp.riken.jp * updates: d36uatko69830t.cloudfront.net パッケージ epel-release-7-11.noarch はインストール済みか最新バージョンです 何もしません [root@centos70 /]# yum install certbot python-certbot-apache 読み込んだプラグイン:copr, fastestmirror Loading mirror speeds from cached hostfile * base: d36uatko69830t.cloudfront.net * extras: d36uatko69830t.cloudfront.net * remi-safe: ftp.riken.jp * updates: d36uatko69830t.cloudfront.net パッケージ certbot は利用できません。 パッケージ python-certbot-apache は利用できません。 エラー: 何もしません

一応、こちらも提示しておきます。

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

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

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

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

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

maedamin

2021/03/01 04:46

ありがとうございます。 そういうことでしたか・・・。 OSバージョン上げるとなると、すぐには無理ですね。
guest

回答1

0

自己解決

先ほど、snapdはCentOS7.6以上との情報いただきました。

Snap is available for CentOS 8 and CentOS 7, from the 7.6 release onwards. It’s also available for Red Hat Enterprise Linux (RHEL) 7.6+ (see Installing snap on Red Hat Enterprise Linux).

見落としていました。
なので、この件はOSのアップグレードが必要という結論にいたします。
SSLは取り急ぎ、有料のSSLで対応します。

投稿2021/03/01 04:52

maedamin

総合スコア13

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

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

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問