Kugadzirisa "E: Kutadza kuwana pasuru" Kanganiso paUbuntu [Yekutanga Dzidziso]

Ichi chidzidzo chekutanga chinoratidza mafambiro aungaita ekugadziridza iyo E: Haikwanisi kuwana kukanganisa kwepakeji pa Ubuntu Linux.

Mumwe nzira dzakawanda dzekuisa software mu Ubuntu kushandisa zvakakodzera-kuwana kana murayiro wakakodzera. Iwe unovhura terminal uye unoshandisa zita rechirongwa kuiisa seizvi:

Read More
sudo apt install package_name

Dzimwe nguva, unogona kusangana nechikanganiso uchiyedza kuisa application nenzira iyi. Iko kukanganisa kunoverenga:

sudo apt-get install package_name
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package package_name

Iko kukanganisa kunozvitsanangura. Yako Linux system haigone kuwana iro package yauri kuyedza kuisa. Asi nei zvakadaro? Nei isingakwanisi kuwana iyo phukusi? Ngatione zvimwe zviito zvaungatore kugadzirisa nyaya iyi.

Kugadzirisa 'Kutadza kuwana kukanganisa kwepakeji' pa Ubuntu

Kutadza Kuwana Package Kukanganisa UbuntuKutadza Kuwana Package Kukanganisa Ubuntu

Ngatione kuti tingagadzirisa sei nyaya iyi nhanho imwe panguva.

1. Tarisa zita rehomwe (kwete, zvakakomba)

Ichi chinofanira kuve chinhu chekutanga kuongorora. Wakagadzira typo muzita repakeji here? Ndinoreva, kana uri kuedza gadza vlc uye iwe wonyora vcl, chokwadi ichakundikana. Mhando dzinowanzoitika saka ita shuwa kuti hauna kukanganisa pa typing zita repakeji.

2. Gadziridza cache repository

Kana ino inguva yekutanga iwe yaunenge uchishandisa yako system mushure mekuisa, iwe unofanirwa kumhanya yekudzidzira command:

sudo apt update

Uyu murairo hautambe update Ubuntu ipapo. Ndinokurudzira kuti ndipfuure ne pfungwa yehunhu hweUbuntu. Chaizvoizvo, iyo 'apt update' inovaka cache yemunharaunda yemapaketi anowanikwa.

Paunoshandisa iyo yekuraira, apt package maneja inotsvaga cache kuti utore iyo package uye shanduro ruzivo uye wozoitora kubva kune yayo yekuchengetedza pamusoro petiweki. Kana iyo package isiri mucache iyi, system yako haizokwanisi kuiisa.

Paunenge uine nyowani yakaiswa Ubuntu system, cache yacho haina chinhu. Ichi chikonzero nei iwe uchifanira kumhanya iyo apt yekusimudzira kuraira izvozvi mushure mekuisa Ubuntu kana chero humwe humbowo hunobva paUbuntu (saLinux Mint).

Kunyangwe isiri itsva yekuisa, yako cache inogona kunge yapera. Icho chinogara chiri pfungwa yakanaka yekuchigadzirisa.

3. Tarisa uone kana paseji iripo yeshanduro yako Ubuntu

Horaiti! Wakatarisa zita rehuku uye rakarurama. Iwe unomhanya yekudzokorora kuraira kuvaka zvakare cache uye asi iwe unoona iyo isingakwanisi kuwana kwepakeji kukanganisa.

Zvinokwanisika kuti paki haina kunyatso kuwanikwa. Asi iwe uri kutevera mirairo inotaurwa pane imwe webhusaiti uye wese wese anoita kunge achikwanisa kuiisa yakadaro. Chingave chii chinetso?

Ndiri kuona zvinhu zviviri pano. Inga piritsi rinowanikwa muUniversity repository uye system yako haina kuigonesa kana kuti pepa hariripo pane yako Ubuntu vhezheni zvachose. Usavhiringidzike. Ini ndichakutsanangurira iwe.

Chekutanga nhanho, tarisa vhezheni yeUbuntu yauri kumhanyisa. Vhura terminal uye shandisa inotevera rairo:

lsb_release -a

Iwe uchazowana iyo Ubhu shanduro nhamba uye codename mune zvakabuda. Iyo codename ndiyo yakakosha pano:

[email protected]:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.3 LTS
Release:	18.04
Codename:	bionic
Ubuntu Shanduro YekutarisaUbuntu Shanduro Yekutarisa
Ubuntu Shanduro Yekutarisa

Sezvauri kuona pano, ini ndiri kushandisa Ubuntu 18.04 uye yayo codename iri bionic. Iwe unogona kunge uine chimwe chinhu asi iwe unowana iyo pfungwa yezvaunofanira kucherechedza apa.

