Kushandisa PPA muBuntu Linux [Complete Guide]

 

Kana iwe wakanga uchishandisa Ubuntu kana rimwe rekuparadzanisa kweLinux kubva kuUbuntu yakadai seLinux Mint, Linux Lite, Zorin OS, iwe unogona kunge wakawana mitsara mitatu yemashiripiti yakadai:

sudo add-apt-repository ppa:dr-akulavich/lighttable
sudo apt-get update
sudo apt-get install lighttable-installer

Nhamba dzewebsite dzinobudisa mazita aya mitsara kuisa maitiro kuBuntu. Izvi ndizvo zvinonzi kuisa shandisa uchishandisa PPA.

Asi chii chinonzi PPA? Sei inoshandiswa? Zvakachengeteka kushandisa PPA here? Nzira yekushandisa sei PPA? Nzira yekubvisa PPA?

Ini ndichapindura mibvunzo yese iri pamusoro apa mubhuku rinonyatsotsanangura. Kunyange kana iwe uchitoziva zvinhu zvishoma pamusoro pePPAs, ndine chokwadi kuti chinyorwa ichi chichiri kuwedzera pane zivo yako.

Ona kuti ndiri kunyora nyaya ino uchishandisa Ubuntu. Saka ini ndichishandisa izwi rokuti Ubuntu pose pose asi zvinotsanangurwa uye matanho zvinoshandiswawo kune mamwe maDebian / Ubuntu akaparadzirwa.

Chii chinonzi PPA? Sei inoshandiswa?

Zvose zvaunoda kuziva nezvePPA muBuntu Linux

PPA inomiririra Pamwe Package Archive.

Izvozvo zvinonzwisisika here? Zvichida kwete.

Usati wanzwisisa PPA, iwe unofanirwa kuziva nheyo yezvinyorwa muLinux. Handizopindi mazviri pano kunyange zvakadaro.

Chirevo chekuchengetedza uye kutakura mapurisa

A repository ihurukuro yemafaira ine ruzivo pamusoro pemapurogiramu akasiyana-siyana, maBhaibheri avo uye zvimwe zvimwe zvakafanana ne checksum. Bhuku rimwe nerimwe re Ubuntu rine zvaro zvakagadzirirwa zvinyorwa zvina:

  • kuru - Canonical-inotsigirwa purogiramu yakasununguka uye yakasununguka.
  • Universe - Community-yakachengetwa yakawanda uye yakazaruka-source software.
  • Yakaderedzwa - Vanotyairi vezvipatara zvezvigadzirwa.
  • Multiverse - Software inogadziriswa nekodzero kana nyaya dzepamutemo.

Iwe unogona kuona zvakadaro zvinyorwa zvese zveBuntu zvese pano. Iwe unogona kutarisa kuburikidza navo uye zvakare kuenda kumunhu mumwechete repositories. Somuenzaniso, Ubuntu 16.04 main repository inogona kuwanikwa pano.

Saka chaizvoizvo iyo web URL ine ruzivo pamusoro pe software. Nzira yako inoziva sei kuti idzi idzi dzinotarisirwa?

Iyi nhoroondo inochengetwa mune zvinyorwa.list faira mumutauro / etc / apt. Kana iwe ukatarisa zviri mukati maro, uchaona kuti ine URL yezvinyorwa. Mitsetse ye # pakutanga pakutanga.

Zvino paunomhanya murairo sudo apt update, system yako inoshandisa APT thuluzi kutsvaga kurwisana ne repo uye kuchengetedza ruzivo pamusoro pe software uye shanduro yavo mune cache. Paunoshandisa murairo sudo apt install package_name, inoshandisa ruzivo kuti uwane iyo mapurisa kubva pa URL apo software chaiyo yakachengetwa.

Kana iyo repository isina ruzivo pamusoro peimwe purogiramu, iwe uchaona kukanganisa se:

E: Unable to locate package

Panguva ino, ndinokurudzira kuverenga yangu kutungamira kushandisa mirairo yakakodzera. Izvi zvichakupa kunzwisisa kwakanakisisa kwemirairo yakakodzera, nekuvandudza, nezvimwe.

Saka izvi zvaive pamusoro pezvinyorwa. Asi chii chinonzi PPA? Inopinda sei mumufananidzo?

Nei PPA inoshandiswa?

