אנדרואיד

כיצד לשדרג מאובונטו 16.04 ל- 18.04

How to Upgrade Ubuntu 16.04 to 18.04

How to Upgrade Ubuntu 16.04 to 18.04

תוכן עניינים:

Anonim

המהדורה האחרונה של אובונטו LTS, אובונטו 18.04 (ביונית ביבר), יצאה ב- 26 באפריל 2018 והיא תתמך במשך 5 שנים עד אפריל 2023. במדריך זה, נראה לך כיצד לשדרג את התקנת אובונטו 16.04 שלך או מאוחר יותר. לאובונטו 18.04 (ביבר ביבר).

תנאים מוקדמים

לפני שתתחיל עם ההדרכה, וודא שאתה מחובר כמשתמש עם הרשאות sudo.

גבה את הנתונים שלך

בראש ובראשונה, וודא שאתה מגבה את הנתונים שלך לפני שתתחיל בשדרוג הגדול של מערכת ההפעלה שלך. אם אתה מפעיל את אובונטו על מחשב וירטואלי, כדאי שתצלם תמונת מצב שלמה כדי שתוכל לשחזר את המחשב שלך בקלות במקרה שהעדכון יימשך דרומה.

עדכן חבילות המותקנות כעת

לפני שתתחיל בשדרוג המהדורה, מומלץ לעדכן את כל החבילות המותקנות כעת לגרסאות האחרונות שלהן.

sudo apt upgrade

אנו נפעיל גם dist-upgrade אשר יבצע שדרוג גרסה עיקרי של החבילות המותקנות ועלול להסיר כמה חבילות מיותרות:

sudo apt dist-upgrade

שדרג את אובונטו 16.04 לאובונטו 18.04

אובונטו מספקת כלי שנקרא do-release-upgrade מה שהופך את השדרוג לתהליך די פשוט. יש כבר להתקין את הכלי במערכת שלך אך אם מסיבה כלשהי הוא לא מותקן אתה יכול להתקין אותו באמצעות:

sudo apt install do-release-upgrade

כדי להתחיל בשדרוג הפעל do-release-upgrade :

sudo do-release-upgrade

Reading cache Checking package manager Continue running under SSH? This session appears to be running under ssh. It is not recommended to perform an upgrade over ssh currently because in case of failure it is harder to recover. If you continue, an additional ssh daemon will be started at port '1022'. Do you want to continue? Continue

Starting additional sshd To make recovery in case of failure easier, an additional sshd will be started on port '1022'. If anything goes wrong with the running ssh you can still connect to the additional one. If you run a firewall, you may need to temporarily open this port. As this is potentially dangerous it's not done automatically. You can open the port with eg: 'iptables -I INPUT -p tcp --dport 1022 -j ACCEPT' To continue please press

ברגע שכלי השדרוג יוריד את רשימת החבילות ומחשב את השינויים הוא ישאל אותך אם ברצונך להמשיך.

Do you want to start the upgrade? 4 installed packages are no longer supported by Canonical. You can still get support from the community. 3 packages are going to be removed. 90 new packages are going to be installed. 397 packages are going to be upgraded. You have to download a total of 267 M. This download will take about 1 minute with your connection. Installing the upgrade can take several hours. Once the download has finished, the process cannot be canceled.

שוב הקלד y ותהליך השדרוג יתחיל.

במהלך תהליך השדרוג, תשאלו שאלות שונות, כמו האם ברצונכם לשמור קובץ תצורה קיים או להתקין את גרסת מנהל החבילה. אם לא ביצעת שינויים בהתאמה אישית לקובץ, זה אמור להיות בטוח להקליד Y אחרת כדי לשמור על התצורה הנוכחית כניסה N

Configuration file '/etc/sysctl.conf' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I: install the package maintainer's version N or O: keep your currently-installed version D: show the differences between the versions Z: start a shell to examine the situation The default action is to keep your current version. *** sysctl.conf (Y/I/N/O/D/Z) ?

תהליך השדרוג עשוי לארוך זמן מה תלוי במספר העדכונים ומהירות האינטרנט שלך.

לאחר התקנת החבילות החדשות, כלי העדכון ישאל אותך אם ברצונך להסיר את התוכנה המיושנת, אם אינך בטוח להקליד d ולבדוק את רשימת החבילות המיושנות, ברוב המקרים בטוח להזין את y ולהסיר את כל מיושן. חבילות:

Searching for obsolete software Reading package lists… Done Building dependency tree Reading state information… Done Reading state information… Done Remove obsolete packages? 17 packages are going to be removed.

לאחר השלמת תהליך השדרוג ובהנחה שהכל עבר כשורה, תתבקש להפעיל מחדש את המחשב שלך. הקלד y כדי להמשיך:

System upgrade is complete. Restart required To finish the upgrade, a restart is required. If you select 'y' the system will be restarted. Continue y

אשר את העדכון

המתן מספר רגע עד שהשרת שלך יתחיל מחדש ואז התחבר מחדש. לאחר הכניסה תקבלו את ההודעה הבאה:

Welcome to Ubuntu 18.04 LTS (GNU/Linux 4.15.0-20-generic x86_64)

אתה יכול גם לבדוק את גרסת אובונטו באמצעות הפקודה הבאה:

lsb_release -a

No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04 LTS Release: 18.04 Codename: bionic

זהו, עכשיו תוכלו ליהנות מה- Ubuntu 18.04 LTS החדש שלכם (ביבר ביבר).

אובונטו