2012-07-15 34 views
-2

只是想從11.0更新火狐13.0最新 的Ubuntu所以做了以下內容:Ubuntu的軟件包管理(基本):sudo易於得到升級的Firefox

$ sudo易於得到升級的Firefox

以爲我的Firefox會升級。

相反的Ubuntu開始更新似乎 整個系統的每一個包。現在我無法停止該進程,因爲擔心 ,如果我這樣做,可能會使系統處於不一致的狀態。

我在哪裏出了錯在發出正確的命令,在命令行升級 單個封裝中。好的,幸好15分鐘後 命令成功返回。

升級和更新有什麼區別?

感謝,

約翰Goche的

+0

約翰你好,你的問題不是一個編程問題。在StackExchange中嘗試超級用戶。 – drum 2012-07-15 19:23:06

+0

不是一個編程問題,所以脫離堆棧溢出的話題。 [askubuntu.com](http://askubuntu.com)將是一個更好的地方來問這個問題。 – Oded 2012-07-15 19:23:27

回答

0

試試這個:

apt-get update 
apt-get install firefox 

您必須使用安裝命令來安裝,並同時更新包。

0

man apt-get

升級

升級用於安裝當前安裝從源系統中所有包的最新版本 /etc/apt/sources.list中列舉 。目前可用的新版本安裝包進行檢索和升級

(...)

安裝

安裝之後所需的安裝或升級一個或多個包。

(...)

5

直接取自apt-get的手冊頁:

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. 

更新來更新apt-get的軟件包列表,升級來安裝更新爲全部爲包。要僅更新一個包,請使用install。

sudo apt-get install firefox
相關問題