Sezvaunogona kuona, Ubuntu inotarisira ipi software uye inonyanya kukosha yepi software yaunowana pane yako system. Asi fungidzira kana software yekugadzira inobudisa shanduro itsva ye software.

Ubuntu hazvizoiti kuti zviwanike pakarepo. Pane nzira yekucherechedza kana shanduro itsva ye software yakabatana neyo system kana kwete. Izvi zvinosimbisa kugadzikana kwemamiriro.

Asi izvi zvinoreva zvakare kuti zvichave mavhiki kana zvimwe, mamwe mwedzi isati yaitwa neBuntu. Haasi munhu wose angada kumirira nguva yakareba kuti aise maoko avo purogiramu itsva yeavo vanofarira software.

Saizvozvowo, fungidzira kuti mumwe munhu anoumba software uye anoda Ubuntu kuisa iyo software mumakurukota ehurumende. Izvo zvakare kutora mwedzi yakawanda Ubuntu isati iite chisarudzo uye inosanganisira iyo mumakurukota ehurumende.

Chimwe chiitiko chaizova panguva yekuedzwa kweBaa. Kunyange kana shanduro yakagadzikana yemapurogiramu inowanika mune zvepamutemo repositories, muvandadzi wepurogiramu angada kuti vamwe vashandi vese vapedze kuedza kusunungurwa kwavo kuchauya. Inobatsira sei munhu wekupedzisira kuti aede kuongorora kusunungurwa kunouya?

PPA PPA!

Nzira yekushandisa sei PPA? PPA inoshanda sei?

PPA, sezvandakakuudza kare, zvinoreva Pamwe Package Archive. Funga shoko rokuti 'Munhu' pano. Icho chinopa chirevo chokuti ichi chinhu chakanaka kumugadziri uye haisi mvumo yepamutemo nekuparadzirwa.

Ubuntu inopa nzvimbo inonzi Launchpad inoita kuti vashandisi vekugadzira vape repositories. Mushandi wekupedzisira wekuti iwe unogona kuwedzera PPA repository kune yako sources.list uye kana iwe uchivandudza hurongwa hwako, hurongwa hwako huchaziva nezvekuwanikwa kweiyo software itsva uye iwe unogona kuisa iyo uchishandisa sout standard spt install command sezvino.

sudo yekuwedzera-apt-repository ppa: dr-akulavich / lighttable sudo apt-tora sudo apt-tora kuisa unovheneka-mutsereki

Kutaura muchidimbu:

  • sudo yekuwedzera-apt-repository <- Uyu murairo unowedzera iyo PPA repository kune iyo chinyorwa.
  • sudo apt-tora kugadzirisa <- Uyu murairo unovandudza rondedzero yemapakeji ayo anogona kuiswa pane system.
  • sudo apt-tora kuisa <- Uyu murairo unoisa pasuru.

Iwe unoona kuti zvakakosha kushandisa murairo sudo apt update kana kuti sangano rako haringazivi kana purogiramu itsva iripo.

Zvino ngatitarisei murairo wekutanga mune zvimwe zvishoma.

sudo add-apt-repository ppa:dr-akulavich/lighttable

Iwe unogona kuona kuti murairo uyu hauna URL kune repository. Ichi ndechokuti chigadziro chave chakagadzirirwa kuti chinyatsozivikanwe ruzivo rwe URL kubva kwauri.

Chinyorwa chiduku. Kana iwe uwedzera ppa: dr-akulavich / lighttable, unowana Light Table. Asi kana iwe ukawedzera ppa: dr-akulavich, iwe uchawana zvese zvakachengetwa kana mapegiji anotaurwa mu 'top repository'. Icho chirevo.

Kunyanya, apo iwe unowedzera PPA uchishandisa add-apt-repository, ichaita chiito chimwechete sekuti iwe unotungamirira mirairo iyi:

deb http://ppa.launchpad.net/dr-akulavich/lighttable/ubuntu YOUR_UBUNTU_VERSION_HERE main
deb-src http://ppa.launchpad.net/dr-akulavich/lighttable/ubuntu YOUR_UBUNTU_VERSION_HERE main

Iyi mitsetse miviri iyi ndiyo nzira yekodzero yekuwedzera chero zvinyorwa kune yako source.list. Asi PPA inozviita nyore nyore kwauri, pasina kushamisika pamusoro pechiratidzo chaiyo ye URL uye yekushandura system version.

