0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

linuxでcurlがインストールできない時

0
Posted at

概要

Linuxを使用している時、curlインストールができないことが多かったため備忘録。

目次

はじめに

proxmoxでubuntuコンテナを運用したり、debianを動かしたりする中で、毎回curlがインストールできず、そのたびに対処法を調べていました。
試したコマンドは以下。

sudo apt update
sudo apt upgrade
sudo apt install  curl

上記のコマンドを入力すると、Error: Unable to locate package cullと返ってきてインストールに失敗します。
本記事には、ubuntuとdebianでのインストールが成功した時のコマンドを記載します。

環境

OS: ubuntuもしくはdebian
ターミナル上で完結します。

手順

以下のコマンドを入力してください。

sudo apt update
sudo apt upgrade
sudo apt install ca-certificates curl gnupg

解説

どうやら、curlはHTTPS証明書がないとインストールできないようです。(詳しくはよくわかりませんでした)
証明書にあたるのがca-certificates、データの暗号化や電子署名の検証をするためのツールがgnupgです。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?