Yadda ake ƙara wuraren ajiya na PPA a cikin Debian

Game da Launchpad PPAs

Mai mahimmanci: Yawancin PPAs na Launchpad da yawa basu da goyan bayan Debian, saboda fakitin sun haɗa da dogaro da takamaiman Ubuntu. Sauran PPAs suna aiki akan Debian. Don haka, kafin ci gaba, ku sani cewa koda tare da nasarar nasarar shigar da PPA, ƙila ba zai yiwu a shigar da fakitin ba saboda matsalolin dogaro.

A cikin Debian 7

add-apt-repository wani rubutu ne musamman wanda aka kirkira don rarraba Ubuntu wanda zai bada damar karawa ko cire wuraren ajiya kuma hakan yana shigo da mabuɗin GPG na jama'a kai tsaye da ake buƙata don amfani da waɗannan wuraren.

Kamar na Debian 7 yana yiwuwa a yi amfani dashi ƙara-saitunan ajiya don ƙara PPAs na Launchpad. Koyaya, akwai yan abubuwa da zaku sani kafin amfani da shi.

Don ƙara Launchpad PPA a cikin Debian, kamar yadda yake a Ubuntu, yi amfani da umarni mai zuwa:

sudo add-apt-repository ppa: ku / ppa

Babu shakka dole ne ka maye gurbin ppa: ku / ppa ga PPA din da kake son karawa.

Koyaya, idan aka ƙara PPA ta wannan hanyar, fayil ɗin tushen ga PPA zai yi amfani da fasalin Debian na yanzu (misali, »wheezy»). Idan muka gudanar da sabuntawa mai kyau zamu ga kuskure 404, tunda babu wasu kunshin Debian Wheezy a cikin taskanin Launchpad PPA. Dukkanin fakiti ne da aka gina don nau'ikan Ubuntu daban-daban. Yadda za a warware shi? Mai sauƙi, dole ne ku canza asalin fayil ɗin PPA kuma ku nuna fakitin wane nau'in Ubuntu muke son amfani da shi.

Don samun damar yin aiki daidai, to, bayan amfani da umarnin "ppa add-apt-repository ppa: tu / ppa", dole ne ku gyara fayil ɗin asalin PPA wanda yake cikin fayil ɗin /etc/apt/sources.list .d /, kuma maye gurbin sigar Debian (misali "wheezy") da sigar Ubuntu. A wannan gaba, yana da kyau a yi amfani da sigar LTS ta Ubuntu.

Ga misali. A ce mun ƙara webupd8team / java ppa a cikin Debian Wheezy ta amfani da "add-apt-repository: webupd8team / java". A sakamakon haka, dole ne an ƙirƙiri fayil /etc/apt/sources.list.d/webupd8team-java-wheezy.list. Muna shirya shi tare da umarnin mai zuwa:

sudo nano /etc/apt/sources.list.d/webupd8team-java-wheezy.list

Wannan fayil ɗin ya ƙunshi layuka biyu:

deb http://ppa.launchpad.net/webupd8team/java/ubuntu wheezy main deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu wheezy main

Ya rage kawai don canza "wheezy" ta sunan lamba na rarraba Ubuntu da muke son amfani da shi. A wannan yanayin, misali, zamu iya amfani da Trusty, sabon fasalin LTS na Ubuntu. Bayan gyara fayil ɗin, yakamata yayi kama da wannan:

deb http://ppa.launchpad.net/webupd8team/java/ubuntu amintaccen babban deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu amintacce main

A ƙarshe, kawai ku gudu:

sudo apt-samun sabuntawa

Wannan zai sabunta jerin fakitin, yanzu la'akari da abubuwan kunshin da aka shirya a cikin sabbin wuraren ajiya na PPA.

A cikin tsofaffin sifofin Debian

A cikin tsofaffin sifofin Debian, idan ba a sami umarnin add-apt-repository ba, za a iya ƙara wurin ajiyar da hannu ta hanyar gyara fayil ɗin /etc/apt/sources.list da kuma kara madannin tare da mabulli.

Duk waɗannan bayanan ana iya samunsu akan gidan yanar gizon Launchpad na PPA, ƙarƙashin ɓangaren da aka yiwa taken "Bayanan fasaha game da wannan PPA," kamar yadda aka gani a hoton da ke ƙasa:

shafi Webupd8

Da farko mun shigo da maɓallin tare da umarnin maɓallin-dace:

sudo apt-key adv --keyerver keyserver.ubuntu.com --recv-keys EEA14886

Babu shakka, dole ne ka maye gurbin EEA14886 tare da mabuɗin PPA ɗin da kake son ƙarawa.

Maballin shiga:
1024R / EEA14886 (Menene wannan?)
Wurin yatsa:
7B2C3B0889BF5709A105D03AC2518248EEA14886

Kamar yadda kake gani, mabuɗin don amfani a cikin umarnin apt-key shine bayan maɓallin gaba.

Da zarar an gama wannan, ƙara layin biyan kuɗi daidai zuwa ƙarshen fayil ɗin /etc/apt/sources.list.