Chimwe chinhu chinokosha kwete apa ndechekuti kana iwe ukashandisa PPA, haishandisi yako yepakutanga zvinyorwa.list. Pane kudaro, inogadzira mafaira maviri mu /etc/apt/sources.d nyaya, runyora uye fomu rekusimudza ine nheyo 'save'.

Kushandisa PPA muBuntu
PPA inoita nzvimbo dzakasiyana-siyana.list

Mafaira ane suffix 'list' ane murairo unowedzera ruzivo pamusoro pekuchengetedza.

PPA yakawedzera repository information
Zviripo zve source.list yePPA

Iyi ndiyo nzira yekuchengetedza kuchengetedza kuti kuwedzera kwePPAs kusasvibisa neyakatanga zvinyorwa.list. Inobatsirawo pakubvisa PPA.

Nei PPA? Wadii kurega DB pakatengesi?

Iwe unogona kubvunza kuti sei iwe uchifanira kushandisa PPA apo zvinosanganisira kushandisa mutemo wekuraira iyo inogona kunge isingasarudziki nemunhu wose. Sei uchangoparadzira purogiramu yeDEB inogona kuiswa mufananidzo?

Mhinduro yacho iri munzira yekuvandudza. Kana iwe ukaisa software uchishandisa DEB package, hapana vimbiso yekuti iyo yakaiswa software ichagadziriswa kune nyowani vhezheni kana iwe uchimhanya sudo apt kugadzirisa && sudo apt kusimudzira.

Ndechokuti nzira yakanakisisa yekuvandudza nzira inotsigira pane zvinyorwa.list. Kana pasina kuwanika kwepurogiramu yega software, haibatsiri iko kuburikidza nehutachiona software updater.

Saka zvinoreva kuti software inoshandiswa kushandiswa neDB haina kumbobvumirwa here? Kwete, kwete chaizvo. Izvo zvinoenderana nekugadzirwa kwepakiti.

Vamwe vashanduri vanongowedzera kuvhara kune zvinyorwa.list uye zvinozovandudzwa sekugara software. Google Chrome ndiyo imwe mienzaniso yakadaro.

Mamwe software angakuzivisa iwe nezvekuwanikwa kweshanduro itsva paunenge uchiedza kumhanya. Iwe unofanira kutora purogiramu itsva yeDEB uye woiita zvakare kuti uvandudze purogiramu yezvino kune imwe itsva version. Oracle Virtual Box muenzaniso pane iyi.

Nokuda kwezvimwe zvikamu zveDB, iwe unofanira kutarisa zvinyorwa uye izvi hazvikwanisi, kunyanya kana software yako inofanirwa kutengesa beta. Iwe unoda kuwedzera mamwe mavandudzi nguva nenguva. Apa ndipo apo PPA inouya kununura.

Offical PPA vs PAS isina basa

Iwe unogonawo kunzwa izwi iri rePPA rakashata kana PPA isina kukodzera. Chii chakasiyana?

Apo vateereri vanosika PPA nokuda kwewavo software, inonzi chirongwa chePPA. Zviri pachena pachena nokuti iri kuuya kubva kune umwe kunze kwevashandi veprojekiti.

Asi pane dzimwe nguva, vanhu vanogadzira PPA yemapurogiramu akasika nevamwe vanovaka.

Sei mumwe munhu angaita izvozvo? Nokuti vateereri vakawanda vanongopa huwandu hwekombiyuta ye software uye iwe unozviziva kuisa software kubva kune code code mu Linux inorwadza uye kwete vose vanogona kana kuti vaizoita izvozvo.

Ndicho chikonzero nei vanozvipira vanozvitora ivo pachavo kuti vape PPA kubva kune avo vanobva vatora mutsara kuitira kuti vamwe vashandise vagone kuisa software nyore nyore. Mushure mezvose, kushandisa iyo mitsara ye3 yakanyanya nyore pane kurwisana nekodhi yekodhi yekuiswa.

Iva nechokwadi chokuti PPA inowanikwa pakuparidzira kwako

Kana zvasvika pakushandisa PPA muUbuntu kana chero imwe Debian inowanikwa pakugovera, kune zvinhu zvishomanana zvaunofanira kuchengeta mupfungwa.

