Je! Ninawezaje kutatua utegemezi usio sawa baada ya kuongeza PPA?


Nenda kwa jibu lililokubaliwa


Wakati mwingine, ninaposanikisha vitu, mimi hupata hitilafu kama ifuatavyo:

 Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 package1 : Depends: package2 (>= 1.8) but 1.7.5-1ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
 

Ninawezaje kusuluhisha hii?


549





2012-05-21




Idadi ya majibu: 14


APT ni mfumo wa usimamizi wa kifurushi cha mgawanyo wa Debian na Linux nyingine kulingana na hiyo, kama vile Ubuntu. Kwa sehemu kubwa, APT ni rahisi kutumia kwa kufunga, kuondoa, na kusasisha vifurushi. Katika hali nadra, mara nyingi unapokuwa unachanganya kwa utegemezi wa upande wa tatu, kuna nafasi ambayo apt-get inaweza kuishia kukupa kosa la kukwambia kwamba ufungaji wa kifurushi hauwezi kukamilika.

Suluhisho:

Daima ni wazo nzuri kusanidi faili za usanidi kama /etc/apt/sources.list , kwa hivyo unaweza kubadilisha mabadiliko ikiwa inahitajika.

  • Ikiwa error inaonyesha kitu kama hiki:

    <some-package>: Depends: <other-package> (= version) but this-version is to be installed

    Kisha hakikisha kwamba restricted na universe kumbukumbu zimewezeshwa. Piga Alt+ F2, chapa software-properties-gtk na piga Enter.

    Chini ya Ubuntu Software kichupo, Wezesha hazina zote.




  • Sababu moja inayowezekana ya utegemezi usiofaa inaweza kuwa hifadhidata ya vifurushi, na / au vifurushi vingine havikuwekwa vizuri. Ili kurekebisha tatizo hili, piga Alt+ Ctrl+ Tkufungua terminal na jaribu kuendesha amri moja ifuatayo:

    Sudo apt-safi

    au,

    sudo apt-kupata autoclean

    apt-get clean husafirisha uhifadhi wa ndani wa faili zilizopatikana za kifurushi (faili za .deb). Huondoa kila kitu lakini faili ya kufuli kutoka / var / cache / apt / kumbukumbu / na / var / cache / apt / kumbukumbu / sehemu /. apt-get autoclean husafirisha uhifadhi wa ndani wa faili zilizorudishwa za kifurushi, lakini tofauti na apt-get clean hivyo, huondoa tu faili za kifurushi ambazo haziwezi kupakuliwa tena, na hazina maana.

  • Moja ya marekebisho ya kimsingi ya kutatua shida za utegemezi ni kukimbia:

    sudo apt-kupata -kwa

    -f Hapa anasimama kwa "raha kuvunjwa". Apt itajaribu kurekebisha utegemezi uliovunjika. Kama wewe mwenyewe imewekwa mfuko kwamba alikuwa maelewano hayajafikiwa, apt-get kufunga maelewano hayo, kama inawezekana, vinginevyo inaweza tu kuondoa mfuko kwamba imewekwa ili kutatua tatizo hilo.

    Kisha kukimbia:

    sudo dpkg --configure -a

    Kisha endesha hii tena:

    sudo apt-kupata -kwa

    Ikiwa matokeo ni:

    0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

    Hiyo inamaanisha ilishindwa.

  • Suluhisho linalofuata ni kukimbia:

    sudo apt-kupata -u dist-Sasisha

    Ikiwa inaonyesha vifurushi vyovyote vilivyofanyika, ni bora kuziondoa. Vifurushi hufanyika kwa sababu ya migogoro ya utegemezi ambayo apt haiwezi kusuluhisha. Jaribu amri hii kupata na kurekebisha mizozo:

    sudo apt-Get -o Debug :: pkgProblemResolver = ndiyo kusasisha

    Ikiwa haiwezi kurekebisha migogoro, itatoka na:

    0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.

    Futa vifurushi vilivyofanyika moja kwa moja, vinaendesha dist-upgrade kila wakati, hadi hakuna vifurushi zaidi vilivyoshikiliwa. Kisha kuweka tena vifurushi yoyote inayohitajika. Hakikisha kutumia --dry-run chaguo, ili upewe habari kamili juu ya matokeo:

    sudo apt-kupata kuondoa - ongeza kukimbia-jina la kifurushi

    Kwa kuwa kuondoa kifurushi unajaribu kusanikisha kunaweza kuwa sio bora, unaweza pia kujaribu kutafuta kumbukumbu ambayo ina vifurushi unazohitaji kukidhi utegemezi.

Mwishowe, ikiwa yote mengine hayatafaulu, unaweza kujaribu kutosheleza utegemezi mwenyewe, kwa kutafuta na kusanikisha vifurushi muhimu, au kwa kuziweka kutoka chanzo na kisha kuunda vifurushi vya " deni " kwao.

Lemaza / Ondoa / Ondoa PPAs:

PPAs (Jalada la Package la Kibinafsi) ni hazina zilizohifadhiwa kwenye Launchpad . Unaweza kutumia PPAs kufunga au kusasisha vifurushi ambavyo hazipatikani katika hazina rasmi za Ubuntu.

Sababu moja ya kawaida ya utegemezi wa unmet ni PPAs, haswa inapotumika kuboresha kifurushi kilichopo kwenye hazina za Ubuntu. Ili kutatua shida unayo chaguzi tatu: afya, safisha (rudisha nyuma kwenye kifurushi cha asili kwenye hazina za Ubuntu) au ondoa PPA.

  • Lemaza:

    Kulemaza PPA inamaanisha hakuna sasisho zaidi kwa vifurushi vilivyosanikishwa kutoka kwa PPA hiyo. Kuzima PPA: Fungua Software Center > Edit > Software Sources au,

    Piga Alt+ F2na kukimbia software-properties-gtk .

    Bonyeza kwenye Other Software tabo, utaona kuwa kila PPA ina mistari miwili hapa, moja kwa vifurushi vilivyokusanywa na moja kwa chanzo, Uncheck mistari yote miwili ya kuzima PPA. Hapa unaweza pia kuongeza na kuondoa PPAs.




  • Tengeneza:

    Kununua PPA inamaanisha, kupungua vifurushi kwenye PPA iliyochaguliwa kwenye toleo kwenye hazina rasmi ya Ubuntu na kuzima PPA hiyo. Utaftaji wa PPA hufanya hivyo kabisa. Ili kufunga PPA purge endesha amri ifuatayo:

    sudo apt-kupata kufunga ppa-purge

Lakini, ukizingatia swali apt limevunjwa, amri ya hapo juu itashindwa. Kwa hivyo tumia amri hii

 mkdir ppa-purge && cd ppa-purge && wget http://mirror.pnl.gov/ubuntu/pool/universe/p/ppa-purge/ppa-purge_0.2.8+bzr56_all.deb && wget http://mirror.pnl.gov/ubuntu//pool/main/a/aptitude/aptitude_0.6.6-1ubuntu1_i386.deb && sudo dpkg -i ./*.deb
 

Kutumia PPA Purge:

sudo ppa-purge ppa: someppa / ppa

Ikiwa amri ya 'ppa-purge' itashindwa kwa sababu fulani, huwezi kukimbia tena "kusafisha" isipokuwa uwezeshe tena PPA (Ili kuwezesha PPA kufuata hatua sawa na kulemaza PPA na Check mistari yote miwili. PPA kuiwezesha).

Kumbuka: PPA Purge haiondoe PPAs ( zinaweza kuwa katika siku zijazo ), kwa hivyo itabidi uondoe PPA mwenyewe.

  • Ondoa:

    Ikiwa kifurushi kilichosanikishwa kutoka PPA haipo katika hazina rasmi ya Ubuntu basi kutumia PPA Purge haifai, kwa sababu hakuna kitu cha kupunguzwa na hakijaweza PPA Purge kuifuta. Kuondoa PPA na vifurushi zilizosanikishwa endesha amri zifuatazo: (Puuza amri ya kwanza ikiwa hutaki kuondoa vifurushi vilivyosanikishwa)

    sudo apt-kupata autoremove - jina la kifurushi-jina
    sudo kuongeza-apt-repository - duka la ppa: someppa / ppa
    sudo apt-kupata autoclean
    

Vinginevyo unaweza kutumia Y PPA Manager kulemaza / kuondoa / kusafisha ya PPA (Maelezo mwishoni mwa jibu).

