Subject: Re: [vserver] one-liner /etc/apt/sources.list in guest?
From: "Jeffrey 'jf' Lim" <jfs.world@gmail.com>
Date: Tue, 27 Jan 2009 16:33:14 +0800

On Tue, Jan 27, 2009 at 3:53 PM, Corey Wright <undefined@pobox.com> wrote:
> On Tue, 27 Jan 2009 13:13:25 +0800
> "Jeffrey 'jf' Lim" <jfs.world@gmail.com> wrote:
>
>> Now for another question (now that I've discovered this):
>> what's the difference in purpose between these 2 locations -
>> /usr/local/lib/util-vserver/distributions, and
>> /usr/local/etc/vserver/.distributions ?
>
> for this, it appears the great flower page (literally, google "the great
> flower page" and it should be the first hit) has what you want (ie
> "/etc/vservers/.distributions/<dist>/apt").  i learn something every day.
> let me know if it works for you.
>

thanks, Corey. I'll take a look at it later.

Another related question: now that I've set my sources.list right, I
get some problems (I reckon these aren't critical, but...) when I do
an 'apt-get upgrade' in the guest.

For eg.:

---
(Reading database ... 8025 files and directories currently installed.)
Preparing to replace base-files 4.0.1ubuntu5 (using
.../base-files_4.0.1ubuntu5.8.04.4_amd64.deb) ...
Unpacking replacement base-files ...
Setting up base-files (4.0.1ubuntu5.8.04.4) ...
Installing new version of config file /etc/issue ...
Installing new version of config file /etc/issue.net ...
Installing new version of config file /etc/lsb-release ...
find: /var/cache/fontconfig: No such file or directory
find: /var/cache/fonts: No such file or directory
find: /var/cache/anthy: No such file or directory
find: /var/lib/gconf: No such file or directory
find: /var/lib/defoma: No such file or directory
find: /var/log/installer: No such file or directory
find: /initrd.img: No such file or directory
find: /vmlinuz: No such file or directory
find: /cdrom: No such file or directory
find: /media/cdrom: No such file or directory
find: /usr/share/fonts: No such file or directory
find: /var/lib/anthy: No such file or directory
find: /var/lib/defoma: No such file or directory
find: /lib/modules: No such file or directory
--

And

--
Setting up procps (1:3.2.7-5ubuntu3) ...
 * Setting kernel variables...
error: "Operation not permitted" setting key "kernel.printk"
error: "Operation not permitted" setting key "kernel.maps_protect"
error: "Operation not permitted" setting key "fs.inotify.max_user_watches"
error: "vm.mmap_min_addr" is an unknown key
error: "Operation not permitted" setting key "net.ipv4.conf.default.rp_filter"
error: "Operation not permitted" setting key "net.ipv4.conf.all.rp_filter"
   ...fail!
--

While I reckon that these aren't critical errors, is there some sort
of "recommended way" for upgrading the files in a guest?

thanks,
-jf