Haisi yePPA yose inowanikwa kune yako yega shanduro. Iwe unofanirwa kuziva iyo Ubuntu version iwe uri kushandisa. Iko codename yekusunungurwa inokosha nekuti kana iwe uchienda kunewebsite yePPA yakati, unogona kuona kuti mabhodhi maBhaibheri anotsigirwa nePPA.

Kune mamwe maBhu-based distributions, unogona kutarisa zvinyorwa zve / etc / os-release ku tsvaga Ubuntu version ruzivo.

Tarisa kuwanikwa kwePPA kweUbuntu version
Tarisa kana PPA inowanikwa kuUbuntu version yako

Kuziva sei PPA url? Tsvaga kutsvaga paInternet nezita rePPA sepa ppa: dr-akulavich / lighttable uye iwe uchawana mhinduro yekutanga kubva Launchpad, chikamu chepamutemo chekugamuchira PPA. Iwe unogonawo kuenda kuLaunchpad uye kutsvaga PPA inodiwa zvakananga ikoko.

Kana iwe usingarevi uye wobva wawedzera PPA, unogona kuona kukanganisa kwakafanana neizvi paunenge uchiedza kuisa software isingasviki yako.

E: Unable to locate package

Chinonyanya kuipa ndechokuti sezvo yakawedzerwa kune yako source.list, nguva imwe neimwe iwe uchitanga software updater, uchaona kukanganisa "Yakatadza kuchengetedza repository mashoko".

Yakundikana kuchengetedza repository mashoko Ubuntu 13.04

Kana iwe uchimhanya sudo apt update munharaunda, iko kukanganisa kuchava nemamwe tsanangudzo pamusoro pekuchengetedzeka kupi kwekutambudza. Iwe unogona kuona chimwe chinhu chakadai mumagumo ekubuda kwe sudo apt update:

W: Failed to fetch http://ppa.launchpad.net/venerix/pkg/ubuntu/dists/raring/main/binary-i386/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

Izvo zvinozvitsanangudza nekuti sisitimu haigone kuwana iyo yekuchengetedza yako vhezheni. Rangarira izvo zvatakaona pakutanga nezve repository chimiro? APT ichaedza kutsvaga ruzivo rwe software mune iyo nzvimbo http://ppa.launchpad.net/ / ubuntu / dists / Ubuntu_Version

Uye kana iyo PPA yehuwandu chaiyo isingawanikwi, haichazombokwanisi kuzarura URL uye iwe unowana chirwere chakakurumbira che404.

Sei maPPAs asingagoni kuwanikwa kwehupenyu hwose hweBuntu?

Chikonzero nokuti mumwe munhu anofanira kuunganidza software uye kugadzira PPA kubva mazviri pane mamwe maBhaibheri. Tichifunga kuti imwe bhaibheri yeBuntu inosunungurwa kwemwedzi mitanhatu, iri basa rinotyisa kugadzirisa PPA nokuda kwekusunungurwa kwe Ubuntu wese. Havasi vese vanosimbisa vane nguva yekuita izvozvo.

Nzira yekugadzirisa sei shanduro kana PPA isingawanikwi kudii yako?

Zvinokwanisika kuti kunyange zvazvo PPA isingawaniki kuUbuntu version yako, unogona kudhandira DB file uye kuisa shanduro yacho

Ngatitii iwe unoenda kuChiedza Table PPA. Uchishandisa ruzivo pamusoro pePPA wawakangodzidza, unoziva kuti PPA haisi kuwanikwa yeBuntu yako yakasunungurwa.

Zvaunogona kuita ndezvekunyanya pa 'Ona purofiti'.

Tora DB file kubva kuPPA

Uye muno, iwe unogona kuvhara papepa kuti uratidze mamwe mashoko. Iwe uchawanawo kadhi yekodhi uye DB faira yepasepa pano.

Dhaira DB file kubva kuPPA

Ndinokurudzira uchishandisa Gdebi kuti uise mafayela aya eDB panzvimbo yeSoftware Centre nokuti Gdebi inonyanya kunaka pakubata zvido.

Iwe ona kuti iyo purogiramu yakaiswa nenzira iyi inogona kunge isina kuwana chero zvarangodzokorora.

Ndinofunga kuti waverenga zvakakwana pamusoro pekuwedzera PPAs. Zvakadini nokubvisa PPA uye software yakaiswa nayo?

Ungadzima sei PPA?

