ディストリビューションのアップグレード
d:id:DGL:20090224:p2を参考にさせてもらってアップグレード.
コマンドとその結果を書き連ねてみる.
~ # zypper lr -e repositories11.0.repo Repositories have been successfully exported to repositories11.0.repo. ~ # wc -l repositories11.0.repo 74 repositories11.0.repo ~ # cp repositories11.0.repo repositories11.1.repo ~ # vim repositories11.1.repo
repositories11.1.repoの中の「11.0」を「11.1」に置換.
続き.
~ # zypper lr # | Alias | Name | Enabled | Refresh --+---------------------------------------------+-----------------------+---------+-------- 1 | darix | darix | Yes | No 2 | openSUSE-11.0-Updates | openSUSE-11.0-Updates | Yes | Yes 3 | repo-non-oss | openSUSE-11.0-Non-Oss | Yes | No 4 | openSUSE-DVD 11.0 | openSUSE-DVD 11.0 | No | No 5 | http://ftp.skynet.be/pub/packman/suse/11.0/ | Packman Repository | Yes | Yes 6 | repo-oss | openSUSE-11.0-Oss | Yes | No 7 | repo-debug | openSUSE-11.0-Debug | No | No ~ # zypper rr 1 Removing repository 'darix' [done] Repository 'darix' has been removed. ~ # zypper lr # | Alias | Name | Enabled | Refresh --+---------------------------------------------+-----------------------+---------+-------- 1 | openSUSE-11.0-Updates | openSUSE-11.0-Updates | Yes | Yes 2 | repo-non-oss | openSUSE-11.0-Non-Oss | Yes | No 3 | openSUSE-DVD 11.0 | openSUSE-DVD 11.0 | No | No 4 | http://ftp.skynet.be/pub/packman/suse/11.0/ | Packman Repository | Yes | Yes 5 | repo-oss | openSUSE-11.0-Oss | Yes | No 6 | repo-debug | openSUSE-11.0-Debug | No | No ~ # zypper rr 1 Removing repository 'openSUSE-11.0-Updates' [done] Repository 'openSUSE-11.0-Updates' has been removed. ~ # zypper rr 1 Removing repository 'openSUSE-11.0-Non-Oss' [done] Repository 'openSUSE-11.0-Non-Oss' has been removed. ~ # zypper rr 1 Removing repository 'openSUSE-DVD 11.0' [done] Repository 'openSUSE-DVD 11.0' has been removed. ~ # zypper rr 1 Removing repository 'Packman Repository' [done] Repository 'Packman Repository' has been removed. ~ # zypper rr 1 Removing repository 'openSUSE-11.0-Oss' [done] Repository 'openSUSE-11.0-Oss' has been removed. ~ # zypper rr 1 Removing repository 'openSUSE-11.0-Debug' [done] Repository 'openSUSE-11.0-Debug' has been removed. ~ # zypper rr 1 Repository 1 not found by alias, number or URI. ~ # zypper lr No repositories defined. Use the 'zypper addrepo' command to add one or more repositories. ~ # ls repositories11.0.repo repositories11.1.repo ~ # zypper ar -r repositories11.1.repo Adding repository 'darix' [done] Repository 'darix' successfully added Enabled: Yes Autorefresh: Yes URI: http://download.opensuse.org/repositories/home:/darix/openSUSE_11.1/ Adding repository 'Packman Repository' [done] Repository 'Packman Repository' successfully added Enabled: Yes Autorefresh: Yes URI: http://ftp.skynet.be/pub/packman/suse/11.1/ Adding repository 'openSUSE-11.1-Updates' [done] Repository 'openSUSE-11.1-Updates' successfully added Enabled: Yes Autorefresh: Yes URI: http://download.opensuse.org/update/11.1/ This is a changeable read-only media (CD/DVD), disabling autorefresh. Adding repository 'openSUSE-DVD 11.1' [done] Repository 'openSUSE-DVD 11.1' successfully added Enabled: No Autorefresh: No URI: cd:///?devices=/dev/sr0 Reading data from 'openSUSE-DVD 11.1' media Failed to mount cd:///?devices=/dev/sr0 on : Mounting media failed Abort, retry, ignore? [A/r/i]: i Failed to mount cd:///?devices=/dev/sr0 on : Mounting media failed Abort, retry, ignore? [A/r/i]: r Failed to mount cd:///?devices=/dev/sr0 on : Mounting media failed Abort, retry, ignore? [A/r/i]: A Error building the cache database: Failed to mount cd:///?devices=/dev/sr0 on : Mounting media failed Problem reading data from 'openSUSE-DVD 11.1' media Please check if your installation media is valid and readable. Adding repository 'openSUSE-11.1-Debug' [done] Repository 'openSUSE-11.1-Debug' successfully added Enabled: No Autorefresh: Yes URI: http://download.opensuse.org/distribution/11.1/repo/debug/ Adding repository 'openSUSE-11.1-Non-Oss' [done] Repository 'openSUSE-11.1-Non-Oss' successfully added Enabled: Yes Autorefresh: Yes URI: http://download.opensuse.org/distribution/11.1/repo/non-oss/ Adding repository 'openSUSE-11.1-Oss' [done] Repository 'openSUSE-11.1-Oss' successfully added Enabled: Yes Autorefresh: Yes URI: http://download.opensuse.org/distribution/11.1/repo/oss/ ~ # zypper lr # | Alias | Name | Enabled | Refresh --+---------------------------------------------+-----------------------+---------+-------- 1 | darix | darix | Yes | Yes 2 | http://ftp.skynet.be/pub/packman/suse/11.1/ | Packman Repository | Yes | Yes 3 | repo-non-oss | openSUSE-11.1-Non-Oss | Yes | Yes 4 | openSUSE-DVD 11.1 | openSUSE-DVD 11.1 | No | No 5 | openSUSE-11.1-Updates | openSUSE-11.1-Updates | Yes | Yes 6 | repo-oss | openSUSE-11.1-Oss | Yes | Yes 7 | repo-debug | openSUSE-11.1-Debug | No | Yes ~ #
# gpg -a pubring.gpg pub 2048R/3D25D3D9 1999-03-06 SuSE Security Team <security@suse.de> pub 1024D/0DFB3188 2005-01-18 Open Enterprise Server <support@novell.com> pub 4096R/A1912208 2006-05-16 Novell Provo Build (Contact security@novell.com) <novell-provo-build@novell.com> pub 1024R/307E3D54 2006-03-21 SuSE Package Signing Key <build@suse.de> pub 1024D/7E2E3B05 2006-05-24 Novell Provo Build (Contact security@novell.com) <novell-provo-build@novell.com> pub 1024D/9C800ACA 2000-10-19 SuSE Package Signing Key <build@suse.de> sub 2048g/8495160C 2000-10-19 [expires: 2010-05-05] pub 1024D/56B4177A 2008-01-22 openSUSE:Factory OBS Project <openSUSE:Factory@build.opensuse.org> pub 2048R/3DBDC284 2008-11-07 openSUSE Project Signing Key <opensuse@opensuse.org> ~ # gpg --list-keys /root/.gnupg/pubring.gpg ------------------------ pub 1024R/307E3D54 2006-03-21 [expires: 2010-05-05] uid SuSE Package Signing Key <build@suse.de> pub 1024D/9C800ACA 2000-10-19 [expires: 2010-05-05] uid SuSE Package Signing Key <build@suse.de> sub 2048g/8495160C 2000-10-19 [expires: 2010-05-05] ~ # gpg -a --import pubring.gpg gpg: key 3D25D3D9: public key "SuSE Security Team <security@suse.de>" imported gpg: key 0DFB3188: public key "Open Enterprise Server <support@novell.com>" imported gpg: key A1912208: public key "Novell Provo Build (Contact security@novell.com) <novell-provo-build@novell.com>" imported gpg: key 307E3D54: "SuSE Package Signing Key <build@suse.de>" not changed gpg: key 7E2E3B05: public key "Novell Provo Build (Contact security@novell.com) <novell-provo-build@novell.com>" imported gpg: key 9C800ACA: "SuSE Package Signing Key <build@suse.de>" not changed gpg: key 56B4177A: public key "openSUSE:Factory OBS Project <openSUSE:Factory@build.opensuse.org>" imported gpg: key 3DBDC284: public key "openSUSE Project Signing Key <opensuse@opensuse.org>" imported gpg: Total number processed: 8 gpg: imported: 6 (RSA: 3) gpg: unchanged: 2 gpg: no ultimately trusted keys found ~ # gpg --list-keys /root/.gnupg/pubring.gpg ------------------------ pub 1024R/307E3D54 2006-03-21 [expires: 2010-05-05] uid SuSE Package Signing Key <build@suse.de> pub 1024D/9C800ACA 2000-10-19 [expires: 2010-05-05] uid SuSE Package Signing Key <build@suse.de> sub 2048g/8495160C 2000-10-19 [expires: 2010-05-05] pub 2048R/3D25D3D9 1999-03-06 uid SuSE Security Team <security@suse.de> pub 1024D/0DFB3188 2005-01-18 uid Open Enterprise Server <support@novell.com> pub 4096R/A1912208 2006-05-16 uid Novell Provo Build (Contact security@novell.com) <novell-provo-build@novell.com> pub 1024D/7E2E3B05 2006-05-24 [expires: 2010-05-24] uid Novell Provo Build (Contact security@novell.com) <novell-provo-build@novell.com> pub 1024D/56B4177A 2008-01-22 [expires: 2010-04-01] uid openSUSE:Factory OBS Project <openSUSE:Factory@build.opensuse.org> pub 2048R/3DBDC284 2008-11-07 [expires: 2010-11-07] uid openSUSE Project Signing Key <opensuse@opensuse.org> ~ #
# zypper ref Downloading repository 'darix' metadata [done] Building repository 'darix' cache [done] Downloading repository 'Packman Repository' metadata [done] Building repository 'Packman Repository' cache [done] content is signed with an unknown key B88B2FD43DBDC284. Continue? [yes/NO]: N Downloading repository 'openSUSE-11.1-Non-Oss' metadata [error] Repository 'openSUSE-11.1-Non-Oss' is invalid. Signature verification failed for content Please check if the URIs defined for this repository are pointing to a valid repository. Skipping repository 'openSUSE-11.1-Non-Oss' because of the above error. Do you want to trust key id B88B2FD43DBDC284, openSUSE Project Signing Key <opensuse@opensuse.org>, fingerprint 22C07BA534178CD02EFE22AAB88B2FD43DBDC284 [yes/NO]: no Downloading repository 'openSUSE-11.1-Updates' metadata [error] Repository 'openSUSE-11.1-Updates' is invalid. Signature verification failed for repomd.xml Please check if the URIs defined for this repository are pointing to a valid repository. Skipping repository 'openSUSE-11.1-Updates' because of the above error. Do you want to trust key id B88B2FD43DBDC284, openSUSE Project Signing Key <opensuse@opensuse.org>, fingerprint 22C07BA534178CD02EFE22AAB88B2FD43DBDC284 [yes/NO]: no Downloading repository 'openSUSE-11.1-Oss' metadata [error] Repository 'openSUSE-11.1-Oss' is invalid. Signature verification failed for content Please check if the URIs defined for this repository are pointing to a valid repository. Skipping repository 'openSUSE-11.1-Oss' because of the above error. Some of the repositories have not been refreshed because of an error.
できない.
原因は,多分rpm --importではなく,gpg --importしてしてしまったからだと思う.
rpm --importをしよう.
~ # http://download.opensuse.org/distribution/11.1/repo/oss/から gpg-pubkey-*.ascをダウンロード ~ # ls gpg-pubkey-0dfb3188-41ed929b.asc gpg-pubkey-56b4177a-47965b33.asc gpg-pubkey-307e3d54-481f30aa.asc gpg-pubkey-7e2e3b05-4816488f.asc gpg-pubkey-3d25d3d9-36e12d04.asc gpg-pubkey-9c800aca-481f343a.asc gpg-pubkey-3dbdc284-49144c3f.asc gpg-pubkey-a1912208-446a0899.asc ~ # rpm --import *.asc
今度はどうか.
~ # gpg --list-keys /root/.gnupg/pubring.gpg ------------------------ pub 1024R/307E3D54 2006-03-21 [expires: 2010-05-05] uid SuSE Package Signing Key <build@suse.de> pub 1024D/9C800ACA 2000-10-19 [expires: 2010-05-05] uid SuSE Package Signing Key <build@suse.de> sub 2048g/8495160C 2000-10-19 [expires: 2010-05-05] pub 2048R/3D25D3D9 1999-03-06 uid SuSE Security Team <security@suse.de> pub 1024D/0DFB3188 2005-01-18 uid Open Enterprise Server <support@novell.com> pub 4096R/A1912208 2006-05-16 uid Novell Provo Build (Contact security@novell.com) <novell-provo-build@novell.com> pub 1024D/7E2E3B05 2006-05-24 [expires: 2010-05-24] uid Novell Provo Build (Contact security@novell.com) <novell-provo-build@novell.com> pub 1024D/56B4177A 2008-01-22 [expires: 2010-04-01] uid openSUSE:Factory OBS Project <openSUSE:Factory@build.opensuse.org> pub 2048R/3DBDC284 2008-11-07 [expires: 2010-11-07] uid openSUSE Project Signing Key <opensuse@opensuse.org> ~ # zypper ref Repository 'darix' is up to date. Repository 'Packman Repository' is up to date. Downloading repository 'openSUSE-11.1-Non-Oss' metadata [done] Building repository 'openSUSE-11.1-Non-Oss' cache [done] Downloading repository 'openSUSE-11.1-Updates' metadata [done] Building repository 'openSUSE-11.1-Updates' cache [done] Downloading repository 'openSUSE-11.1-Oss' metadata [done] Building repository 'openSUSE-11.1-Oss' cache [done] All repositories have been refreshed.
OKっぽい.
まず,zypperをアップグレード
~ # zypper up zypper Reading installed packages... Package 'zypper' is not installed. Nothing to do. ~ # zypper in zypper Reading installed packages... The following packages are going to be upgraded: yast2-ncurses-pkg yast2-ncurses yast2-libyui yast2-pkg-bindings satsolver-tools libzypp zypper The following packages are going to change vendor: yast2-ncurses-pkg yast2-ncurses yast2-libyui yast2-pkg-bindings satsolver-tools libzypp zypper Overall download size: 4.0 M. After the operation, additional 2.5 M will be used. Continue? [YES/no]: y Downloading package yast2-libyui-2.17.14-1.23.i586 (1/7), 194.0 K (636.0 K unpacked) Downloading: yast2-libyui-2.17.14-1.23.i586.rpm [done] Installing: yast2-libyui-2.17.14-1.23 [done] Downloading package satsolver-tools-0.13.6-0.1.1.i586 (2/7), 199.0 K (1.9 M unpacked) Downloading: satsolver-tools-0.13.6-0.1.1.i586.rpm [done] Installing: satsolver-tools-0.13.6-0.1.1 [done] Downloading package yast2-ncurses-2.17.11-1.22.i586 (3/7), 315.0 K (994.0 K unpacked) Downloading: yast2-ncurses-2.17.11-1.22.i586.rpm [done] Installing: yast2-ncurses-2.17.11-1.22 [done] Downloading package libzypp-5.29.6-0.1.1.i586 (4/7), 1.8 M (6.3 M unpacked) Downloading: libzypp-5.29.6-0.1.1.i586.rpm [done] Installing: libzypp-5.29.6-0.1.1 [done] Downloading package yast2-ncurses-pkg-2.17.10-1.24.i586 (5/7), 239.0 K (727.0 K unpacked) Downloading: yast2-ncurses-pkg-2.17.10-1.24.i586.rpm [done] Installing: yast2-ncurses-pkg-2.17.10-1.24 [done] Downloading package yast2-pkg-bindings-2.17.38-0.1.1.i586 (6/7), 530.0 K (1.8 M unpacked) Downloading: yast2-pkg-bindings-2.17.38-0.1.1.i586.rpm [done] Installing: yast2-pkg-bindings-2.17.38-0.1.1 [done] Downloading package zypper-1.0.9-0.1.1.i586 (7/7), 762.0 K (3.6 M unpacked) Downloading: zypper-1.0.9-0.1.1.i586.rpm [done (177.6 K/s)] Installing: zypper-1.0.9-0.1.1 [done]
この後はzypper dupして終了.
対象のパッケージはたくさんあったので,PCは放置.