-4

最新のubuntuでfirefoxを11.0から13.0に更新したかったので、次のようにしました。

$ sudo apt-get アップグレード Firefox

私のFirefoxがアップグレードされると思っています。

代わりに、ubuntu はシステム全体のすべてのパッケージを更新し始めたようです。プロセスを停止すると、システムが一貫性のない状態のままになる可能性があるため、プロセスを停止することはできません。

コマンドラインで単一のパッケージをアップグレードするための正しいコマンドを発行する際に、どこで間違ったのでしょうか。OK、ありがたいことに 15 分後、コマンドは正常に返されました。

アップグレードと更新の違いは何ですか?

ありがとう、

ジョン・ゴーチ

4

3 に答える 3

6

apt-get man ページから直接取得:

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.

upgrade
   upgrade is used to install the newest versions of all packages
   currently installed on the system from the sources enumerated in
   /etc/apt/sources.list. Packages currently installed with new
   versions available are retrieved and upgraded; under no
   circumstances are currently installed packages removed, or packages
   not already installed retrieved and installed. New versions of
   currently installed packages that cannot be upgraded without
   changing the install status of another package will be left at
   their current version. An update must be performed first so that
   apt-get knows that new versions of packages are available.

update は apt-get パッケージ リストを更新するために使用され、upgrade はすべてのパッケージの更新をインストールするために使用されます。1 つのパッケージだけを更新するには、install を使用します。

sudo apt-get インストール Firefox
于 2012-07-15T19:28:28.483 に答える
0

これを試して:

apt-get update
apt-get install firefox

パッケージのインストールと更新にも install コマンドを使用する必要があります。

于 2012-07-15T19:23:55.567 に答える
0

からman apt-get:

アップグレード

upgrade は、現在システムにインストールされているすべてのパッケージの最新バージョンを、/etc/apt/sources.list に列挙されているソースからインストールするために使用されます。利用可能な新しいバージョンで現在インストールされているパッケージが取得され、アップグレードされます

(...)

インストール

install の後に、インストールまたはアップグレードに必要な 1 つ以上のパッケージが続きます。

(...)

于 2012-07-15T19:27:18.137 に答える