Ndanyora pamusoro kubvisa PPA munguva yakapfuura. Ndiri kuenda kunotsanangura nzira imwe chete pano zvakare.

Ndinokurudzira kubvisa purogiramu yako yawakaisa kubva paPPA usati wabvisa PPA. Kana iwe uchangobva kubvisa PPA, software yakagadzirwa inoramba ichiri mumutambo asi haigoni kuwana zvigadziriswe. Iwe haungadi izvozvo, iwe iwe?

Saka, mubvunzo unouya, kuti ungaziva sei shanduro yakagadzirwa nePPA?

Tsvaga mapeji akaiswa nePPA uye avabvise

Ubuntu Software Center haibatsiri pano. Iwe unofanirwa kushandisa Synaptic pakuteja maneja pano ine zvimwe zvakashambadza.

Iwe unogona kuisa Synaptic kubva kuSoftware Centre kana kushandisa mutemo uri pasi apa:

sudo apt kuisa synaptic

Kana wangoiswa, tanga Synaptic package manager uye sarudza Origin. Iwe uchaona zvakasiyana-siyana repositories yakawedzerwa ku-system. Zvinyorwa zvepaPPA zvichave zvakanyorwa nechinangwa PPA. Dhinda pavari kuti uone mapeji anowanikwa nePPA. Akabatwa software ichave yakakodzera chiratidzo pamberi pacho.

Kutarisira PPA ne Synaptic package manager
Tsvaga mapeji akaiswa nePPA

Kana wangowana mapeji, unogona kuabvisa kubva ku Synaptic pachako. Kana zvisina kudaro, iwe unogara uine sarudzo yekushandisa mutsetse wemirairo:

sudo apt bvisa package_name

Kana wangobvisa mapeji akaiswa nePPA, unogona kuramba uchibvisa PPA kubva kune yako source.list.

Bvisa PPA mifananidzo

Enda kuSoftware & Dzokorora uye wozoenda kune imwe Software. Tarisa iyo PPA yaunoda kubvisa:

Bvisa PPA kubva kuIndaneti

Iwe une zvingasarudzwa zviviri pano. Pamwe iwe unosarudza PPA kana iwe sarudza Chokusarudza.

Misiyano ndeyokuti kana iwe ukasarudza kupinda kwePPA, hurongwa hwako huchabudisa mucherechedzo wechipfigiro mune ppa_name.list yefaira mu /etc/apt/sources.list.d asi kana ukasarudza Chokusarudza, ichabvisa mucherechedzo kubva pane ppa_name.list faira iri mu /etc/apt/sources.list.d directory.

Muzviitiko zvose izvi, mafaira ppa_name.list anoramba ari munyaya yakanyorwa, kunyange kana isina chinhu.

Zvakachengeteka kushandisa PPA here?

Icho chirevo chepfungwa. Vatengi vanonyangadza PPA nokuti kazhinji nguva PPAs inobva kune vanosimbiswa nevamwe. Asi panguva imwecheteyo, PPAs inozivikanwa munyika yeDebian / Ubuntu sezvo ichipa nyore kuisa sarudzo.

Sezvo kune chekuchengeteka, hazvibviri kuti iwe unoshandisa PPA uye Linux yako inoshandiswa kana injowa ine malware. Handifungi nezvechiitiko ichocho chakaitika kare.

PPA dzepamutemo dzinogona kushandiswa pasina kufunga kaviri. Kushandisa unozivikanwa PPA ndechipi chisarudzo chako.

Sekutonga kwechigunwe, iwe unofanirwa kudzivisa kuisa purogiramu kuburikidza nemumwe munhu wePPA kana iyo purogiramu inoda kuti sudo inokwanisa kusvika.

Unofungei nezvekushandisa PPA?

Ndinoziva kuti yakanyorwa kwenguva refu asi ndaida kukupa kunzwisisa kwakanakisisa kwePPA. Ndinotarisira kuti nhungamiro yakawanda yakapindura mibvunzo yako yakawanda pamusoro pekushandisa PPA.

Kana uine mamwe mibvunzo pamusoro pePPA, ndapota sununguka kubvunza mubato remashoko.

Kana ukacherechedza chero upi zvake hwemagetsi kana chirongwa chechirongwa kana kana iwe une mazano ekuvandudza nyaya ino, ndapota ndiudzei.

mabviro