Hatua za Kuzuia:

Kwa hivyo tunawezaje kuzuia hili kutokea kwa mara ya kwanza?

  • Endelea kuweka Ubuntu hadi leo. Ubuntu huarifu kiotomatiki wakati sasisho zinapatikana, unaweza pia kuangalia visasisho vinavyopatikana kwa kubonyeza kwenye Session Indicator paneli ya Umoja:




    Au, Piga Alt+ Ctrl+ Tkufungua vituo na usimamie amri zifuatazo:

    sudo apt-pata sasisho
    sudo apt-kupata sasisho

    Sasisha: Inalinganisha orodha yako ya vifurushi zinazopatikana na seva kwenye hazina za chanzo. Boresha: Upakuaji na kusanikisha toleo mpya zaidi ya vifurushi vyako vilivyosanikishwa.

  • Ikiwa unaamua kuongeza hazina zingine kwenye source.list, hakikisha kwamba uwekaji kumbukumbu unafanya kazi (na inajulikana kufanya kazi) na Ubuntu. Kumbukumbu ambazo hazikuundwa kufanya kazi na toleo lako la Ubuntu zinaweza kuleta utangamano katika mfumo wako na zinaweza kukulazimisha usanikishe tena. Pia, hakikisha kwamba unahitaji kuongeza hazina za nje kwani kifurushi cha programu unachotafuta kinaweza kuwa tayari kimeingizwa kwenye hazina rasmi! Chanzo
  • Ondoa PPA mbili. Y PPA Manager (mwongozo wa usanikisho mwishoni mwa jibu) inaweza skanning kwa urahisi na kuondoa nakala mbili za PPA.

    • Piga Alt+ F2na ukimbilie y-ppa-manager kufungua Meneja wa Y PPA.
    • Mara baada ya kufungua, click mara mbili au hit Enterjuu ya Advanced .
    • Katika kusababisha dirisha chagua Scan and remove duplicate PPAs na bofya Sawa.


ingiza maelezo ya picha hapa

Kupata Msaada:

