Prosíme přihlašte se nebo zaregistrujte.

Přihlašte se svým uživatelským jménem a heslem.
Vaše pomoc je stále potřeba!

Autor Téma: přechod z 16.04 na 18.04 (20.04)  (Přečteno 1919 krát)

iguana

  • Aktivní člen
  • *
  • Příspěvků: 142
přechod z 16.04 na 18.04 (20.04)
« kdy: 28 Ledna 2021, 14:37:18 »
Dobrý den,
mám ubuntu 16.04 LTS
Macbook
Intel® Core™ i5-5350U CPU @ 1.80GHz × 4
Intel® HD Graphics 6000 (Broadwell GT3)
64-bit
rozdlený disk na Macos a ubuntu
musím přejít na vyšší verzi, protože končí podpora, vybral jsem si 20.04 LTS s tím, že bych si opět zvolil Unity

Pokoušel jsem přejít na vyšší 18.04 LTS verzi, ale v terminálu mám tuto hlášku:
Kód: [Vybrat]
robert@robert-MacBookAir:~$ apt-get update && sudo apt-get upgrade
Reading package lists... Done
W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted)
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)
robert@robert-MacBookAir:~$ sudo apt install update-manager-core
[sudo] password for robert:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
update-manager-core is already the newest version (1:16.04.17).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
robert@robert-MacBookAir:~$ sudo do-release-upgrade
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.

Můžete mi někdo poradit, prosím?
Děkuju
« Poslední změna: 28 Ledna 2021, 17:48:01 od GdH »

juwa2

  • Závislák
  • ***
  • Příspěvků: 4935
Re:přechod z 16.04 na 18.04 (20.04)
« Odpověď #1 kdy: 28 Ledna 2021, 15:15:00 »
Příprava:
Kód: [Vybrat]
sudo apt-get autoremove
sudo apt-get update && sudo apt-get upgrade
sudo reboot

Po restartu udělej povýšení na 20.04:
Kód: [Vybrat]
sudo do-release-upgrade
Upozornění: V 18.04 ani 20.04 prostředí Unity už není (lze ho ale dodatečně doinstalovat).
Jako výchozí je tam Gnome které se ti asi líbit moc nebude...
Navíc, z tohoto důvodu se po povýšení mohou vyskytnout různé "potíže".

Proto povýšení příliš nedoporučuji, lépe je provést čistou instalaci.

V každém případě si stávající systém nejprve zálohuj (Timeshift, Clonezilla). Ať se v případě nezdaru můžeš "vrátit".
« Poslední změna: 28 Ledna 2021, 15:21:10 od juwa2 »

iguana

  • Aktivní člen
  • *
  • Příspěvků: 142
Re:přechod z 16.04 na 18.04 (20.04)
« Odpověď #2 kdy: 28 Ledna 2021, 16:07:04 »
Díky moc, použil jsem návod, ale výsledek je stále stejný:
robert@robert-MacBookAir:~$ sudo do-release-upgrade
[sudo] password for robert:
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
robert@robert-MacBookAir:~$

Co s tím?

juwa2

  • Závislák
  • ***
  • Příspěvků: 4935
Re:přechod z 16.04 na 18.04 (20.04)
« Odpověď #3 kdy: 28 Ledna 2021, 16:17:27 »
Díky moc, použil jsem návod, ale výsledek je stále stejný:
robert@robert-MacBookAir:~$ sudo do-release-upgrade
[sudo] password for robert:
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
robert@robert-MacBookAir:~$

Co s tím?

Kód: [Vybrat]
sudo apt-get upgrade -f
sudo apt-get dist-upgrade
sudo do-release-upgrade

Pokud to nepůjde ani pak, zkus ještě ze zdrojů SW odebrat všechny repozitáře třetích stran a postup zopakovat.
Jestli to nepomůže, budeš muset udělat čistou instalaci - důvod je nějaká nekompatibilita.

Na druhou stranu můžeš být rád, protože i kdyby se za této situace povýšení náhodou zdařilo, mohlo by to fungovat všelijak.
Já osobně (po špatných zkušenostech) dělám zásadně vždy čistou instalaci se zachováním /home
« Poslední změna: 28 Ledna 2021, 16:47:40 od juwa2 »

iguana

  • Aktivní člen
  • *
  • Příspěvků: 142