Dabara anan ita ce zabi nau'ikan Ubuntu "kwatankwacinsa" da sigar Debian da muke amfani da ita akan gidan yanar gizon PPA. Wannan zai haifar da adiresoshin http masu dacewa, kamar yadda aka gani a cikin hoton hoton sama.

Da zarar muna da adiresoshin http na PPA, zamu iya amfani da editan rubutu ko kuma kawai gudanar da mai zuwa daga tashar don ƙara su zuwa ƙarshen fayil ɗin /etc/apt/sources.list:

amsa kuwwa 'deb deb java / ubuntu amintaccen babban '>> /etc/apt/sources.list

A ƙarshe, mun sabunta jerin kunshin:

sudo apt-samun sabuntawa

Bar tsokaci

Your email address ba za a buga. Bukata filayen suna alama da *

*

*

  1. Wanda ke da alhakin bayanan: Miguel Ángel Gatón
  2. Manufar bayanan: Sarrafa SPAM, sarrafa sharhi.
  3. Halacci: Yarda da yarda
  4. Sadarwar bayanan: Ba za a sanar da wasu bayanan ga wasu kamfanoni ba sai ta hanyar wajibcin doka.
  5. Ajiye bayanai: Bayanin yanar gizo wanda Occentus Networks (EU) suka dauki nauyi
  6. Hakkoki: A kowane lokaci zaka iyakance, dawo da share bayanan ka.

  1.   joan m

    Barkan ku da Safiya,

    Gaskiya ban ga wata bukata ta amfani da wuraren ajiye ppa a Debian ba. Bana ba da shawarar hada fakitin Ubuntu da Debian kwata-kwata.

    Af, wuraren ajiye Debian sun cika cika.

    gaisuwa

    1.    bari muyi amfani da Linux m

      Gaskiya ne. Ba shi da kyau amma wani lokacin babu wani. Misali, don girka Java (Oracle). 🙁
      Rungume, Pablo.

  2.   Tsakar Gida m

    Madalla !!! Ga Linux Yaudara Gindi !!! 😀

  3.   kwalliya m

    Kyakkyawan jagora, ya tunatar da ni zamanin da nake tare da Debian 6 yana ƙara PPA kamar mahaukaci da sake saiti. Gaisuwa 🙂

  4.   nukela m

    don wargaza debian mafi amfani da ubuntu
    Gudummawar tana da kyau, amma ba gamsarwa ba, Na gwammace in tattara idan ba a cikin tsarin debian ba.

    1.    bari muyi amfani da Linux m

      Gaskiya ne. Akwai kuma gwajin debian. Hakanan, ga waɗanda basu san yadda ake tattara aikace-aikacen ba, aikin da muka yarda zai iya zama mai wahala a wasu lokuta, wannan na iya zama madadin. Tabbas, ba manufa bane akan takarda, amma yana iya aiki.

  5.   victor Miranda m

    Ba lallai ba ne a yi amfani da "apt-repository" a cikin Debian, tare da "dace edit-kafofin" da kuka ƙara a matsayin wurin ajiye ku na kowa sannan sannan tare da "pubkey" kuna fitar da maɓallin ta atomatik kuma sabunta wuraren ajiyar ...

    1.    bari muyi amfani da Linux m

      Tabbas, wannan wata hanya ce ta yin shi, kodayake yana da ɗan rikitarwa. Abin da ya sa na zaɓi wurin ajiya-ƙari. Kari akan haka, wadanda suka zo daga Ubuntu za su ji da masaniyar amfani da shi.
      Rungume, Pablo.

  6.   Saul m

    Zan yi amfani da ppa 12.04 tunda sun raba sigar kernel
    Ban sanya ppa ba amma na zazzage debs kuma na girke su lokacin amfani da debian

  7.   aurezx m

    Aaramar dabara: bincika cikin WebUpd8 PPA don kunshin "launatarwa ta samo asali" Shigar da shi, ba ya haifar da matsala. Bayan haka aiwatar da wannan umarnin kamar tushen, kuma zai kula da ƙara duk sa hannun PPA da ya ɓace, maimakon ƙara su ɗaya bayan ɗaya.

  8.   kuis m

    Ina tsammanin sanya wani abu wanda yawancin sabbin mutane zasuyi kokarin gwada Debian dinsu, yakamata a gargade su game da barnar da zasu iya yi

    1.    bari muyi amfani da Linux m

      An yi gargaɗi a sarari a farkon post. Cikin ja da komai ... 🙂

  9.   wata m

    amma kai mahaukaci ne ko me? Shin kuna so in karya debian? ...

    Hehe .. kyakkyawar bayani, koyaushe ina ganin ppa a wurin kuma ina tunanin sau ɗaya ko sau biyu ina son gano ainihin adireshin, amma ba zan iya ba saboda haka na daina.
    Godiya kuma ba zan Taba ƙoƙarin amfani da su ba (wataƙila tare da PC na uku idan)

    Gaisuwa daga kudu.

  10.   Mai samarda m

    Kyakkyawan tuto, ya bi wasiƙar kuma yana aiki ba tare da matsaloli ba.

    Na gode!