以下の内容はhttps://kinneko.hatenadiary.org/entry/20131122/p1より取得しました。


armhfなUbuntuServerを、preciseからquantal->raring->saucyへアップデートする

よんどころない事情で、せっかく作って安定してた12.04環境をアップデートする必要が出てきた。
しょうがないのでやってみる。

# apt-get install update-manager-core

# vi /etc/update-manager/release-upgrades
[DEFAULT]
Prompt=lts
->
Prompt=normal

# do-release-upgrade -d
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [198 B]
Get:2 Upgrade tool [1196 kB]
Fetched 1197 kB in 6s (181 kB/s)
authenticate 'quantal.tar.gz' against 'quantal.tar.gz.gpg'
extracting 'quantal.tar.gz'

Reading cache

Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done
Hit http://ports.ubuntu.com precise Release.gpg
(snip)
File "/tmp/update-manager-KmLhzK/DistUpgrade/DistUpgradeView.py",
line 384, in confirmChanges
downloadSizeStr = downloadSizeStr.decode(ENCODING)

TypeError: decode() argument 1 must be string, not None

失敗...
ひどす...


sources.listは、quantalに書き換わっている。
もう戻れない...
もともとサポートターゲットでもないし、手動でやるか。

root@ZGP:~# apt-get upgrade
(snip)
273 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
Need to get 66.1 MB of archives.
After this operation, 3799 kB of additional disk space will be used.
(snip)
root@ZGP:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
  fbi gcc-4.6-base ghostscript libgcc1 libgl1-mesa-dri libgl1-mesa-glx
  libglapi-mesa libgs9 libgs9-common libplymouth2 libstdc++6 libtiff4
  lsb-release plymouth procps python-apt update-manager-core xz-utils
0 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
root@ZGP:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.10
Release:        12.10
Codename:       quantal

上がってしまつたよ。
残りも処理。

root@ZGP:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
  xz-lzma
The following NEW packages will be installed:
  gcc-4.7-base libapt-inst1.5 libdrm-nouveau2 libjbig0 libkms1 libprocps0
  libtiff5 libtxc-dxtn-s2tc0 python3 python3-apt python3-distupgrade
  python3-minimal python3-update-manager python3.2 python3.2-minimal
  ubuntu-release-upgrader-core
The following packages will be upgraded:
  fbi gcc-4.6-base ghostscript libgcc1 libgl1-mesa-dri libgl1-mesa-glx
  libglapi-mesa libgs9 libgs9-common libplymouth2 libstdc++6 libtiff4
  lsb-release plymouth procps python-apt update-manager-core xz-utils
18 upgraded, 16 newly installed, 1 to remove and 0 not upgraded.
Need to get 14.0 MB of archives.
After this operation, 14.2 MB of additional disk space will be used.
Do you want to continue [Y/n]?
(snip)
root@ZGP:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

kernel以外は完全に上がった。


さらにraring上げる。

root@ZGP:~# do-release-upgrade -d
(snip)
Do you want to start the upgrade?


27 new packages are going to be installed. 240 packages are going to
be upgraded.

You have to download a total of 79.0 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.

 Continue [yN]  Details [d]y
 (snip)

おお、確認でてきたってことは、さっきよりうまくいっているかな?
1分で終わるわけないじゃん...

There are services installed on your system which need to be restarted when
certain libraries, such as libpam, libc, and libssl, are upgraded. Since these
restarts may cause interruptions of service for the system, you will normally
be prompted on each upgrade for the list of services you wish to restart.  You
can choose this option to avoid being prompted; instead, all necessary restarts
will be done for you automatically so you can avoid being asked questions on
each library upgrade.

Restart services during package upgrades without asking?

なんと答えればいいのだ?

Restart services during package upgrades without asking? y

Stopping some services possibly affected by the upgrade (will be restarted late:

あちゃ、ミスったかな?
あとでやるか。
ネットワーク切れるかもだしな。

Remove obsolete packages?


17 packages are going to be removed.

 Continue [yN]  Details [d]y
Removing cmap-adobe-japan1 ...
Removing libapt-inst1.4:armhf ...
Removing libbind9-80 ...
Removing libisccfg82 ...
Removing libdns81 ...
Removing libdrm-nouveau1a:armhf ...
Removing libisccc80 ...
Removing libisc83 ...
Removing libjasper1:armhf ...
Removing libkms1:armhf ...
Removing liblcms2-2:armhf ...
Removing liblwres80 ...
Removing libtiff4:armhf ...
Removing libudev0:armhf ...
Removing python-gnupginterface ...
Removing python3.2 ...
Removing python3.2-minimal ...

消えた。

System upgrade is complete.

Restart required

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

Continue [yN]y
The system is going down for reboot NOW!
(snip)

再起動いるってさ。

root@ZGP:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 13.04
Release:        13.04
Codename:       raring
root@ZGP:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@ZGP:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


さらにもう一回。saucyに。

root@ZGP:~# do-release-upgrade -d
(snip)
Do you want to start the upgrade?


1 package is going to be removed. 74 new packages are going to be
installed. 251 packages are going to be upgraded.

You have to download a total of 118 M. This download will take about
8 minutes with your connection.

Installing the upgrade can take several hours. Once the download has
finished, the process cannot be canceled.

 Continue [yN]  Details [d]y
(snip)
Remove obsolete packages?


4 packages are going to be removed.

 Continue [yN]  Details [d]y
Removing gcc-4.7-base:armhf ...
Removing libdns95 ...
Removing libisc92 ...
Removing libllvm3.2:armhf ...
(snip)
 System upgrade is complete.

Restart required

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

Continue [yN] y
root@ZGP:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

root@ZGP:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

root@ZGP:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 13.10
Release:        13.10
Codename:       saucy

rcSの改変はここで上書きされてしまったので、あとで時計ナシ設定を入れる必要がある。
上書きされた設定類は、*.dpkg-oldとして残されていた。
コンソールの設定は上書きされていなかったので、そのまま問題なし。
kernelとinitramfsとubootは古いのをそのまま使っている。
userlandのファンクションでkernelの機能に依存するものってないのかな?


全工程数時間ってとこ。
kernelがないのと、パッケージ数がまだ少ない環境なので、結構時間かけずにできたかも。
もっと、パッケージ少ないうちにやればよかった...
というか、実験なのでarmelでやれば妙なバグ踏まなくてもよかったのに。
そして、saucyまで来ても、バグは解消されていないという... orz




以上の内容はhttps://kinneko.hatenadiary.org/entry/20131122/p1より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14