Te whakahou i te Debian 8 ki te Putanga 9

Kei roto i tenei tuhinga he aratohu e taea ai e koe te whakapai ake i te Debian 8 OS ki te putanga 9. Ka wehewehea kia maha nga kaupapa matua, me mahi tonu. Ano, mo to waimarie, ka tukuna koe ki nga whakahau matua mo te mahi i nga mahi katoa i whakaahuatia. Kia tupato.

Debian OS Whakatika Tohu

Ina tae mai ki te whakahou i te punaha, kaore e nui ake te tiaki. Na te mea i te wa e mahi ana te nuinga o nga kōnae nui i te waahanga, he mea tika ki te tuku korero mo a raatau mahi. Ki te pai, he kaiwhakamahi kore e whai whakaaro ana ki te kaha o tona kaha ki te pauna i nga painga katoa me nga raruraru, a, i roto i nga waahanga nui, he mea tika kia whai i nga tohutohu e whakaaturia ana i raro nei.

Hipanga 1: Whakatupato

I mua i to tīmatanga, kia tupato koe me te tautoko i nga kōnae me nga paearu nui, mehemea ka whakamahi koe i aua mea, mehemea kaore koe e taea te whakahoki mai.

Ko te take mo tenei whakatikatika ko te whakamahinga o te pūnaha papaa raraunga tino rerekē i Debian9. Ko taku MySQL, kei runga i te Debian 8, kaore i te hototahi ki te paataka MariaDB i Debian 9, na, kaore i tutuki te whakahou, ka ngaro nga kōnae katoa.

Ko te taahiraa matamua ko te kimi i te ahua o te OS e whakamahi ana koe inaianei. Kei to tatou pae he tohutohu taipitopito.

Pānuihia atu: Me pehea te kimi i te putanga o te tohatoha Linux

Hipanga 2: Te whakarite mo te whakahou

Mo te mea kia angitu nga mea katoa, me tino mohio koe kei a koe nga whakahoutanga hou mo to punaha whakahaere. Ka taea e koe tenei ma te whakahaere i enei whakahau e toru:

sudo apt-tiki whakahou
sudo apt-whiwhi whakamohoatanga
sudo apt-whiwhi whakamohoatanga

Mena ka tupu te rorohiko tuatoru i to rorohiko, kaore i whakauruhia ki tetahi o nga kohinga, i whakauruhia ranei ki roto i te punaha mai i etahi atu rauemi, ka whakaiti i tenei waahanga mo te tukanga whakahou-korekore. Ka taea te aroturuki i enei tono katoa i runga i te rorohiko ki tenei whakahau:

rapu rapu '~ o'

Me tango katoa e koe, me te whakamahi i te whakahau i raro iho nei, tirohia mehemea kei te tika te whakauru i nga poraka katoa, mehemea he raruraru kei roto i te punaha:

dpkg -c

Mena i muri i te whakatutuki i te whakahau i roto i "Ngati" kaore he mea e whakaatuhia ana, kaore he hapa nui i roto i nga waahanga whakauru. I te mea he raruraru kei roto i te pūnaha, me whakarite, me te tīmata anō i te rorohiko mā te whakamahi i te whakahau:

tīmata anō

Hipanga 3: Tatūnga

Ka whakaaturia e tenei pukapuka anake te whakahoutanga o te pukupuku, ko te tikanga me whakakapi koe i nga paatete raraunga e wātea ana. Ka taea e koe tenei ma te whakatuwhera i te kōnae e whai ake nei:

sudo vi /etc/apt/sources.list

Tuhipoka: i tenei waahanga, ka whakamahia te vi ki te whakatuwhera i te kōnae, he kaitautoko kuputuhi kua whakauruhia ki roto i nga mahinga Linux katoa na te taunoa. Kaore he atanga ataata, na he mea uaua ki te kaiwhakamahi noa te whakatika i te kōnae. Ka taea e koe te whakamahi i tetahi atu tautuhi, hei tauira, GEdit. Hei mahi i tenei, me whakakapi te "vi" ki te "gedit".

I roto i te kōnae e tuwhera ana, me huri koe i nga kupu katoa. "Jessie" (codename OS Debian8) i runga i "Horo" (codename Debian9). Hei hua, me penei:

vi /etc/apt/sources.list
deb //httpredir.debian.org/debian stretch main contrib
[email protected]/ whakapiri / whakahou matua

Tuhipoka: Ka taea te whakarahi i te tukanga whakatika ki te whakamahi i te whakamahi a te SED me te whakahaere i te whakahau i raro nei.

sed -i 's / jessie / stretch / g' /etc/apt/sources.list

I muri i nga mahi katoa, ka whakarewa maia te whakahou o nga kaitiaki ki te whakahaere i roto "Ngati" whakahau:

Whakahou whakahou

Hei tauira:

Hipanga 4: Te tautuhinga

Hei whakatairanga angitu i tetahi OS hou, me mohio koe he nui te mokowhiti i runga i to puku puku. I timata i tenei whakahau:

apt -o APT :: Haere :: Trivial-Only = pono-whakamohoatanga

Hei tauira:

Muri iho, me tiro koe i te kōpaki pakiaka. Hei mahi i tenei, ka taea e koe te whakamahi i te whakahau:

df -H

Tip: kia hohoro te tautuhi i te whaiaronga pakiaka o te pūnaha i tāutahia mai i te rārangi e puta mai ana, whakarongo ki te tīwae "Kua whakaturia ki roto" (1). I roto i te reira, kitea te aho kua hainatia “/” (2) - Ko te pakiaka tenei o te punaha. Ka noho tonu ki te whakawhiti i te titiro ki te iti o te taha maui i te raina ki te pou "Mahi" (3)kei hea te toenga mokowā kore e tohua.

A, i muri i enei whakaritenga katoa, ka taea e koe te whakahaere i te whakahou o nga kōnae katoa. Ka taea tenei ma te mahi i nga whakahau e whai ake nei:

te whakapai ake
Whakawhanake-apt

I muri i te tatari roa, ka mutu te tukanga, ka taea e koe te haumaru ano i te punaha me te tono rongonui:

tīmata anō

Hipanga 5: Tirohia

Na kua pai te whakahou o to pünaha mahi Debian ki te putanga hou, engari i te mea anake, he pai ki te tirotiro i etahi atu mea atu kia tino mohio:

  1. Kernel putanga me te whakahau:

    uname -mrs

    Hei tauira:

  2. Ko te putanga tuku ki te whakahau:

    lsb_release -a

    Hei tauira:

  3. Kei te wātea o nga kohinga tawhito mā te whakahaere i te whakahau:

    rapu rapu '~ o'

Mena kei te rite ki te Debian 9 OS te pene me te tohatoha, a, kaore i kitea he taapiri, he pai te whakahou i te pūnaha.

Whakamutunga

Ko te whakahou ake i te Debian 8 ki te putanga 9 he whakatau tino nui, engari ko tana whakatinanatanga angitu anake e whakawhirinaki ana ki te whakatinanatanga o nga tohutohu i runga. I te mutunga, ka hiahia au ki te whakamau i to aro ki te meka ka roa te tukanga whakahou, no te mea he maha nga kōnae e kiihia mai i te whatunga, engari kaore e taea te whakakore i tenei tukanga, kaore e taea te whakaora i te punaha whakahaere.