Wakati wa kuomba msaada juu ya Askubuntu au mkutano wowote mwingine wa msaada, unapaswa kujumuisha pato la amri zifuatazo katika swali lako:

  • Matokeo ya kosa halisi:

    sudo apt-kupata ufungaji jina-la
  • Hii itaonyesha vyanzo vyako. orodha:

    cat /etc/apt/source.list
  • Hii itaonyesha orodha ya PPAs (ikiwa ipo):

    cat /etc/apt/source.list.d/*

Vyanzo vya ziada:


Meneja wa Y PPA : Meneja wa Y PPA ni duka moja la kuacha mahitaji yako yote ya PPA.


y meneja wa ppa

Hapa kuna sifa zake kadhaa:

  • vifurushi vya utaftaji katika PPA zote za Uzinduzi
  • orodha na pakua vifurushi katika PPA
  • ongeza / ondoa / safisha PPA
  • chelezo na urejeshe vyanzo vya PPA
  • ondoa nakala mbili za PPA

Ili kusanikisha Y PPA Manager , kufungua terminal kwa kupiga Alt+ Ctrl+ Tna kuendesha amri zifuatazo:

sudo kuongeza-apt-kumbukumbu ppa: webupd8team / y-ppa-meneja
sudo apt-pata sasisho
sudo apt-kupata kusanidi y-ppa-meneja

Kuzingatia swali, apt imevunjwa, kwa hivyo tumia amri hizi badala yake

 sudo su
 

na

32 Bit:

 mkdir y-ppa-manager && cd y-ppa-manager && wget https://launchpad.net/~webupd8team/+archive/y-ppa-manager/+files/launchpad-getkeys_0.3.2-1~webupd8~oneiric_all.deb && wget https://launchpad.net/~webupd8team/+archive/y-ppa-manager/+files/y-ppa-manager_0.0.8.6-1~webupd8~precise_all.deb && wget https://launchpad.net/~webupd8team/+archive/y-ppa-manager/+files/yad_0.17.1.1-1~webupd8~precise_i386.deb && dpkg -i ./*.deb
 

Bit Bit:

 mkdir y-ppa-manager && cd y-ppa-manager && wget https://launchpad.net/~webupd8team/+archive/y-ppa-manager/+files/launchpad-getkeys_0.3.2-1~webupd8~oneiric_all.deb && wget https://launchpad.net/~webupd8team/+archive/y-ppa-manager/+files/y-ppa-manager_0.0.8.6-1~webupd8~precise_all.deb && wget https://launchpad.net/~webupd8team/+archive/y-ppa-manager/+files/yad_0.17.1.1-1~webupd8~precise_amd64.deb && dpkg -i ./*.deb
 

569


2012-05-27

Kumbuka: Amri zote zilizoulizwa kuendeshwa lazima ziendwe kwenye terminal, ambayo inaweza kufunguliwa na ama Ctrl+ Alt+ Tau kutafuta terminal kwenye dashi.

Ni kweli imevunjika?

Jaribu kuendesha amri ifuatayo na jaribu kusanikisha tena programu uliyojaribu kusanikisha

 sudo apt-get update
 

Hatua za Utangulizi

Kuunga mkono

Hifadhi faili zifuatazo:

  • /etc/apt/sources.list
  • /var/lib/dpkg/status

Kwa kufanya hivyo, tumia amri hizi

 sudo cp /etc/apt/sources.list /etc/apt/sources.list.original
 

na

 sudo cp /var/lib/dpkg/status /var/lib/dpkg/status.original
 

Kusafisha kache yako

apt huhifadhi kache ya vifurushi vilivyopakuliwa hivi karibuni ili kuokoa bandwidth wakati inahitajika kusanikishwa. Hii inaweza kuwa yenye tija katika hali zingine

Sasa, ili kuiosha, una chaguzi mbili

 sudo apt-get clean 
 

Hii itaondoa vifurushi vyote vya folda /var/cache/apt/archives/ na /var/cache/apt/archives/partial isipokuwa faili za .lock. Hii inashauriwa

 sudo apt-get autoclean
 

Hii inachagua folda /var/cache/apt/archives/ na /var/cache/apt/archives/partial kuangalia ikiwa kifurushi bado iko kwenye hazina na huondoa zile ambazo sio


Kurekebisha mipaka

Kutumia hali ya kuvunjika kwa apt

 sudo apt-get -f install
 

Hii itasababisha apt kukagua kwa utegemezi uliokosekana na urekebishe kutoka kwenye hazina

Ikiwa matokeo yatasema kuwa hakuna kitu kipya kilichosanikishwa au kusasishwa, kimeshindwa.


Kuangalia ikiwa vyanzo vyote vinahitajika vimewezeshwa

Chapa gksu software-properties-gtk na utapata dirisha hili




Hakikisha vyanzo vyote vimewezeshwa.

Ifuatayo, nenda kwenye tabo nyingine ya programu na uangalie ikiwa PPA zinazohitajika za programu hiyo kusanikishwa zipo na zinawezeshwa. Pia, jaribu kulemaza baadhi ya PPA ambazo zinaweza kuwa na vifurushi zilizovunjika




sasa, kimbia sudo apt-get update

Jaribu kusanikisha programu sasa

Chagua seva bora kupakua kutoka

Chapa gksu software-properties-gtk na utapata dirisha hili




Bonyeza Upakuaji kutoka kwa sanduku la Kushuka na uchague zingine




Bonyeza Chagua Seva Bora




Kimbia sudo apt-get update

Jaribu kusanikisha programu

pia, jaribu kutumia sudo apt-get install -f


Utaftaji wa PPA

Hii ni zana inayotumiwa kusafisha ppa zilizovunjika / zisizohitajika na matumizi yao pamoja nayo

Ili kuisanikisha, kukimbia

 sudo apt-get install ppa-purge
 

Lakini, ukizingatia swali apt limevunjwa ili amri iliyo hapo juu itashindwa. Kwa hivyo tumia amri hii

 mkdir ppa-purge && cd ppa-purge && wget http://mirror.pnl.gov/ubuntu/pool/universe/p/ppa-purge/ppa-purge_0.2.8+bzr56_all.deb && wget http://mirror.pnl.gov/ubuntu//pool/main/a/aptitude/aptitude_0.6.6-1ubuntu1_i386.deb && sudo dpkg -i ./*.deb
 

Sasa tumia ppa purge

 sudo ppa-purge ppa:someppa/ppa  
 

Meneja wa Y-PPA

Meneja wa Y-PPA ni programu ya gui ambayo hukusaidia kudhibiti shida za PPA na shida kadhaa zilizoamilishwa nayo

Ili kuisakinisha

 sudo add-apt-repository ppa:webupd8team/y-ppa-manager
 

na

 sudo apt-get update
 

na

 sudo apt-get install y-ppa-manager
 

Kuzingatia swali, apt imevunjwa hivyo, tumia amri hizi badala yake

 sudo su
 

na

32 Bit:

 mkdir y-ppa-manager && cd y-ppa-manager && wget https://launchpad.net/~webupd8team/+archive/y-ppa-manager/+files/launchpad-getkeys_0.3.2-1~webupd8~oneiric_all.deb && wget https://launchpad.net/~webupd8team/+archive/y-ppa-manager/+files/y-ppa-manager_0.0.8.6-1~webupd8~precise_all.deb && wget https://launchpad.net/~webupd8team/+archive/y-ppa-manager/+files/yad_0.17.1.1-1~webupd8~precise_i386.deb && dpkg -i ./*.deb
 

Bit Bit:

 mkdir y-ppa-manager && cd y-ppa-manager && wget https://launchpad.net/~webupd8team/+archive/y-ppa-manager/+files/launchpad-getkeys_0.3.2-1~webupd8~oneiric_all.deb && wget https://launchpad.net/~webupd8team/+archive/y-ppa-manager/+files/y-ppa-manager_0.0.8.6-1~webupd8~precise_all.deb && wget https://launchpad.net/~webupd8team/+archive/y-ppa-manager/+files/yad_0.17.1.1-1~webupd8~precise_amd64.deb && dpkg -i ./*.deb
 

Sasa andika y-ppa-manager

Utawasilishwa na dirisha hili




Bonyeza mara mbili juu, na utapata dirisha hili




Fanya Kazi zifuatazo zilizoorodheshwa kwa rangi nyeusi





Kinga ni bora kuliko tiba

Ni bora kuzuia kuliko kutafuta swali hili kwenye AskUbuntu: D

Kwa hivyo, hapa kuna mwongozo wa kukuweka salama

Weka mfumo wako upya

kila wakati kukimbia amri ifuatayo kila wakati

 sudo apt-get update&&sudo apt-get upgrade
 

au, unaweza kutumia Msimamizi wa Sasisha kila wakati na amri hii

 gksu update-manager
 

Kutumia PPA za kuaminiwa tu

Tumia PPA tu iliyokusudiwa kutumiwa kwenye Ubuntu pia, tumia tu PPA zilizo na vyanzo vya kuaminika. Infact, kifurushi kinaweza kuwa tayari katika hazina za ubuntu

Kuunga mkono wakati mambo ni mazuri na kuyarudisha baadaye

Kwa hili unahitaji Meneja wa Y-PPA. Hatua za kuiweka zimepewa hapo juu.

Run amri hii ili kufungua Meneja wa Y-PPA

 y-ppa-manager
 

Utawasilishwa na dirisha hili




Bonyeza mara mbili juu, na utapata dirisha hili




Run hii:




Utaulizwa kuokoa faili ya tar.gz na mazungumzo sawa na ile hapa chini. Ihifadhi kwenye kizigeu kingine au mahali salama




Baadaye, wakati unahitaji kuirejesha tena, fuata hatua kama hizo na ukifika kwenye mazungumzo ya hali ya juu, Bonyeza kwa hii:




Utaulizwa kurejesha kutoka kwa nakala rudufu ya awali ambayo umeokoa hapo awali na mazungumzo sawa na ile iliyo hapo chini





Bado haifanyi kazi?

Makosa ya utegemezi wa vifurushi sio generic kila wakati na inategemea kifurushi cha kusanikishwa.

Ikiwa kufuata hatua zote zilizopewa kurekebisha makosa haifanyi kazi kwako, unaweza kuuliza kila wakati kwa Uliza Ubuntu

Hapa kuna maagizo ambayo unahitaji kuchapisha matokeo ya

 sudo apt-get install packagename
 

na

 cat /etc/apt/sources.list
 

na

 cat /etc/apt/sources.list.d/*
 

(Asante kwa Basharat Sial )

Pia kuna faili zingine / amri ambazo unahitaji pato la ambayo inaweza kuwa maalum, na watumiaji labda watakuhimiza kwenye maoni ya kuchapisha faili / amri.


88


2012-05-21

Majibu haya hadi sasa yanalenga jinsi ya kusuluhisha suala kama hilo kiotomatiki, kwa matumaini makubwa kuwa inajisuluhisha, lakini sio kulenga kuelewa jinsi ya kuchunguza utegemezi. Ni muhimu kujaribu vitu kama kuhakikisha kuwa orodha yako ya vifurushi imesasishwa, kwa kuwa unahitaji kuhakikisha kuwa sasisho rahisi au kusafisha kashe halitatui suala kabla ya kuchimba zaidi. Ikiwa kila kitu nyuma ya pazia inafanya kazi kama inavyopaswa, hata hivyo, umuhimu wake kujifunza jinsi ya kuelewa utegemezi. Wakati mwingine tabaka za utegemezi zinaweza kuonekana kuwa kubwa, lakini wazo ni rahisi, na ufunguo wa kuelewa jinsi programu imewekwa / haijasanifiwa katika mfumo wa Ubuntu.

Ninapendekeza umahiri kwa kila mtu kutumia mfumo wa msingi wa .deb kama Ubuntu. Muundo wake wa mti hukuruhusu kuvinjari kwa urahisi utegemezi ikiwa ni pamoja na vifurushi vilivyopendekezwa na vilivyopendekezwa, na vile vile taswira migogoro na utegemezi wa hali ya chini. Ni zana kubwa kwa wakati apt-haitoi suluhisho rahisi, na kwa kuibua utegemezi kwa jumla. ( Synaptic inapatikana pia katika Ubuntu, lakini sioni kama angavu.)

Uwezo pia hutoa suluhisho la migogoro ambalo litatembea kwa njia ya michanganyiko yote inayowezekana ya vifurushi vilivyosanikishwa / vilivyoondolewa / vilivyoboreshwa / vingine kukidhi mahitaji yote bila migogoro au suala. Hii inaweza kufanikiwa hata wakati apt haiwezi kupata suluhisho. Kama mtumiaji wa Ubuntu, hali hazitokei kwa kawaida ambazo zinahitaji kuchunguza kwa nini kifurushi hicho kinasanikishwa, lakini haiwezi kuepukika unapo tumia mfumo zaidi.


38


2012-05-30

package1: Inategemea: package2 (> = 1.8) lakini 1.7.5-1ubuntu1 itawekwa

Maelezo ya ujumbe:

  1. Ili usakinishaji wako ukamilike, paket1 inahitaji paket2.
  2. kifurushi2 lazima kinapatikana katika toleo> = 1.8
  3. Meneja wa kifurushi alikagua hazina zote na toleo pekee la 1.7.5-1ubuntu1 ambalo linaweza kusanikishwa, ambalo halitafanya kwa sababu ni <1.8

Kurekebisha

Hakuna Jibu moja sahihi kwa swali hili na hakuna Jibu rahisi.

Kuna matukio mengi kwa nini hii inaweza kutokea na lazima mtu achunguze chaguzi zote na ajaribu kusuluhisha masharti ambayo husababisha kosa hili.

Mfano A:

Hifadhi zote ambazo unaweza kupata hazina paket2 katika toleo> = 1.8, kwa hivyo utalazimika kupata hazina ambayo inafanya. Ikiwa huwezi kupata hazina na matoleo> = 1.8 basi itakubidi ujenge na kusanikisha kifurushi2 kutoka kwa chanzo. Na kisha jaribu kusanikisha paket1.

Ikiwa unataka kujua jinsi ya kuunda kifurushi kutoka kwa chanzo, angalia maswali / majibu mengine au chapisha mpya.

Mfano B:

Kumbukumbu zinajumuisha kifurushi2 katika toleo> = 1.8 lakini msimamizi wa kifurushi bado anataka kusanikisha toleo la zamani (1.7.5).

Sababu ya hii inaweza kuwa kwamba matoleo ya baadaye ya paketi2 ambayo imejengwa na teknolojia mpya zaidi ambayo haihimiliwi na vifurushi zingine ambazo tayari umesakinisha.

Hii inaweza kuwa haiwezekani kurekebisha kabisa. Unaweza kujaribu kutumia apt au synaptic na utafute matoleo yote ya kifurushi2 ambayo yanapatikana kwenye hazina, na ujaribu kusanikisha toleo fulani> = 1.8

Ikiwa una vifurushi vingine visivyoendana na unafanya hivi, utapata orodha ya ujumbe sawa wa makosa kwa vifurushi vingine vyote ambavyo huzuia usanikishaji wa kifurushi2> = 1.8.

Katika kesi hii, una shida kubwa. Ulitaka kusanikisha paket1, ambayo inahitaji paket2 kuwa> = 1.8, lakini kifurushi2 kwa toleo> = 1.8 inahitaji paketi3 iwe katika toleo> = 6.7 na unayo toleo3 la 6.3

Jambo ni kwamba meneja wa kifurushi (APT) anajaribu kutatua utegemezi huu moja kwa moja ikiwa inawezekana. Wakati inasema kuwa haiwezekani (na hutoa ujumbe kama katika swali), basi unapaswa kuamini.

Ikiwa unaamua kutomwamini meneja wa kifurushi na ikiwa una uhakika kuwa hautakuwa na shida, basi unaweza kujaribu kulazimisha kusisitiza matoleo maalum ya vifurushi vyote, moja kwa moja, na unatarajia kuwa sawa.

Jihadharini, kufanya hivi kwa vifurushi vya mfumo vinaweza kuunda shida kubwa. Unaweza kujifungia nje ya mfumo, kuzuia huduma muhimu nk.

Mfano C:

Haijalishi sababu za shida, unaweza kusanidi usanidi wa mwongozo na kujenga kifurushi kinachohitajika na utegemezi wake wote katika toleo linalohitajika kutoka kwa chanzo. Na chaguo hili unaweza kuweka kile ulichokiunda kwenye saraka tofauti na nje ya njia ya mfumo ili isije ikaunda mzozo na mfumo. Hii labda suluhisho safi zaidi, na wakati mwingine inaweza kuwa haraka kufanya.

Mfano D:

Meneja wa kifurushi anapata habari ya zamani juu ya vifurushi na kwa hivyo hawawezi kupata suluhisho. Angalia majibu mengine.

Mfano E:

Meneja wa kifurushi ana mdudu kwenye nambari ya azimio la utegemezi.

Lazima uchunguze kuwa hii ndivyo ilivyo, na kisha utoe ombi la mdudu.

...

Mfano wa Z:

Kunaweza kuwa na matukio mengine.

Kwa mfano watunza vifurushi wanaweza kuwa na makosa na hawakuangalia kwamba kifurushi1 kingefanya kazi hata na toleo la kifurushi2 <1.8 na kwa uainishaji waliweka utegemezi mbaya.


24


2012-05-30

Njia hizi zinahitaji kufuatwa wakati wowote unapo makosa juu ya hali ya unifu

Baada ya kufuata maagizo jaribu kusanikisha programu. Atleast moja ya njia hizi inapaswa kukufanyia kazi

1 . Kabla ya kujaribu amri yoyote mpya au kuongeza ppa mpya jaribu hii

Kusafisha kache ya apt:

 sudo apt-get clean
 

Kusafisha utegemezi wowote usiotumiwa:

 sudo apt-get autoremove
 

Kusasisha kache-apache

 sudo apt-get update
 

Hii itaondoa kashe yote na kupakua kashe safi. Hii inapaswa kufanywa ili kupata vifurushi vipya vya kache na visasisho vipya zaidi.

2 . Jaribu sudo apt-get install -f .

Labda itatoa maoni kadhaa juu ya kuondoa na kusanikisha vifurushi, fanya kile kinachoonekana kuwa sawa.

3 . Badilisha Download Server kutoka kwa Software Sources sababu wakati mwingine faili kwenye seva zinaharibika.


ingiza maelezo ya picha hapa



ingiza maelezo ya picha hapa



ingiza maelezo ya picha hapa

4 . Hii pia hufanyika ikiwa kabla ya kuongezea ppa ya nje kwa utegemezi uliovunjika.Jaribu kuondoa hiyo ppa

  • kuandika sudo add-apt-repository --remove ppa:someppa/ppa na kisha kuondoa kwa mikono faili za maktaba / maktaba zilizowekwa

au

  • kusafisha ppa (hii huondoa faili zilizosanikishwa pia)

     sudo apt-get install ppa-purge   #a one time install 
    sudo ppa-purge ppa:someppa/ppa  
     

5 . Ikiwa hakuna 4 sio kesi yako basi bora kujaribu kuondoa kifurushi ambacho kimeonyeshwa kama utegemezi uliovunjika.Ila jaribu tena kusanidi .Hii inaripotiwa kuwa na kazi ya watu wachache.

6 . Ongeza kila wakati toleo thabiti la kumbukumbu / PPA.


ingiza maelezo ya picha hapa

7 Pia hakikisha unayo kumbukumbu zote rasmi kuwezeshwa (In Software Sources )


ingiza maelezo ya picha hapa

Tafadhali usiwezeshe Proposed Updates jinsi zilivyokusudiwa kwa majaribio / watengenezaji.


ingiza maelezo ya picha hapa


Kama ilivyoambiwa na doug:

Kawaida hatua ya 1 bora ya kusuluhisha hii ni kubaini chanzo cha <pkg1> & <pkg2> .

Kwa kuongezea ni kwamba katika hali nyingi, ikiwa sio nyingi, "<whatever> itawekwa" kwa kweli inamaanisha "<whatever> imewekwa" na inapaswa kujaribu kutolewa ikiwa hakuna kitu kingine kinachofanya kazi (kama ilivyo katika nukta ya 5).


Nitaendelea kuongeza vitu vingi vitaweza kupatikana unmet dependencies .


17


2012-05-21

Kwa hali nyingi, kusanikisha kifurushi kupitia aptitude kutatatua utegemezi aptitude wa unmet.By default default haikuwekwa kwenye pc yako. Kwanza usakinishe kwa kuanza,

 sudo apt-get update
sudo apt-get install aptitude
 

basi,

 sudo aptitude install packagename
 

Kwa mfano,

    
avinash @ avinash-Lenovo-IdeaPad-Z500: ~ $ sudo apt-kupata kufunga ubuntu-sdk
Kusoma orodha za kifurushi ... Imemaliza
Mti wa utegemezi wa jengo       
Kusoma habari za serikali ... Imemalizika
Vifurushi vingine havikuweza kusakinishwa. Hii inaweza kumaanisha kuwa unayo
aliuliza hali isiyowezekana au ikiwa unatumia kutokuwa na utulivu
usambazaji ambao vifurushi kadhaa vinavyohitajika bado hazijatengenezwa
au umehamishwa kutoka kwa Kuingia.
Habari ifuatayo inaweza kusaidia kutatua hali hiyo:

Vifurushi vifuatavyo vina utegemezi usiofaa:
 ubuntu-sdk: Inategemea: qtcreator-plugin-ubuntu lakini haitasanikishwa
E: Haiwezi kusahihisha shida, umeshikilia vifurushi vilivyovunjika.

Kufunga mfuko kupitia aptitude

avinash @ avinash-Lenovo-IdeaPad-Z500: ~ $ sudo uwezo wa kufunga ubuntu-sdk
Vifurushi vipya vifuatavyo vitawekwa:
  apparmor-easyprof {a} apparmor-easyprof-ubuntu {a} katika {a} ya kujenga muhimu 
  bonyeza {a} bonyeza-programu {a} bonyeza-dev {a} bonyeza-doc {a} cordova-ubuntu-2.8 
  cordova-ubuntu-2.8-mifano {a} dhulumu {a} maandishi ya watu {a} dh-apparmor {a} 
  dh-fanya {a} distro-info-data {a} dpkg-dev {a} kidato {a} g ++ {a} g ++ - 4.8 {a} 
  geoclue-gypsy {a} libalgorithm-diff-perl {a} libalgorithm-diff-xs-perl {a} 
  libalgorithm-merge-perl {a} libboost-fileystem1.53.0 {a} 
  libboost-program-ongakhetha1.53.0 {a} libboost-regex1.53.0 {a} 
  libbotan-1.10-0 {a} libdee-qt5-3 {a} libdistro-info-perl {a} 
  ilexporter-lite-perl {a} libglib2.0-dev {a} 
  libgstreamer-plugins-base1.0-dev {a} libgstreamer1.0-dev {a} libgypsy0 {a} 
  libhud2 {a} libio-stringy-perl {a} libjs-jquery {a} libjs-sphinxdoc {a} 
  libjs-underscore {a} liblockdev1 {a} libmail-sendmail-perl {a} 
  libparse-debcontrol-perl {a} libpcre3-dev {a} libpcrecpp0 {a} 
  libpoppler-qt5-1 {a} libqdjango-db0 {a} libqgsttools-p1 {a} 
  libqt5clucene5 {a} libqt5contacts5 {a} libqt5declarative5 {a} 
  libqt5designer5 {a} libqt5designercomponent5 {a} libqt5feedback5 {a} 
  libqt5help5 {a} libqt5location5-plugins {a} libqt5multimedia5 {a} 
  libqt5multimedia5-plugins libqt5multimediaquick-p5 {a} 
  libqt5multimediawidgets5 {a} libqt5organizer5 {a} 
  libqt5qml-graphicaleffects {a} libqt5script5 libqt5scripttools5 {a} 
  libqt5svg5 {a} libqt5svg5-dev libqt5systeminfo5 {a} libqt5v8-5-dev 
  libqt5versit5 {a} libqt5versitorganizer5 {a} libqt5webkit5-dev 
  libqt5webkit5-qmlwebkitplugin {a} libqt5xmlpatterns5 {a} 
  libqt5xmlpatterns5-dev libstdc ++ - 4.8-dev {a} libsys-hostname-muda mrefu-perl {a} 
  libthumbnailer0 {a} libu1db-qt5-3 {a} uhuru-hatua-qt1 {a} 
  libupstart-programu-uzinduzi1 {a} libusermetricsinput1 {a} libxml2-dev {a} 
  libxslt1-dev {a} po-debconf {a} python3-programu-bonyeza {a} python3-bonyeza {a} 
  python3-magic {a} qmlscene qt3d5-dev qtbase5-doc {a} qtcreator {a} 
  qtcreator-doc {a} qtcreator-plugin-ubuntu {a} 
  qtcreator-plugin-ubuntu-kawaida {a} qarkeclarative5-account-plugin 
  qtdeclarative5-cordova-2.8-plugin {a} qtdeclarative5-dev-zana 
  qtdeclarative5-doc-html {a} qarkeclarative5-folda ya orodha-ya-moduli 
  qtdeclarative5-Mara0.2 qtdeclarative5-localstorage-plugin 
  qtdeclarative5-chembe-programu-qarkeclarative5-poppler1.0 
  qtdeclarative5-qtaudioengine-plugin qtdeclarative5-qtfeedback-plugin {a} 
  qtdeclarative5-qtlocation-plugin qtdeclarative5-qtmultimedia-plugin {a} 
  qarkeclarative5-qtorganizer-plugin qtdeclarative5-qtquick2-plugin {a} 
  qtdeclarative5-qtsensors-plugin qtdeclarative5-u1db1.0 
  qtdeclarative5-ubuntu-ui-extras-browser-plugins {a} 
  qtdeclarative5-ubuntu-ui-ziada-kivinjari--mlipaji-mali {a} 
  qtdeclarative5-ubuntu-ui-zanakit-plugin {a} 
  qtdeclarative5-umoja-action-plugin {a} qarkeclarative5-usermetrics0.1 
  qtdeclarative5-windows-plugin {a} qtdeclarative5-xmllistmodel-plugin 
  qtgraphicaleffects5-doc {a} qtlocation5-dev {a} qtmultimedia5-dev 
  qtmultimedia5-doc {a} qtmultimedia5-doc-html {a} qtscript5-dev 
  qtscript5-doc {a} qtscript5-doc-html {a} qtsensors5-dev {a} qtsvg5-doc {a} 
  qtsvg5-doc-html {a} qttools5-dev qttools5-dev-zana qttools5-doc {a} 
  qtwebkit5-doc-html {a} krootot {a} kisiri-kawaida {a} sqlite3 {a} 
  ubuntu-html5-chombo ubuntu-html5-sdk {ab} ubuntu-html5-theme {a} 
  ubuntu-html5-theme-mifano ubuntu-sdk ubuntu-sdk-libs 
  ubuntu-sdk-libs-dev {a} ubuntu-ui-zanakit-doc {a} 
  ubuntu-ui-zanakit-mifano {a} ubuntu-ui-toolkit-theme {a} 
  umoja-wa-vitendo {a} uzinduzi wa programu-msingi {a} zana za uzinduzi wa programu 
  usermetricsservice {a} wdiff {a} zlib1g-dev {a} 
Vifurushi vifuatavyo vitasasishwa:
  cpp-4.8 gcc-4.8 gcc-4.8-msingi hud libasan0 libatomic1 libgcc-4.8-dev 
  libgcc1 libglib2.0-0 libglib2.0-bin libgomp1 libitm1 libquadmath0 
  libstdc ++ 6 libtsan0 
Vifurushi 15 vilivyoboreshwa, 151 vimewekwa mpya, 0 ili kuondoa na 293 haukusasishwa.
Unahitaji kupata 108 MB / 126 MB ya kumbukumbu. Baada ya kufunguliwa 273 MB itatumika.
Vifurushi vifuatavyo vina utegemezi usiofaa:
 ubuntu-html5-sdk: Inategemea: qtdeclarative5-ubuntu-webapps-api ambayo ni kifurushi cha kawaida.
                    Inategemea: ubuntu-html5-ui-toolkit lakini haitasanikishwa.
Vitendo vifuatavyo vitasuluhisha utegemezi huu:

     Weka vifurushi vifuatavyo kwenye toleo lao la sasa:              
1) qtcreator-plugin-ubuntu [Haijawekwa]                          
2) ubuntu-html5-sdk [Haijawekwa]                                 
3) ubuntu-sdk [Iliyotengwa]                                       

     Acha utegemezi ufuatao haujasuluhishwa:                       
4) libhud-mteja2 inapendekeza hud (= 13.10.1 + 13.10.20131014-0ubuntu1)
5) qtcreator-plugin-ubuntu-kawaida inapendekeza qtcreator-plugin-ubuntu


Kubali suluhisho hili? [Y / n / q /?] Y
Vifurushi vipya vifuatavyo vitawekwa:
  apparmor-easyprof {a} apparmor-easyprof-ubuntu {a} ya kujenga-muhimu {a} 
  bonyeza {a} bonyeza-programu {a} kamba ya ku-utu-wa-2.8 {a} dh-apparmor {a} 
  dh-make {a} dpkg-dev {a} g ++ {a} g ++ - 4.8 {a} geoclue-gypsy {a} 
  libalgorithm-diff-perl {a} libalgorithm-diff-xs-perl {a} 
  libalgorithm-unganisha-perl {a} libdee-qt5-3 {a} libglib2.0-dev {a} 
  libgstreamer-plugins-base1.0-dev {a} libgstreamer1.0-dev {a} libgypsy0 {a} 
  libhud2 {a} libjs-jquery {a} libmail-sendmail-perl {a} libpcre3-dev {a} 
  libpcrecpp0 {a} libpoppler-qt5-1 {a} libqdjango-db0 {a} libqgsttools-p1 {a} 
  libqt5clucene5 {a} libqt5contacts5 {a} libqt5designer5 {a} 
  libqt5designercomponent5 {a} libqt5feedback5 {a} libqt5help5 {a} 
  libqt5location5-plugins {a} libqt5multimedia5 {a} libqt5multimedia5-plugins 
  libqt5multimediaquick-p5 {a} libqt5multimediawidgets5 {a} 
  libqt5organizer5 {a} libqt5qml-graphicaleffects {a} libqt5script5 
  libqt5scripttools5 {a} libqt5svg5 {a} libqt5svg5-dev libqt5systeminfo5 {a} 
  libqt5v8-5-dev libqt5versit5 {a} libqt5versitorganizer5 {a} 
  libqt5webkit5-dev libqt5webkit5-qmlwebkitplugin {a} libqt5xmlpatterns5 {a} 
  libqt5xmlpatterns5-dev libstdc ++ - 4.8-dev {a} libsys-hostname-muda mrefu-perl {a} 
  libthumbnailer0 {a} libu1db-qt5-3 {a} uhuru-hatua-qt1 {a} 
  libupstart-programu-uzinduzi1 {a} libusermetricsinput1 {a} libxml2-dev {a} 
  libxslt1-dev {a} po-debconf {a} python3-programu-bonyeza {a} python3-bonyeza {a} 
  qmlscene qt3d5-dev qtdeclarative5-akaunti-plugin 
  qtdeclarative5-cordova-2.8-plugin {a} qtdeclarative5-dev-zana 
  qtdeclarative5-foldlistmodel-plugin qtdeclarative5-Mara0.2 
  qtdeclarative5-localstorage-plugin qtdeclarative5-chembe-programu-jalizi 
  qtdeclarative5-poppler1.0 qtdeclarative5-qtaudioengine-plugin 
  qarkeclarative5-qtfeedback-plugin {a} qarkeclarative5-qtlocation-plugin 
  qtdeclarative5-qtmultimedia-plugin {a} qtdeclarative5-qtorganizer-plugin 
  qtdeclarative5-qtquick2-plugin {a} qarkeclarative5-qtsensors-plugin 
  qtdeclarative5-u1db1.0 qtdeclarative5-ubuntu-ui-extras-browser-plugins {a} 
  qtdeclarative5-ubuntu-ui-ziada-kivinjari--mlipaji-mali {a} 
  qtdeclarative5-ubuntu-ui-zanakit-plugin {a} 
  qtdeclarative5-umoja-action-plugin {a} qarkeclarative5-usermetrics0.1 
  qtdeclarative5-windows-plugin {a} qtdeclarative5-xmllistmodel-plugin 
  qtlocation5-dev {a} qtmultimedia5-dev qtscript5-dev qtsensors5-dev {a} 
  qttools5-dev qttools5-dev-zana sqlite3 {a} ubuntu-html5 
  ubuntu-html5-theme {a} ubuntu-html5-theme-mifano ubuntu-sdk-libs 
  ubuntu-ui-toolkit-theme {a} uzinduzi wa programu-msingi {a} 
  vifaa vya kuzindua programu ya kuanzisha programu {a} usermetricsservice {a} wdiff {a} zlib1g-dev {a} 
Vifurushi vifuatavyo vitasasishwa:
  cpp-4.8 gcc-4.8 gcc-4.8-msingi hud libasan0 libatomic1 libgcc-4.8-dev 
  libgcc1 libglib2.0-0 libglib2.0-bin libgomp1 libitm1 libquadmath0 
  libstdc ++ 6 libtsan0 
Vifurushi 15 zilizosasishwa, 108 zilizosanikishwa mpya, 0 ili kuondoa na 293 haikujasasishwa.
Unahitaji kupata 27.1 MB / 45.8 MB ya kumbukumbu. Baada ya kufunguliwa 104 MB itatumika.
Je! Unataka kuendelea? [Y / n /?]

16


2013-12-29

Jibu langu ni sawa na rick hapo juu.

Kwa kutumia apt-get clean , apt-get autoclean , apt-get autoremove , apt-get upgrade , apt-get update , apt-get -u dist-upgrade , nk wote hawana kazi kwa ajili yangu.

Mwishowe nilitatua suala hili kwa kushuka kwenye mti wa utegemezi kupitia apt-get install , ulioonyeshwa na mfano hapa chini. Katika kesi yangu, nilitaka kusanikisha libmagickwand-dev :

 apt-get install libmagickwand-dev
 

Nilipata kosa hili:

 The following packages have unmet dependencies:
 libmagickwand-dev : Depends: libmagickcore4-extra (= 8:6.6.9.7-5ubuntu3.2) but it is not going to be installed
                     Depends: libmagickcore-dev (= 8:6.6.9.7-5ubuntu3.2) but it is not going to be installed
 

Kwa hivyo, nilikimbilia apt-get install moja ya utegemezi duni:

 apt-get install libmagickcore-dev

The following packages have unmet dependencies:
 libmagickcore-dev : Depends: libmagickcore4-extra (= 8:6.6.9.7-5ubuntu3.2) but it is not going to be installed
                     Depends: libgraphviz-dev but it is not going to be installed
 

Nikashuka chini chini ya mti:

 apt-get install libgraphviz-dev
 

na kosa lingine:

 The following packages have unmet dependencies:
 libgraphviz-dev : Depends: libgvc5 (= 2.26.3-10ubuntu1) but it is not going to be installed
 

Mara moja kwa undani chini ya mti:

 apt-get install libgvc5
 

Kabla ya sababu ya kushangaza, hii ilifanikiwa, na niliweza kusanikisha kifurushi cha asili nilichotaka na apt-get install libmagickwand-dev :

 Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libcdt4 libgd2-xpm libgraph4 libpathplan4
Suggested packages:
  libgd-tools
The following NEW packages will be installed:
  libcdt4 libgd2-xpm libgraph4 libgvc5 libpathplan4
0 upgraded, 5 newly installed, 0 to remove and 2 not upgraded.
Need to get 808 kB of archives.
After this operation, 2,320 kB of additional disk space will be used.
Do you want to continue [Y/n]?
 

11


2012-12-20

Majibu mazuri! Lakini leo kesi yangu inaonekana tofauti na yako. Hapa kuna ushauri wangu.

Shida:

Nilishindwa kusanikisha apache2 kwenye ubuntu 10.10.

 [email protected]:~$ sudo apt-get install apache2

Reading package lists... Done

Building dependency tree      

Reading state information... Done

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

The following information may help to resolve the situation:

The following packages have unmet dependencies:

 apache2 : Depends: apache2-mpm-worker (= 2.2.16-1ubuntu3) but it is not going to be installed or

                    apache2-mpm-prefork (= 2.2.16-1ubuntu3) but it is not going to be installed or

                    apache2-mpm-event (= 2.2.16-1ubuntu3) but it is not going to be installed or

                    apache2-mpm-itk (= 2.2.16-1ubuntu3) but it is not going to be installed

           Depends: apache2.2-common (= 2.2.16-1ubuntu3) but it is not going to be installed

E: Broken packages
 

Suluhisho:

Njia yangu ni kuongeza kifurushi kinachotegemewa katika orodha ya kusanidi.

Ikiwa 'sudo apt-get kufunga apache2' imeshindwa, jaribu ' sudo apt-get kufunga apache2 apache2.2-kawaida '.

Unaona? apache2.2-kawaida hutoka kwa logi ya makosa ya hatua ya nyuma.

Mwishowe niligundua kuna mlolongo wa utegemezi kama huu:

  apache2.2-common <-- apache2.2-bin <-- libaprutil1-ldap <-- libaprutil1
 

Kwa vifurushi 3 vya kwanza, gombo la apt aliniambia 'haitasanikishwa',

lakini kwa kifurushi cha mwisho, inaonyesha 'libaprutil1-ldap: Inategemea: libaprutil1 (= 1.3.9 + dfsg-3build1) lakini 1.3.9 + dfsg-3ubuntu0.10.10.1 imewekwa'

Nina toleo tofauti lililopo kwenye lib yangu, kwa hivyo:

 sudo apt-get remove libaprutil1

sudo apt-get install apache2
 

Sasa ni sawa.


8


2012-11-24

Kosa la utegemezi usiojulikana

Kwenye vifurushi vya Ubuntu ndio njia ya msingi ambayo programu imejengwa, kupelekwa, na kusanikishwa. Kwa ufupi sana, vifurushi ni njia mbadala ya kupakua, kujenga, na kusanikisha programu kutoka mwanzo. Wanatoa faida nyingi katika suala la usanidi, kuondoa, kuangalia, na kushughulikia mwingiliano kati ya vipande vya programu juu ya mfano wa "kujenga kutoka kwa chanzo". Ubuntu hutumia mfumo wa ufungaji wa kati, Ie Kila kifurushi hutegemea vifurushi vingine .Lingine tunapoweka kifurushi hutegemea, Kosa la utegemezi wa unmet hufanyika wakati utegemezi wa kifurushi haupatikani kwa usanikishaji

Sababu zinazowezekana

 1.Computer is not connected to the Internet
2.The repository containing the depandancy package is not enabled
3.Package catalog is not updated
4.The version of the depandancy in the current repository is old
5.Software index is broken
6.The depandancy is not available for ubuntu
 

Wacha Jaribu kuyatatua

  1. Unganisha kwenye wavuti: D
  2. Hakikisha kuwa kumbukumbu zote chaguo-msingi zimewezeshwa

    -> Unaweza kuwaongeza kwa urahisi katika Software Center -> Hariri-> Vyanzo vya Programu-> Vyanzo vingine-> Ongeza "

    -> Anzisha Software Center .

    ->. Kwenye jopo nenda Edit na uchague Software Sources .


    hariri-programu-vyanzo

    -> Hakikisha hazina zote zimehakikiwa
    ingiza maelezo ya picha hapa

  3. Sasisha orodha ya programu

    bonyeza kwenye ikoni ya juu ya kulia na uchague Ingizo la sasisho linalopatikana katika menyu

    ingiza maelezo ya picha hapa

na bonyeza kitufe cha kuangalia
ingiza maelezo ya picha hapa

4.type ctrl+ alt+ tkufungua terminal na aina sudo apt-get install -f

5.Fungua ppa iliyoongezwa hivi karibuni ukitumia ppa-purge ppa-purge
Weka ppa-purge

Programu hii inalemaza PPA kutoka Vyanzo vya Programu yako na inarudisha mfumo wako kwenye vifurushi vya Ubuntu rasmi. Unaweza kutumia hii kurudisha mfumo wako kwa kawaida baada ya kujaribu toleo mpya kutoka PPA.

Syntax

 sudo ppa-purge ppa:<repository-name>/<subdirectory>
 

Mfano

 sudo ppa-purge ppa:ubuntu-mozilla-daily/ppa
 
  1. fungua kituo cha programu, na jaribu kusanikisha programu yoyote, Ikiwa sanduku la mazungumzo zifuatazo limetokea, bonyeza kitufe cha ukarabati, na subiri


ingiza maelezo ya picha hapa

Mwingine aina ctrl+ alt+ tkufungua terminal na aina sudo apt-get install -f na kufuata maelekezo kwenye skrini

Ikiwa bado kosa limetokea, Jisikie huru kuuliza kwa maswali


7


2012-05-23

... usisahau kuhusu `build-dep`

Mbali na majibu hayo hapo juu - lazima nikubali kushangaa kuwa hakuna mtu aliyetaja njia hii ambayo ni kila kitu nilitumia kama "bullet fedha" wakati wowote nilipokutana na machafuko au vifurushi visivyosuluhishwa (au hata ikiwa mfumo unakuwa mkaidi .... ha!).

JAMII: Kutumia kunatiwa sudo dpkg -r [package] moyo kwani ina kazi nzuri ya kuondoa. Kwa kuwa apt-get inafanya kazi pamoja na dpkg , ambayo inamaanisha apt-get kwamba itatii dpkg kazi.

   sudo dpkg -r [package]
  sudo apt-get build-dep [package]  
  ## pre-install all deps for the package
 

Unaita apt kupata kusafisha kifurushi kilichoshindwa ambacho ulikuwa unajaribu kusanikisha kwenye mfumo, halafu unaita amri ya kujenga, ambayo apt-kupata itachukua na kusanidi utegemezi mmoja mmoja wa kifurushi hiki, ili kwa njia hiyo watakidhi kifurushi kabla. Alafu mwishowe, piga simu ya kwanzaaa:

 sudo apt-get install [package]
 

.... 'Ugh! Wacha twende mkono wako hadi utapiga kelele "mjomba!"

Hii mara chache ilitokea wakati wa miaka yangu mingi ya matumizi ya linux, lakini nilijikuta nikitumia njia hii mara chache na kufanikiwa. Hii ni mfano wa mapambano ya hivi karibuni ambayo nilikuwa nayo mapema mwezi uliopita na vifurushi mysql-client/mysql-server . Baada ya majaribio kadhaa aliyeshindwa kuweka upya nywila yangu ya mizizi na seva ya mysql (hata kupitia --skip-ruzuku-meza za kompyuta lakini bado imeshindwa), hatimaye nimefanikiwa 'kupotosha mkono wa Linux hadi ikapiga kelele "mjomba!"':

 sudo dpkg -r mysql-server mysql-client
sudo apt-get autoclean  
## this dumps any copy of existing package to prevent apt-get from "re-using" it.
sudo apt-get build-dep mysql-client   
 ## one package at a time, starting with client first
sudo apt-get install mysql-client
sudo apt-get build-dep mysql-server
sudo apt-get install mysql-server
 

apt-get autoclean ni ufunguo katika suluhisho hili


5


2015-03-21

Wakati wa ufungaji wa vifurushi vya i386 katika mifumo ya Multiarch Ubuntu kidogo

Kama unajaribu kufunga mfuko ambayo inategemea paket wengi i386, juu na makosa alisema utegemezi pia itakuwa unasababishwa kama utashindwa kuongeza i386 usanifu kwa kuendesha sudo dpkg --add-architecure i386 amri.

Mfano:

 [email protected]:~$ sudo apt-get install skype
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 skype : Depends: skype-bin but it is not installable
E: Unable to correct problems, you have held broken packages.
[email protected]:~$ sudo dpkg --add-architecture i386
[email protected]:~$ sudo apt-get install skype
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  gcc-4.8-base:i386 gcc-4.9-base:i386 libasound2:i386 libasound2-plugins:i386
  libasyncns0:i386 libaudio2:i386 libavahi-client3:i386
  libavahi-common-data:i386 libavahi-common3:i386 libc6:i386
  libcgmanager0:i386 libcomerr2:i386 libcups2:i386 libdbus-1-3:i386
  libdbusmenu-qt2:i386 libdrm-intel1:i386 libdrm-nouveau2:i386
  libdrm-radeon1:i386 libdrm2:i386 libelf1:i386 libexpat1:i386 libffi6:i386
  libflac8:i386 libfontconfig1:i386 libfreetype6:i386 libgcc1:i386
  libgcrypt11:i386 libgl1-mesa-dri:i386 libgl1-mesa-glx:i386
  libglapi-mesa:i386 libglib2.0-0:i386 libgnutls26:i386 libgpg-error0:i386
  libgssapi-krb5-2:i386 libgstreamer-plugins-base1.0-0:i386
  libgstreamer1.0-0:i386 libice6:i386 libjack-jackd2-0:i386 libjbig0:i386
  libjpeg-turbo8:i386 libjpeg8:i386 libjson-c2:i386 libk5crypto3:i386
  libkeyutils1:i386 libkrb5-3:i386 libkrb5support0:i386 libllvm3.4:i386
  liblzma5:i386 libmysqlclient18:i386 libnih-dbus1:i386 libnih1:i386
  libogg0:i386 liborc-0.4-0:i386 libp11-kit0:i386 libpciaccess0:i386
  libpcre3:i386 libpng12-0:i386 libpulse0:i386 libqt4-dbus:i386
  libqt4-declarative:i386 libqt4-network:i386 libqt4-opengl:i386
  libqt4-script:i386 libqt4-sql:i386 libqt4-sql-mysql:i386 libqt4-xml:i386
  libqt4-xmlpatterns:i386 libqtcore4:i386 libqtdbus4:i386 libqtgui4:i386
  libqtwebkit4:i386 libsamplerate0:i386 libselinux1:i386 libsm6:i386
  libsndfile1:i386 libspeexdsp1:i386 libsqlite3-0:i386 libssl1.0.0:i386
  libstdc++6:i386 libtasn1-6:i386 libtiff5:i386 libtinfo5:i386
  libtxc-dxtn-s2tc0:i386 libudev1:i386 libuuid1:i386 libvorbis0a:i386
  libvorbisenc2:i386 libwrap0:i386 libx11-6:i386 libx11-xcb1:i386 libxau6:i386
  libxcb-dri2-0:i386 libxcb-dri3-0:i386 libxcb-glx0:i386 libxcb-present0:i386
  libxcb-sync1:i386 libxcb1:i386 libxdamage1:i386 libxdmcp6:i386 libxext6:i386
  libxfixes3:i386 libxi6:i386 libxml2:i386 libxrender1:i386 libxshmfence1:i386
  libxslt1.1:i386 libxss1:i386 libxt6:i386 libxv1:i386 libxxf86vm1:i386
  mysql-common skype-bin:i386 sni-qt:i386 zlib1g:i386
Suggested packages:
  nas:i386 glibc-doc:i386 locales:i386 rng-tools:i386 libglide3:i386
  gnutls-bin:i386 krb5-doc:i386 krb5-user:i386 libvisual-0.4-plugins:i386
  gstreamer-codec-install:i386 gnome-codec-install:i386
  gstreamer1.0-tools:i386 gstreamer1.0-plugins-base:i386 jackd2:i386
  pulseaudio:i386 libqt4-declarative-folderlistmodel:i386
  libqt4-declarative-gestures:i386 libqt4-declarative-particles:i386
  libqt4-declarative-shaders:i386 qt4-qmlviewer:i386 libqt4-dev:i386
  libicu48:i386 libthai0:i386 qt4-qtconfig:i386
Recommended packages:
  xml-core:i386
The following NEW packages will be installed:
  gcc-4.8-base:i386 gcc-4.9-base:i386 libasound2:i386 libasound2-plugins:i386
  libasyncns0:i386 libaudio2:i386 libavahi-client3:i386
  libavahi-common-data:i386 libavahi-common3:i386 libc6:i386
  libcgmanager0:i386 libcomerr2:i386 libcups2:i386 libdbus-1-3:i386
  libdbusmenu-qt2:i386 libdrm-intel1:i386 libdrm-nouveau2:i386
  libdrm-radeon1:i386 libdrm2:i386 libelf1:i386 libexpat1:i386 libffi6:i386
  libflac8:i386 libfontconfig1:i386 libfreetype6:i386 libgcc1:i386
  libgcrypt11:i386 libgl1-mesa-dri:i386 libgl1-mesa-glx:i386
  libglapi-mesa:i386 libglib2.0-0:i386 libgnutls26:i386 libgpg-error0:i386
  libgssapi-krb5-2:i386 libgstreamer-plugins-base1.0-0:i386
  libgstreamer1.0-0:i386 libice6:i386 libjack-jackd2-0:i386 libjbig0:i386
  libjpeg-turbo8:i386 libjpeg8:i386 libjson-c2:i386 libk5crypto3:i386
  libkeyutils1:i386 libkrb5-3:i386 libkrb5support0:i386 libllvm3.4:i386
  liblzma5:i386 libmysqlclient18:i386 libnih-dbus1:i386 libnih1:i386
  libogg0:i386 liborc-0.4-0:i386 libp11-kit0:i386 libpciaccess0:i386
  libpcre3:i386 libpng12-0:i386 libpulse0:i386 libqt4-dbus:i386
  libqt4-declarative:i386 libqt4-network:i386 libqt4-opengl:i386
  libqt4-script:i386 libqt4-sql:i386 libqt4-sql-mysql:i386 libqt4-xml:i386
  libqt4-xmlpatterns:i386 libqtcore4:i386 libqtdbus4:i386 libqtgui4:i386
  libqtwebkit4:i386 libsamplerate0:i386 libselinux1:i386 libsm6:i386
  libsndfile1:i386 libspeexdsp1:i386 libsqlite3-0:i386 libssl1.0.0:i386
  libstdc++6:i386 libtasn1-6:i386 libtiff5:i386 libtinfo5:i386
  libtxc-dxtn-s2tc0:i386 libudev1:i386 libuuid1:i386 libvorbis0a:i386
  libvorbisenc2:i386 libwrap0:i386 libx11-6:i386 libx11-xcb1:i386 libxau6:i386
  libxcb-dri2-0:i386 libxcb-dri3-0:i386 libxcb-glx0:i386 libxcb-present0:i386
  libxcb-sync1:i386 libxcb1:i386 libxdamage1:i386 libxdmcp6:i386 libxext6:i386
  libxfixes3:i386 libxi6:i386 libxml2:i386 libxrender1:i386 libxshmfence1:i386
  libxslt1.1:i386 libxss1:i386 libxt6:i386 libxv1:i386 libxxf86vm1:i386
  mysql-common skype skype-bin:i386 sni-qt:i386 zlib1g:i386
0 upgraded, 115 newly installed, 0 to remove and 7 not upgraded.
Need to get 63.7 MB of archives.
After this operation, 225 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
 

3


2014-04-21

Baada ya kujaribu karibu na kila njia iliyotajwa kwenye uzi huu (na wengine) nilikuwa karibu kuachana. Ningeweza kusasisha Lenny yangu ya Debian hadi Squeeze, na sikuweza kwa maisha yangu kujua ni kwanini PHP5, Apache, MySQL nk hakutaka kusanikisha. Mwishowe nilijaribu kutumia

 sudo apt-get purge apache2
sudo apt-get purge php5
sudo apt-get purge mysql-server
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get install apache2 php5 mysql-server
 

..na ilifanya kazi bila lawama! ( Jihadharini, inaweza kuharibu faili zako za usanidi, kwa hivyo uwarudishe! )


1


2013-01-15

Kilichonifanyia kazi ni kusanidi tena utegemezi. Ni kesi ambapo toleo lililosanikishwa ni la hivi karibuni zaidi kuliko la hivi karibuni (ni nini inaonyesha synaptic). Kwa kweli ni sawa na kuruhusu synaptic kupungua kifurushi cha utegemezi.

Jambo lingine ambalo lilifanya kazi ni kutumia "uelekevu":

 [email protected]:~# aptitude install libgfortran3
The following NEW packages will be installed:
  libgfortran3{b} 
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 250 kB of archives. After unpacking 1 230 kB will be used.
The following packages have unmet dependencies:
 libgfortran3 : Depends: gcc-4.8-base (= 4.8.2-19ubuntu1) but 4.8.4-2ubuntu1~14.04 is installed.
Internal error: found 2 (choice -> promotion) mappings for a single choice.
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     libgfortran3 [Not Installed]                       



Accept this solution? [Y/n/q/?] n
Internal error: found 2 (choice -> promotion) mappings for a single choice.
Internal error: found 2 (choice -> promotion) mappings for a single choice.
The following actions will resolve these dependencies:

      Downgrade the following packages:                                        
1)      cpp-4.8 [4.8.4-2ubuntu1~14.04 (now) -> 4.8.2-19ubuntu1 (trusty)]       
2)      gcc-4.8 [4.8.4-2ubuntu1~14.04 (now) -> 4.8.2-19ubuntu1 (trusty)]       
3)      gcc-4.8-base [4.8.4-2ubuntu1~14.04 (now) -> 4.8.2-19ubuntu1 (trusty)]  
4)      libasan0 [4.8.4-2ubuntu1~14.04 (now) -> 4.8.2-19ubuntu1 (trusty)]      
5)      libatomic1 [4.8.4-2ubuntu1~14.04 (now) -> 4.8.2-19ubuntu1 (trusty)]    
6)      libgcc-4.8-dev [4.8.4-2ubuntu1~14.04 (now) -> 4.8.2-19ubuntu1 (trusty)]
7)      libgomp1 [4.8.4-2ubuntu1~14.04 (now) -> 4.8.2-19ubuntu1 (trusty)]      
8)      libitm1 [4.8.4-2ubuntu1~14.04 (now) -> 4.8.2-19ubuntu1 (trusty)]       
9)      libquadmath0 [4.8.4-2ubuntu1~14.04 (now) -> 4.8.2-19ubuntu1 (trusty)]  
10)     libstdc++6 [4.8.4-2ubuntu1~14.04 (now) -> 4.8.2-19ubuntu1 (trusty)]    
11)     libtsan0 [4.8.4-2ubuntu1~14.04 (now) -> 4.8.2-19ubuntu1 (trusty)]      

Accept this solution? [Y/n/q/?] y
 

1


2015-04-19

Ikiwa unapata hitilafu kama hii:

ingiza maelezo ya picha hapa

Hii inakuambia kuwa vifurushi tayari vimewekwa, lakini haijasakinisha vifurushi vingine vyote ambavyo inahitaji kufanya kazi. Unapaswa kuweza kusuluhisha hii kwa kuendesha hii:

 sudo apt-get -f install
 

(Amri hii inapaswa kufunga moja kwa moja utegemezi wa kutojificha.)

au kitu kama hiki (na vifurushi husika) :

 sudo apt-get install click curl dpkg-dev python-lzma python-requests imagemagick ubuntu-dev-tools
 

Lakini ukiisha na aina hii ya makosa:
haiwezi kufunga kifurushi / kifurushi haipatikani / hakuna mgombea wa ufungaji nk

Kisha unaweza kutafuta njia za kusakinisha hapa au hapa .
Ukiwa na mfano hapo juu, unapaswa kupata ukurasa kama huu , na kisha utumie PPA , au usanidi .deb kwa 32bit , au .deb kwa 64bit .


0


2014-03-02