UbuntuでBazaarをアップデート


Ubuntuが入ってるVPSを使い始めて数ヶ月だけど、まともに使い始めたのはここ1ヶ月。少しずつ慣れてきた。

最近、VCSはBazaarを使ってるんだけど、Ubuntu 9.04に入ってるのはbzr 1.xとかなり古いバージョン。せっかくなので新しいバージョンを使いたいのでアップデートしてみた。基本的にはこのページの通り。

■手順

/etc/apt/sources.list に以下の2行を追加。

deb http://ppa.launchpad.net/gwibber-daily/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/gwibber-daily/ppa/ubuntu jaunty main

GPGキーのインポート

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8C6C1EFD

当然ながら8C6C1EFDの部分はバージョンによって異なる。

あとは、apt-get updateとか普通の手順でbzrインストールする。

自分用にログ。

kazu@host:~$ sudo apt-get update
Hit http://security.ubuntu.com jaunty-security Release.gpg
Ign http://security.ubuntu.com jaunty-security/main Translation-en_US
Hit http://us.archive.ubuntu.com jaunty Release.gpg
Ign http://us.archive.ubuntu.com jaunty/main Translation-en_US
Get:1 http://ppa.launchpad.net jaunty Release.gpg [316B]
Ign http://ppa.launchpad.net jaunty/main Translation-en_US
Ign http://security.ubuntu.com jaunty-security/restricted Translation-en_US
Ign http://security.ubuntu.com jaunty-security/universe Translation-en_US
Ign http://security.ubuntu.com jaunty-security/multiverse Translation-en_US
Hit http://security.ubuntu.com jaunty-security Release
Ign http://us.archive.ubuntu.com jaunty/restricted Translation-en_US
Ign http://us.archive.ubuntu.com jaunty/universe Translation-en_US
Ign http://us.archive.ubuntu.com jaunty/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com jaunty-updates Release.gpg
Ign http://us.archive.ubuntu.com jaunty-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com jaunty-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com jaunty-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com jaunty-updates/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com jaunty Release
Get:2 http://ppa.launchpad.net jaunty Release [74.7kB]
Ign http://ppa.launchpad.net jaunty Release
Hit http://us.archive.ubuntu.com jaunty-updates Release
Hit http://security.ubuntu.com jaunty-security/main Packages
Hit http://ppa.launchpad.net jaunty/main Packages
Hit http://us.archive.ubuntu.com jaunty/main Packages
Hit http://us.archive.ubuntu.com jaunty/restricted Packages
Hit http://us.archive.ubuntu.com jaunty/main Sources
Hit http://us.archive.ubuntu.com jaunty/restricted Sources
Hit http://us.archive.ubuntu.com jaunty/universe Packages
Hit http://security.ubuntu.com jaunty-security/restricted Packages
Hit http://security.ubuntu.com jaunty-security/main Sources
Hit http://security.ubuntu.com jaunty-security/restricted Sources
Hit http://security.ubuntu.com jaunty-security/universe Packages
Hit http://ppa.launchpad.net jaunty/main Sources
Hit http://us.archive.ubuntu.com jaunty/universe Sources
Hit http://us.archive.ubuntu.com jaunty/multiverse Packages
Hit http://us.archive.ubuntu.com jaunty/multiverse Sources
Hit http://us.archive.ubuntu.com jaunty-updates/main Packages
Hit http://us.archive.ubuntu.com jaunty-updates/restricted Packages
Hit http://us.archive.ubuntu.com jaunty-updates/main Sources
Hit http://us.archive.ubuntu.com jaunty-updates/restricted Sources
Hit http://us.archive.ubuntu.com jaunty-updates/universe Packages
Hit http://security.ubuntu.com jaunty-security/universe Sources
Hit http://security.ubuntu.com jaunty-security/multiverse Packages
Hit http://security.ubuntu.com jaunty-security/multiverse Sources
Hit http://us.archive.ubuntu.com jaunty-updates/universe Sources
Hit http://us.archive.ubuntu.com jaunty-updates/multiverse Packages
Hit http://us.archive.ubuntu.com jaunty-updates/multiverse Sources
Fetched 317B in 1s (295B/s)
Reading package lists... Done
W: GPG error: http://ppa.launchpad.net jaunty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D702BF6B8C6C1EFD
W: You may want to run apt-get update to correct these problems
kazu@host:~$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8C6C1EFD
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys 8C6C1EFD
gpg: requesting key 8C6C1EFD from hkp server keyserver.ubuntu.com
gpg: key 8C6C1EFD: public key "Launchpad PPA for Bazaar Developers" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
kazu@host:~$ sudo apt-get update
Get:1 http://ppa.launchpad.net jaunty Release.gpg [316B]
Ign http://ppa.launchpad.net jaunty/main Translation-en_US
Hit http://security.ubuntu.com jaunty-security Release.gpg
Ign http://security.ubuntu.com jaunty-security/main Translation-en_US
Get:2 http://ppa.launchpad.net jaunty Release [74.7kB]
Ign http://security.ubuntu.com jaunty-security/restricted Translation-en_US
Ign http://security.ubuntu.com jaunty-security/universe Translation-en_US
Ign http://security.ubuntu.com jaunty-security/multiverse Translation-en_US
Hit http://ppa.launchpad.net jaunty/main Packages
Hit http://us.archive.ubuntu.com jaunty Release.gpg
Ign http://us.archive.ubuntu.com jaunty/main Translation-en_US
Ign http://us.archive.ubuntu.com jaunty/restricted Translation-en_US
Hit http://ppa.launchpad.net jaunty/main Sources
Ign http://us.archive.ubuntu.com jaunty/universe Translation-en_US
Ign http://us.archive.ubuntu.com jaunty/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com jaunty-updates Release.gpg
Ign http://us.archive.ubuntu.com jaunty-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com jaunty-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com jaunty-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com jaunty-updates/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com jaunty Release
Hit http://us.archive.ubuntu.com jaunty-updates Release
Hit http://us.archive.ubuntu.com jaunty/main Packages
Hit http://us.archive.ubuntu.com jaunty/restricted Packages
Hit http://us.archive.ubuntu.com jaunty/main Sources
Hit http://us.archive.ubuntu.com jaunty/restricted Sources
Hit http://us.archive.ubuntu.com jaunty/universe Packages
Hit http://us.archive.ubuntu.com jaunty/universe Sources
Hit http://us.archive.ubuntu.com jaunty/multiverse Packages
Hit http://us.archive.ubuntu.com jaunty/multiverse Sources
Hit http://security.ubuntu.com jaunty-security Release
Hit http://us.archive.ubuntu.com jaunty-updates/main Packages
Hit http://us.archive.ubuntu.com jaunty-updates/restricted Packages
Hit http://us.archive.ubuntu.com jaunty-updates/main Sources
Hit http://us.archive.ubuntu.com jaunty-updates/restricted Sources
Hit http://security.ubuntu.com jaunty-security/main Packages
Hit http://us.archive.ubuntu.com jaunty-updates/universe Packages
Hit http://us.archive.ubuntu.com jaunty-updates/universe Sources
Hit http://us.archive.ubuntu.com jaunty-updates/multiverse Packages
Hit http://us.archive.ubuntu.com jaunty-updates/multiverse Sources
Hit http://security.ubuntu.com jaunty-security/restricted Packages
Hit http://security.ubuntu.com jaunty-security/main Sources
Hit http://security.ubuntu.com jaunty-security/restricted Sources
Hit http://security.ubuntu.com jaunty-security/universe Packages
Hit http://security.ubuntu.com jaunty-security/universe Sources
Hit http://security.ubuntu.com jaunty-security/multiverse Packages
Hit http://security.ubuntu.com jaunty-security/multiverse Sources
Fetched 317B in 3s (103B/s)
Reading package lists... Done
kazu@host:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
bind9-host bzr bzrtools dnsutils landscape-common libbind9-40 libdns45 libisc45 libisccc40
libisccfg40 liblwres40 linux-image-server linux-restricted-modules-server linux-server
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
kazu@host:~$ apt-get install bzr
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
kazu@host:~$ sudo apt-get install bzr
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
bzrtools python-configobj
Suggested packages:
bzr-gtk bzr-svn xdg-utils python-kerberos bzr-doc librsvg2-bin graphviz
The following NEW packages will be installed:
python-configobj
The following packages will be upgraded:
bzr bzrtools
2 upgraded, 1 newly installed, 0 to remove and 12 not upgraded.
Need to get 3608kB of archives.
After this operation, 102kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com jaunty/universe python-configobj 4.5.3-1 [258kB]
Get:2 http://ppa.launchpad.net jaunty/main bzrtools 2.2.0-2~bazaar1~jaunty1 [65.2kB]
Get:3 http://ppa.launchpad.net jaunty/main bzr 2.2.1-0~bazaar1~jaunty1 [3285kB]
Fetched 3608kB in 3s (1195kB/s)
(Reading database ... 29910 files and directories currently installed.)
Preparing to replace bzrtools 1.13.0-1 (using .../bzrtools_2.2.0-2~bazaar1~jaunty1_all.deb) ...
Unpacking replacement bzrtools ...
Selecting previously deselected package python-configobj.
Unpacking python-configobj (from .../python-configobj_4.5.3-1_all.deb) ...
Preparing to replace bzr 1.13.1-1 (using .../bzr_2.2.1-0~bazaar1~jaunty1_amd64.deb) ...
Unpacking replacement bzr ...
Processing triggers for man-db ...
Setting up python-configobj (4.5.3-1) ...
Setting up bzr (2.2.1-0~bazaar1~jaunty1) ...
Installing new version of config file /etc/bash_completion.d/bzr ...
Setting up bzrtools (2.2.0-2~bazaar1~jaunty1) ...
Processing triggers for python-support ...

aa

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です