私はLinux Debian 8を使用しています。 webmin/virtualminをインストールし、サーバー上で1つのドメインが実行されています。 PHPのバージョンは7.1です。しかし、私のサーバーではカールを実行できません。カールをインストールしようとしていますが、次のエラーが発生します。
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
動作しない次のコマンドをすべて試しました。
sudo apt-get -f install
sudo apt-get update
sudo apt-get clean
sudo apt-get upgrade
sudo apt-get update
次のエラーが表示されます。
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.sury.org jessie InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B188E2B695BD4743
W: Failed to fetch http://debian.mirrors.ovh.net/debian/dists/jessie-updates/InRelease Unable to find expected entry 'main/source/Sources' in Release file (Wrong sources.list entry or malformed file)
W: Failed to fetch https://packages.sury.org/php/dists/jessie/InRelease
W: Some index files failed to download. They have been ignored, or old ones used instead.}
私のsources.list
ファイルの内容:
# deb cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official amd64 NETINST Binary-1 20170116-10:57]/ jessie main
#deb cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official amd64 NETINST Binary-1 20170116-10:57]/ jessie main
deb http://debian.mirrors.ovh.net/debian jessie main
deb-src http://debian.mirrors.ovh.net/debian jessie main
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main
# jessie-updates, previously known as 'volatile'
deb http://debian.mirrors.ovh.net/debian jessie-updates main
deb-src http://debian.mirrors.ovh.net/debian jessie-updates main
deb http://software.virtualmin.com/vm/6/gpl/apt virtualmin-jessie main
deb http://software.virtualmin.com/vm/6/gpl/apt virtualmin-universal main
ベストアンサー1
まあ、すべてが1行にあるので、コマンドを正しく実行したかどうかはわかりません。
apt-get clean
apt-get update
apt-get install php-curl
このコマンドを実行すると、apt-get upgrade
カールをインストールするのではなく、システムのすべてのパッケージがアップグレードされます。しかし、何があってもシステムを最新の状態に保つためには、必要な作業がいくつかあります。
わかりました。フランスにいるようです。その場合は、source.listを以下のように変更することをお勧めします。
deb http://ftp.fr.debian.org/debian/ jessie main
deb http://security.debian.org/ jessie/updates main
# jessie-updates, previously known as 'volatile'
deb http://ftp.fr.debian.org/debian/ jessie-updates main
deb http://software.virtualmin.com/vm/6/gpl/apt virtualmin-jessie main
deb http://software.virtualmin.com/vm/6/gpl/apt virtualmin-universal main
また、PHP用の「sury.org」リポジトリを持っているようです。これについてはよくわかりません。ただし、readmeの指示に従って適切なキーをインストールする必要があります。
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
私はこのリポジトリについて全く知らないので、このキーをインストールして使用することにしました。
次に、ファイルを保存して実行してapt-get update
結果を確認します。