Szczegółowy przewodnik dotyczący aktualizacji znajduje się tutaj . Inne odpowiedzi już wspominają, że musisz użyć:
do-release-upgrade -d # Use this until 18.04.1 comes out
do-release-upgrade # Use this after 18.04.1 comes out
Dodatkowo musisz sprawdzić plik:
~$ cat /etc/update-manager/release-upgrades
# Default behavior for the release upgrader.
[DEFAULT]
# Default prompting behavior, valid options:
#
# never - Never check for a new release.
# normal - Check to see if a new release is available. If more than one new
# release is found, the release upgrader will attempt to upgrade to
# the release that immediately succeeds the currently-running
# release.
# lts - Check to see if a new LTS release is available. The upgrader
# will attempt to upgrade to the first LTS release available after
# the currently-running one. Note that this option should not be
# used if the currently-running release is not itself an LTS
# release, since in that case the upgrader won't be able to
# determine if a newer release is available.
Prompt=never
Jeśli ostatni wiersz mówi „nigdy”, zmień go na „normalny” dla użytkowników Ubuntu 17.10. W przypadku użytkowników Ubuntu 16.04 LTS zmień go na „LTS”. W przeciwnym razie otrzymasz aktualizację ... um "nigdy":
rick@alien:~$ do-release-upgrade
Checking for a new Ubuntu release
No new release found.
───────────────────────────────────────────────────────────────────────────────────────────
rick@alien:~$ do-release-upgrade -d
Checking for a new Ubuntu release
Upgrades to the development release are only
available from the latest supported release.
───────────────────────────────────────────────────────────────────────────────────────────
rick@alien:~$ do-release-upgrade -c
Checking for a new Ubuntu release
No new release found.
Te polecenia zostały wydane Prompt=neverw systemie Ubuntu 16.04, gdzie można je zaktualizować wczoraj (28 kwietnia 2018 r.). Zmiana podpowiedzi w celu ltsrozwiązania problemu.
Należy najpierw wykonać kopię zapasową danych lub sklonować dane i uruchomić aktualizację w środowisku testowym. Oto jeden skrypt, który napisałem w tym celu (ale możesz to zrobić ręcznie za pomocą Live USB): Skrypt Bash do klonowania Ubuntu na nowej partycji w celu przetestowania aktualizacji 18.04 LTS
Zrobiłem kilka notatek podczas procesu aktualizacji i oto, czego możesz się spodziewać:
Step 1: confirmation to proceed: Press [ENTER]
Step 2: packages will be removed: Y
Step 3: replace '/etc/systemd/longind.conf': Y
Step 4: Configuration file '/etc/sane.d/dll.conf', default N, take Y
Step 5: Configuration file '/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf' Take default N
Step 6: Configuration file '/etc/pulse/default.pa' default N, take Y
Step 7: Configuration file '/etc/grub.d/30_os-prober'' default N, take N
Step 8: Full screen grub menu config appears. Take option: keep the local version currently installed
Step 9: Configuration file '/etc/cron.d/anacron', default N, take Y to see what
Error Message multiple times: /sbin/ldconfig.real: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf.d/x86_64-linux-gnu_EGL.conf: No such file or directory
Step 10: Non-standard: Configuration file '/etc/vnstat.conf' (display differences 1.13 vs 1.18) take Y
Step 11: 220 packages are going to be removed. (can take hours) enter Y
Step 12: To finish the upgrade, a restart is required. Take Y
Pamiętaj, że Twoje kroki będą się różnić w zależności od zainstalowanego oprogramowania.
Tym bardziej, że powinieneś klonować to, co możesz zrobić, gdy akceptujesz domyślną konfigurację Nlub używasz Ynajnowszej konfiguracji, która może być lepsza.
Ponieważ oryginalna wersja Ubuntu pozostaje nienaruszona, możesz uruchomić diffpolecenie dla nowych plików konfiguracyjnych 18.04, jeśli zdecydujesz się je zainstalować.