Re:přechod z 16.04 na 18.04 (20.04)
« Odpověď #4 kdy: 28 Ledna 2021, 18:50:55 »
Díky moc, pomohlo odstranění třetích zdrojů, mám 18.04. Dokonce i s daty a Unity :))
Chtěl jsem hned přejít na 20.04. Ale program aktualizace mi píše:
Failed to download repository information
W:GPG error: http://archive.canonical.com precise

robert@robert-MacBookAir:~$ sudo apt-get update && sudo apt-get upgrade
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease               
Hit:4 http://archive.ubuntu.com/ubuntu bionic-security InRelease               
Ign:5 http://archive.canonical.com precise InRelease                           
Hit:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease       
Hit:7 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease     
Get:8 http://archive.canonical.com precise Release [8,180 B]           
Get:9 http://archive.canonical.com precise Release.gpg [181 B]
Ign:9 http://archive.canonical.com precise Release.gpg       
Reading package lists... Done 
W: GPG error: http://archive.canonical.com precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5
E: The repository 'http://archive.canonical.com precise Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Třetí zdroje mám vymyzané nebo vypnuté.
Díky moc
« Poslední změna: 28 Ledna 2021, 19:05:40 od iguana »

JirkaZ

  • Moderátor
  • Závislák
  • ***
  • Příspěvků: 1734
  • Dlouholetý uživatel Linuxu a open source obecně.
