sudo apt-getコマンドはLinux Mintでは機能しません

sudo apt-getコマンドはLinux Mintでは機能しません

私はLinux Mintコンピュータにgit / Fluxguiなどのいくつかのプログラムをインストールしようとしています。ただし、パスワードを使用して次のコマンドを入力するたびに

sudo apt-get install git

または

sudo apt-get install fluxgui

私はわずか数ミリ秒の出力を取得します。

Reading packages list ... 8%:

次に消えてコンソールに戻り、次の行を入力します。sudo apt-get installコマンドを入力したことがないようです。

確かに、私は同じことを試み、sudo apt-get check同じことが起こりました。

この問題を解決する方法を知っている人はいますか?

編集:Sudo apt-get updateを実行してみました。インポートされたパッケージが一覧表示され、その後に次のように表示されます。

Fetched 3,116 kB in 6s (496 kB/s)

その直後にも同じことが起こり、それは私に次のような結果を与えました。

Reading packages list ... 8%:

エラー説明なしで再び終了します。

ベストアンサー1

先に走らなければならないapt-get update

マニュアルページから:

update
           update is used to resynchronize the package index files from their sources. The indexes of available
           packages are fetched from the location(s) specified in /etc/apt/sources.list. For example, when using a
           Debian archive, this command retrieves and scans the Packages.gz files, so that information about new and
           updated packages is available. An update should always be performed before an upgrade or dist-upgrade.
           Please be aware that the overall progress meter will be incorrect as the size of the package files cannot
           be known in advance.

したがって、APTがパッケージデータベースをインポートして更新するには、まずこの作業を実行することをお勧めします。apt-get update

おすすめ記事