Linux端末にgccをインストールしようとしてエラーが発生する

Linux端末にgccをインストールしようとしてエラーが発生する

私のコンピュータにgccをインストールしようとしていますが、次のエラーが発生します。

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/b/binutils/libctf0_2.34-6ubuntu1.1_amd64.deb  404  Not Found [IP: 91.189.88.152 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/b/binutils/binutils-x86-64-linux-gnu_2.34-6ubuntu1.1_amd64.deb  404  Not Found [IP: 91.189.88.152 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/b/binutils/binutils_2.34-6ubuntu1.1_amd64.deb  404  Not Found [IP: 91.189.88.152 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_5.4.0-81.91_amd64.deb  404  Not Found [IP: 91.189.88.152 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

「gcc」を再入力すると、sudo apt install を再度求めるメッセージが表示されます。どんな提案がありますか?

ベストアンサー1

システムを更新する必要があります。

sudo apt update
sudo apt upgrade
sudo apt install gcc

おすすめ記事