Re:přechod z 16.04 na 18.04 (20.04)
« Odpověď #5 kdy: 28 Ledna 2021, 19:05:38 »
PPA je vhodné spravovat aplikací zvanou Y PPA manager (https://www.tecmint.com/y-ppa-manager-easily-add-remove-purge-ppas-in-ubuntu/).

Český popis funkcí je třeba na https://www.linux-mint-czech.cz/2015/06/y-ppa-manager/ .
« Poslední změna: 28 Ledna 2021, 19:07:21 od JirkaZ »

juwa2

  • Závislák
  • ***
  • Příspěvků: 4935
Re:přechod z 16.04 na 18.04 (20.04)
« Odpověď #6 kdy: 28 Ledna 2021, 19:57:57 »
U zdrojů sw třetích stran stačí zrušit zatržítka. Po úspěšném upgradu je opět můžeš povolit.
Chybějící pubkey lze doinstalovat, nejsnáze přes zmíněný y-ppa-manager (nebo to trusty repo odebrat).
« Poslední změna: 28 Ledna 2021, 20:00:02 od juwa2 »

iguana

  • Aktivní člen
  • *
  • Příspěvků: 142
Re:přechod z 16.04 na 18.04 (20.04)
« Odpověď #7 kdy: 28 Ledna 2021, 20:22:16 »
Y PPA mi nepomohl, nenašel ty starší zdroje
Ale našel jsem způsob jk odebrat canononical partners zdroj
Při upgradu přes terminál se objevila tato hláška
 sudo apt-get update && sudo apt-get upgrade
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease                 
Hit:2 http://security.ubuntu.com/ubuntu bionic-security InRelease       
Hit:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu bionic-security InRelease
Get:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [10.3 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic-backports/universe i386 Packages [10.3 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic-backports/universe Translation-en [4,588 B]
Get:9 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [9,288 B]
Get:10 http://archive.ubuntu.com/ubuntu bionic-backports/universe DEP-11 48x48 Icons [2,809 B]
Get:11 http://archive.ubuntu.com/ubuntu bionic-backports/universe DEP-11 64x64 Icons [3,943 B]
Get:12 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [10.0 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic-backports/main i386 Packages [10.0 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic-backports/main Translation-en [4,764 B]
Fetched 141 kB in 3s (50.6 kB/s)                                     
Reading package lists... Done
W: Skipping acquire of configured file 'main'/binary-i386/Packages' as repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/binary-amd64/Packages' as repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/i18n/Translation-en' as repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/i18n/Translation-en_US' as repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/dep11/Components-amd64.yml' as repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/dep11/icons-48x48.tar' as repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/dep11/icons-64x64.tar' as repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/cnf/Commands-amd64' as repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/binary-amd64/Packages' as repository 'http://security.ubuntu.com/ubuntu bionic-security InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/binary-i386/Packages' as repository 'http://security.ubuntu.com/ubuntu bionic-security InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/i18n/Translation-en_US' as repository 'http://security.ubuntu.com/ubuntu bionic-security InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/i18n/Translation-en' as repository 'http://security.ubuntu.com/ubuntu bionic-security InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/dep11/Components-amd64.yml' as repository 'http://security.ubuntu.com/ubuntu bionic-security InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/dep11/icons-48x48.tar' as repository 'http://security.ubuntu.com/ubuntu bionic-security InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/dep11/icons-64x64.tar' as repository 'http://security.ubuntu.com/ubuntu bionic-security InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/cnf/Commands-amd64' as repository 'http://security.ubuntu.com/ubuntu bionic-security InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/binary-amd64/Packages' as repository 'http://archive.ubuntu.com/ubuntu bionic-updates InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/binary-i386/Packages' as repository 'http://archive.ubuntu.com/ubuntu bionic-updates InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/i18n/Translation-en' as repository 'http://archive.ubuntu.com/ubuntu bionic-updates InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/i18n/Translation-en_US' as repository 'http://archive.ubuntu.com/ubuntu bionic-updates InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/dep11/Components-amd64.yml' as repository 'http://archive.ubuntu.com/ubuntu bionic-updates InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/dep11/icons-48x48.tar' as repository 'http://archive.ubuntu.com/ubuntu bionic-updates InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/dep11/icons-64x64.tar' as repository 'http://archive.ubuntu.com/ubuntu bionic-updates InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/cnf/Commands-amd64' as repository 'http://archive.ubuntu.com/ubuntu bionic-updates InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/binary-amd64/Packages' as repository 'http://archive.ubuntu.com/ubuntu bionic-backports InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/binary-i386/Packages' as repository 'http://archive.ubuntu.com/ubuntu bionic-backports InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/i18n/Translation-en_US' as repository 'http://archive.ubuntu.com/ubuntu bionic-backports InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/i18n/Translation-en' as repository 'http://archive.ubuntu.com/ubuntu bionic-backports InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/dep11/Components-amd64.yml' as repository 'http://archive.ubuntu.com/ubuntu bionic-backports InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/dep11/icons-48x48.tar' as repository 'http://archive.ubuntu.com/ubuntu bionic-backports InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/dep11/icons-64x64.tar' as repository 'http://archive.ubuntu.com/ubuntu bionic-backports InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main'/cnf/Commands-amd64' as repository 'http://archive.ubuntu.com/ubuntu bionic-backports InRelease' doesn't have the component 'main'' (component misspelt in sources.list?)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  r-cran-boot r-cran-cairodevice r-cran-codetools r-cran-foreach r-cran-gam
  r-cran-iterators r-cran-rgtk2 r-cran-spatial
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
robert@robert-MacBookAir:~$ sudo do-release-upgrade
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
robert@robert-MacBookAir:~$




Vůbec nevím, co s tím ...
Ve zdrojí už partners canonocal nemám. Zkoušel jsem přidat aktuální verzi deb http://archive.ubuntu.com/ubuntu bionic main', ale neúspěšně, viz obrázek
A staré klíče mi nedou odstranit. Kliknutí na remove nefunguje ...
« Poslední změna: 28 Ledna 2021, 20:50:43 od iguana »

juwa2

  • Závislák
  • ***
  • Příspěvků: 4935
Re:přechod z 16.04 na 18.04 (20.04)
« Odpověď #8 kdy: 28 Ledna 2021, 21:38:25 »
Klíče neřeš, navíc z toho GUI nejdou odstranit (musí se to udělat z terminálu), je to bug...
Zdroje co mají http (nikoli https) jsou nezabezpečené = zastaralé. Je třeba je odebrat (ručně) ze sources.list

Ale mám dojem, že se v tom začínáš hezky "motat", co takhle raději čistá instalace?  ;)

iguana

  • Aktivní člen
  • *
  • Příspěvků: 142
Re:přechod z 16.04 na 18.04 (20.04)
« Odpověď #9 kdy: 28 Ledna 2021, 22:04:20 »
Mne se do čisté instalace nechce, když ta na 18.04 dopadla tak pěkně :)))
Ty zdroje jsou přeci ted vypnuté, ne? Chtěl jsem je zase obnovit po přechodu na 20.04.

Spíše by mne zajímalo, co mi brání v přechodu na vyšší verzi?

Ventero

  • Závislák
  • ***
  • Příspěvků: 3538
Re:přechod z 16.04 na 18.04 (20.04)
« Odpověď #10 kdy: 28 Ledna 2021, 23:16:44 »
Moc to nechapu - pro me je cista instalace nejjednodussi reseni ...
.. a nejcistsi ..
Zvuky jsou mantrami a myšlenky moudrostí, prostě proto, že se mohou objevovat ...

juwa2

  • Závislák
  • ***
  • Příspěvků: 4935
Re:přechod z 16.04 na 18.04 (20.04)
« Odpověď #11 kdy: 29 Ledna 2021, 00:13:50 »
Mne se do čisté instalace nechce, když ta na 18.04 dopadla tak pěkně :)))
Ty zdroje jsou přeci ted vypnuté, ne? Chtěl jsem je zase obnovit po přechodu na 20.04.

