Je! “Kusasisha” ni nini na kwa nini inasasisha zaidi ya "sasisha"?


Nenda kwa jibu lililokubaliwa


Nilikuwa nikishangaa kwanini upgrade wakati mwingine hataki kuboresha sehemu fulani za mfumo, wakati dist-upgrade gani. Hapa kuna mfano baada ya kukimbia apt-get upgrade :

apt-get upgrade :

 [email protected]:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages have been kept back:
  linux-generic linux-headers-generic linux-image-generic
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
 

dhidi ya apt-get dist-upgrade :

 [email protected]:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  linux-headers-3.0.0-13 linux-headers-3.0.0-13-generic
  linux-image-3.0.0-13-generic
The following packages will be upgraded:
  linux-generic linux-headers-generic linux-image-generic
3 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 48.5 MB of archives.
After this operation, 215 MB of additional disk space will be used.
Do you want to continue [Y/n]?
 

Kwa maneno mengine, kwa nini hii haiwezi kufanywa upgrade ?


399





2011-11-22




Idadi ya majibu: 5


Kutoka kwa apt-get mwongozo :

 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.

dist-upgrade
   dist-upgrade in addition to performing the function of upgrade,
   also intelligently handles changing dependencies with new versions
   of packages; apt-get has a "smart" conflict resolution system, and
   it will attempt to upgrade the most important packages at the
   expense of less important ones if necessary. So, dist-upgrade
   command may remove some packages. The /etc/apt/sources.list file
   contains a list of locations from which to retrieve desired package
   files. See also apt_preferences(5) for a mechanism for overriding
   the general settings for individual packages.
 

Na apt zana mpya inayopatikana kutoka 14.04 kuendelea:

 full-upgrade
   full-upgrade performs the function of upgrade but may also remove
   installed packages if that is required in order to resolve a
   package conflict.
 

Katika kesi yako, naona, kwa mfano, kwamba linux-headers ni kifurushi cha kawaida ambacho hutolewa na wote linux-headers-3.0.0-12 na linux-headers-3.0.0-13 na hiyo inasikika kama aina ya ufungaji wa kifurushi na uondoaji ulioshughulikiwa na dist-upgrade , lakini sio na upgrade .


333


2011-11-22

apt-get upgrade ni mdogo kwa kesi ambapo vifurushi vinapaswa kubadilishwa na toleo mpya, lakini hakuna kifurushi kinachohitaji kuongezwa au kuondolewa. Toleo jipya la Firefox, kwa mfano, inapaswa kusanikishwa na apt-get upgrade .

Walakini apt-get upgrade watakataa kufanya kazi wakati kuna nyongeza au uondoaji unaohitajika na matoleo yaliyosasishwa. Kwa mfano, unapokuwa na kernel linux-image-3.2.0-10-generic iliyosanikishwa na linux-image-3.2.0-11-generic kuonekana, linux-image-generic kifurushi kinasasishwa kutegemea toleo mpya zaidi. Ili kufunga kernel mpya, unahitaji kukimbia apt-get dist-upgrade .

Ona jinsi mtu apt-get upgrade atakavyosema kwamba vifurushi vya kerneli vimekuwa held back . Hiyo ndiyo fungu la kutumia apt-get dist-upgrade .


140


2012-01-27

Kimsingi kusasisha tu kusasisha vifurushi zilizopo kutoka toleo moja hadi lingine. Haitafunga au kuondoa vifurushi, hata ikiwa kufanya hivyo inahitajika kuboresha wengine. Katika kisa cha sasisho za kernel, kusasisha kifurushi cha genux-generic inahitaji kusanikisha kifurushi kipya cha linux-3.0.0-13-generic, na kwa kuwa kusasisha kunakataa kufunga au kuondoa vifurushi, inakataa kusasisha linux-generic.

Wakati mwingine kutokufanikiwa kwa baina ya vifurushi kutahitaji vifurushi kadhaa kuondolewa ili kuboresha wengine, na hiyo pia itahitaji usasishaji wa mbali. Sasisho za Kernel zitahitaji kusasishwa kila mara kwa sababu ya jinsi inavyoshughulikiwa. Badala ya kuwa na kifurushi cha kernel ambacho kinasasishwa, kifurushi kipya cha kernel huundwa kila wakati, na metapackage ya kern inasasishwa kutegemea kifurushi kipya cha kernel badala ya zamani. Hii ilifanywa ili kuweka matoleo ya zamani ya kernel karibu ili ikiwa kuna shida ya kupandia kernel mpya, unaweza kuchagua ile ya zamani kutoka kwenye menyu ya boot na kupona.


34


2011-11-22

apt-get upgrade Amri kwa kawaida tu kufunga updates (au hitilafu) kwa paket kwa sasa imewekwa. Kawaida kutolewa mpya ya Mozilla Firefox , kwa mfano, kungewekwa na amri hii.

Hata hivyo apt-get upgrade itakuwa NOT ujumla kufunga matoleo mapya, ambapo mabadiliko makubwa (ikiwa ni pamoja kuondolewa kwa paket au grub update inahitajika). Kwa mfano, wakati mpya ya Linux kernel (linux-picha-3.xx-xx-generic, nk) inapatikana, kifurushi hakijasakinishwa.

Ili kufunga kernel mpya, utahitaji kukimbia apt-get dist-upgrade . Utaarifiwa utakapoendesha apt-get upgrade , kwani itasema kwamba vifurushi kadhaa vimeshikiliwa. Hiyo ndiyo fungu lako la kutumia : apt-get dist-upgrade .


11


2012-01-28

Chaguo lako bora ni:

apt full-upgrade

-soma nini hushughulikia utegemezi wakati wa kusanidi vifurushi; wakati:

 apt upgrade
 

-Hakuna kutegemeana kushughulikia kiotomatiki wakati wa kusasisha vifurushi.

- duBtrotterS


2


2018-11-18