Paunenge uchinge uine iyo shanduro nhamba uye codename, tungamira kune iyo Ubuntu package webhusaiti:

Ubuntu Packages

Dhinha pasi zvishoma pane ino peji uye enda kune Yekutsvaga chikamu. Iwe uchaona yakakosha shamba. Isa zita repakeji (risingawanikwe neako system) wobva waisa chirevo chakakodzera chekugovera. Chikamu chinofanira kunge chiri 'chero'. Paunenge waisa izvi zvitatu zvinyorwa, rova ​​bhatani rekutsvaga.

Ubuntu Package KutsvagaUbuntu Package Kutsvaga
Ubuntu Package Kutsvaga

Izvi zvicharatidza kana bhurukwa riripo rako Ubuntu vhezheni uye kana hongu, iro raramo nderaro. Kana ndiri ini, ndakatsvaga Shutter skrini yekushandisa uye izvi ndizvo zvaakandiratidza kune Ubuntu 18.04 Bionic vhezheni:

Package Kutsvaga MhedzisiroPackage Kutsvaga Mhedzisiro
Package Kutsvaga Mhedzisiro

Munyaya yangu, iro zita remapaketi ndiwo chaiwo mutambo. Izvi zvinoreva kutivhavha remapaketi rinowanikwa Ubuntu 18.04 Bionic asi iri mu 'Universe repository'. Kana iwe uri kunetseka kuti chii chinonzi heck chinonzi Universe repository, ndapota regedza kune iyo Ubuntu repository chinyorwa chandakambotaura.

Kana iyo puranga yakanangana iripo yeshanduro yako yeUbuntu asi iri repadenga rakafanana nedenga kana rakasiyana-siyana, unofanirwa kugonesa idzi zvinyorwa zvekuwedzera.

sudo add-apt-repository universe multiverse

Iwe unofanirwazve kugadzirisa iyo cache kuitira kuti system yako izive nezve maphakeji matsva anowanikwa kuburikidza neaya marekodhi:

sudo apt update

Iye zvino kana iwe ukaedza kuisa iyo bhajeti, zvinhu zvinofanirwa kunge zvakanaka.

Hapana chinoshanda, chii manje?

Kana Ubuntu Packages webhusaiti zvakare ikaratidza kuti pepa racho harisi kuwanikwa kune yako chaiyo shanduro, saka iwe unofanirwa kutsvaga dzimwe nzira dzekuisa iyo package.

Tora Shutter semuenzaniso. Zviri yakanakisa skrini yekushandisa Linux asi haina kuvandudzwa mumakore uye nekudaro Ubuntu akaidzikisira kubva Ubuntu 18.10 uye shanduro nyowani. Ungachiisa sei ikozvino? Nechemumoyo, imwe yechitatu bato yekugadzira yakagadzira yako repository (PPA) uye iwe unogona kuiisa uchishandisa iyo. [Ndokumbirawo kuti muverenge gwaro rino rine ruzivo nzwisisa PPA muna Ubuntu.] Unogona kutsvaga mapakeji nePPA yavo paUbuntu's Launchpad webhusaiti.

Ramba uchifunga kuti haufanirwe kuwedzera mahara (zvisiri pamutemo) maPPA kune ako zvinyorwa zvinyorwa. Ini ndinokurudzira kuomerera kune izvo kugoverwa kwako kunopa.

Kana pasina maPPAs, tarisa wepamutemo webhusaiti yepurojekiti uye uone kana ivo vachipa dzimwe nzira dzekuisa chirongwa. Mamwe mapurojekiti anopa.DEB mafaera or AppImage mafaera. Zvimwe zvirongwa zvakachinjira Shandisa puragiji.

Mune mamwe mazwi, tarisa iyo webhusaiti yepamutemo yeprojekiti uye tarisa kana vakachinja maitiro avo ekuisa.

Kana pasina chinoshanda, pamwe chirongwa ichocho hachina kubviswa uye kana zvirizvo, iwe unofanirwa kutsvaga mamwe maitiro.

Pakupedzisira…

Kana iwe uri mutsva kuna Ubuntu kana Linux, zvinhu zvinogona kuve zvakawandisa. Ichi ndicho chikonzero ndiri kuvhara mimwe misoro yakakosha senge iyi kuti iwe unowana nzwisiso iri nani yekuti zvinhu zvinoshanda sei muhurongwa hwako.

Ndinovimba ino dzidzo inokubatsira kubata kwepasuru kukanganisa muUbuntu. Kana iwe uine mibvunzo kana mazano, ndapota inzwa wakasununguka kubvunza muchikamu chekupa mhinduro.