Spíše by mne zajímalo, co mi brání v přechodu na vyšší verzi?

V přechodu brání to, že máš v systému zdroje SW které jsou nekompatibilní s novou verzí ubu.
A vypnuté nejsou - podívej se do /etc/apt/sources.list a /etc/apt/sources.list.d/

A vsadím se, že ta 16.04 by taky jenom "povyšovaná". Potom se nediv, že se ti tam ty staré zdroje nahromadily.
Zkus je resetovat do defaultu.

JirkaZ

  • Moderátor
  • Závislák
  • ***
  • Příspěvků: 1734
  • Dlouholetý uživatel Linuxu a open source obecně.
Re:přechod z 16.04 na 18.04 (20.04)
« Odpověď #12 kdy: 29 Ledna 2021, 09:15:49 »
Já bych prostě udělal čistou instalaci se zachováním /home (dělám to tak léta letoucí, vlastně snad odsampoč s Linuxem).

Před pár dny jsem zkusil povýšení z 14.04 na 20.04 (přestože vím, že ob víc než jednu verzi to nejde - prostě čistě pokusně na nepoužívaném systému) a samozřejmě to skončilo ve slepé uličce díky nekompatibilitě nějakých základních knihoven.

Nová instalace se zachovaným /home je snadná a programy (aplikace) lze doplňovat postupně, jak je potřeba podle jejich důležitosti. No a pokud použiju Aptik a případně Y PPA manager, mělo by to být ještě snadnější...

juwa2

  • Závislák
  • ***
  • Příspěvků: 4935
Re:přechod z 16.04 na 18.04 (20.04)
« Odpověď #13 kdy: 29 Ledna 2021, 17:24:53 »
Já bych prostě udělal čistou instalaci se zachováním /home (dělám to tak léta letoucí, vlastně snad odsampoč s Linuxem).

Před pár dny jsem zkusil povýšení z 14.04 na 20.04 (přestože vím, že ob víc než jednu verzi to nejde - prostě čistě pokusně na nepoužívaném systému) a samozřejmě to skončilo ve slepé uličce díky nekompatibilitě nějakých základních knihoven.

Nová instalace se zachovaným /home je snadná a programy (aplikace) lze doplňovat postupně, jak je potřeba podle jejich důležitosti. No a pokud použiju Aptik a případně Y PPA manager, mělo by to být ještě snadnější...

Přesně tak. ;) Pouze doplním:
Kdo má /  a /home  "dohromady", může si to rozdělit i dodatečně.

Všechny nainstalované aplikace zálohovat Aptikem (stačí položky Repos a Packges) a pak je v novém systému (po instalaci Aptiku) obnovit (nainstalovat). Doporučuji ne vše naráz, ale po větších 4-5 skupinách (např. dle abecedy).
Výrazně to celý proces urychlí.
Zálohu lze uložit např. do /home (který bude zachován) nebo na ext. disk. Záloha je malá (pár txt souborů).

Poznámka: Nové verze Aptiku jsou placené, nicméně poslední free verze stále funguje. K záloze a obnově je nutno použít tu samou verzi. Je třeba nainstalovat (důrazně doporučuji použít gdebi - pořeší závislosti) tyto dva balíčky:
https://github.com/teejee2008/aptik/releases/download/v18.8/aptik-v18.8-amd64.deb
https://github.com/teejee2008/aptik-gtk/releases/download/v18.8/aptik-gtk-v18.8-amd64.deb

« Poslední změna: 30 Ledna 2021, 00:09:47 od juwa2 »

 

Provoz zaštiťuje spolek OpenAlt.