installation issues with alpine-xen on USB

11 posts / 0 new
Last post
#1 Fri, 2013-06-21 14:56
ScrumpyJack
  • ScrumpyJack's picture
  • Offline
  • Last seen: 6 months 3 weeks ago
  • Joined: 2013-06-20

apologies for the generic topic, but i'm seeing a couple of errors.

When i initially run alpine-setup all goes swimmingly, and lbu commit seems to create the cache file on my USB

I reboot and my hostname, proxy and other things setup by setup-alpine are there, execpt my keyboard layout (feels us instead of uk)

So i run setup-keymap
ERROR: " unsatisfiable dependances:
world: openssh chrony
Availble keyboard layouts:
/sbin/setup-kwymap: cd line 112: can't cd to /usr/share/bkeymaps.

there is no bkeymaps directory anywhere.

also, when i run apk, i get
WARNING: Ignoring APKINDEX.xxxx.tar.gz: No such file or directory
my repo file only has
/media/usb/apks
http://nl.alpinelinux.org/alpine/v2.6/main

wget http://nl.alpinelinux.org/alpine/v2.6/main is fine.

Fri, 2013-06-21 15:25
clandmeter
  • clandmeter's picture
  • Offline
  • Last seen: 1 month 2 weeks ago
  • Joined: 2011-05-05

Make sure you run apk cache sync after you have installed Alpine. This will pull apk's into your cache directory so they survive a reboot.
I thought this was already solved. Need to check that on our tracker.

Mon, 2013-06-24 09:35 (Reply to #2)
ScrumpyJack
  • ScrumpyJack's picture
  • Offline
  • Last seen: 6 months 3 weeks ago
  • Joined: 2013-06-20

I had run lbu commit. Doesn't that do the same thing as there is a symlink from cache directrory to /etc ?

Mon, 2013-06-24 14:22 (Reply to #3)
clandmeter
  • clandmeter's picture
  • Offline
  • Last seen: 1 month 2 weeks ago
  • Joined: 2011-05-05

lbu commit creates an backup of your current configuration. AFAIK it does not involve apk in any way.
apk cache sync will download packages to /meda/*your storage*/cache

Tue, 2013-08-06 12:35
RomanSzabados
  • RomanSzabados's picture
  • Offline
  • Last seen: 4 years 7 months ago
  • Joined: 2013-08-04

I have a similar issue, sshd not running after a reboot and when trying to apk add, i get the message ...unsatisfiable dependances:
world: openssh chrony...

It seems that the apk-cache is completely ignored. /etc/apk/cache is a link to /media/usb/cache and there are all apk files inside. How to tell apk to use that cache? The only remedy i have found is to uncomment the internet repository, apk update and apk add ssh for instance... Then it will install all SW which was there befor the reboot (openssh, mc, nano, ...)

##################### EDIT 2013/08/04 23:45
I have found out that after every reboot i need to issue the commands
apk cache sync && apk add

This installs all my packages from the pre-reboot stage. However, i think there has to be a better way. Any suggestions? Wiki didn't help.
What am i doing wrong?
Thank you.

Wed, 2013-08-14 11:30 (Reply to #5)
clandmeter
  • clandmeter's picture
  • Offline
  • Last seen: 1 month 2 weeks ago
  • Joined: 2011-05-05

Are you sure your cache directory is on a persistent disk (not in memory)?

Init will search for your ovl (created by lbu) and it should have a link where your cache is located. apk will use this automatically to setup your system on boot.

PS Sometimes (my personal experience) setup-alpine will not cache them by default, so i run apk cache sync always manually after I setup-alpine.

Wed, 2013-08-14 14:56 (Reply to #6)
ncopa
  • ncopa's picture
  • Offline
  • Last seen: 2 years 1 month ago
  • Joined: 2011-05-12

I think running 'apk cache sync' might be needed after an 'apk update' too.

Tue, 2014-02-04 18:00
timo
  • timo's picture
  • Offline
  • Last seen: 4 years 1 month ago
  • Joined: 2014-02-04

Dear alpinelinux forum,

I'm 40 minutes old here.

I'm trying to learn alpinelinux by installing and running it in VirtualBox. My goal is to eventually run it from RAM as a Xen host. So, I installed alpine-xen-2.7.3-x86_64.iso version and stumbled on the same issues as the OP. The other issues are one time annoyances but keymap issue is the one which I wish to solve.

This is what I do (out of memory):

* boot with CD
* setup-bootable /media/cdrom /dev/sda1
* poweroff
* eject CD
* boot
* remount sda1 rw
* setup-alpine (keymap fi; save configs to sda1)
* lbu ci
* reboot

Everything else seems to work but no keymap. The same procedure works with Standard release.

What should I try to solve this issue?

- Timo

Wed, 2014-02-05 22:48
timo
  • timo's picture
  • Offline
  • Last seen: 4 years 1 month ago
  • Joined: 2014-02-04

I think I solved the keymap issue. I think the OpenRC is guessing system type wrong and 'keyword' line in /etc/init.d/keymaps prevents the keymaps service running. I solved it by putting

rc_sys="xen0"

into /etc/rc.conf.

- Timo

Tue, 2014-05-27 08:23
mmalam
  • mmalam's picture
  • Offline
  • Last seen: 3 years 10 months ago
  • Joined: 2014-05-27

HI every one,

I am trying to setup alpine linux for the first time. when i write setup-alpine and configure various options, after reboot, all the settings are gone. I tried executing lbu ci, but no vail.

vpnc:~# setup-alpine
Available keyboard layouts:
be croat es hu la pc se sv wangbe
bg cz et il lt pl sg tr
br de fi is mk pt sk ua
by dk fr it nl ro slovene uk
cf dvorak gr jp no ru sr us
Select keyboard layout [none]:
Enter system hostname (short form, e.g. 'foo') [vpnc]:
Available interfaces are: eth0.
Enter '?' for help on bridges, bonding and vlans.
Which one do you want to initialize? (or '?' or 'done') [eth0]
Ip address for eth0? (or 'dhcp', 'none', '?') [172.20.16.77]
Netmask? [255.255.0.0] 255.255.255.128
Gateway? (or 'none') [172.20.16.1]
Configuration for eth0:
type=static
address=172.20.16.77
netmask=255.255.255.128
gateway=172.20.16.1
Do you want to do any manual network configuration? [no]
* WARNING: networking has already been started
DNS domain name? (e.g 'bar.com') []
DNS nameserver(s)? []
Changing password for root
New password:
Retype password:
Password for root changed by root
Which timezone are you in? ('?' for list) [UTC0]
* rc-update: networking already installed in runlevel `boot'; skipping
* rc-update: urandom already installed in runlevel `boot'; skipping
* rc-update: acpid already installed in runlevel `default'; skipping
* rc-update: cron already installed in runlevel `default'; skipping
* WARNING: you are stopping a boot service
* WARNING: you are stopping a boot service
* Stopping sshd ... [ ok ]
* Stopping busybox cron ... [ ok ]
* Stopping chronyd ... [ ok ]
* Stopping busybox acpid ... [ ok ]
* Starting busybox acpid ... [ ok ]
* Starting chronyd ... [ ok ]
* Starting busybox cron ... [ ok ]
* Starting sshd ... [ ok ]
HTTP/FTP proxy URL? (e.g. 'http://proxy:8080', or 'none') [none]

Available mirrors:
1) nl.alpinelinux.org
2) dl-2.alpinelinux.org
3) dl-3.alpinelinux.org
4) dl-4.alpinelinux.org
5) dl-5.alpinelinux.org
6) distrib-coffee.ipsl.jussieu.fr
7) mirror.yandex.ru
8) mirrors.gigenet.com
9) repos.lax-noc.com
10) mirror1.hs-esslingen.de
11) mirror.bpiotrowski.pl

r) Add random from the above list
f) Detect and add fastest mirror from above list
e) Edit /etc/apk/repositores with text editor

Enter mirror number (1-11) or URL to add (or r/f/e/done) [f]: 1
Added mirror nl.alpinelinux.org
Updating repository indexes... wget: bad address 'nl.alpinelinux.org'
ERROR: http://nl.alpinelinux.org/alpine/v2.7/main: Bad address
done.
Which SSH server? ('openssh', 'dropbear' or 'none') [openssh]
* rc-update: sshd already installed in runlevel `default'; skipping
* WARNING: sshd has already been started
Which NTP client to run? ('openntpd', 'chrony' or 'none') [chrony]
* rc-update: chronyd already installed in runlevel `default'; skipping
* WARNING: chronyd has already been started
Available disks are:
sda (0.0 GB ATA VBOX HARDDISK )
sr0 (0.3 GB VBOX CD-ROM )
Which disk(s) would you like to use? (or '?' for help or 'none') [none] sda
The following disk is selected:
sda (0.0 GB ATA VBOX HARDDISK )
How would you like to use it? ('sys', 'data' or '?' for help) [?] sys
WARNING: The following disk(s) will be erased:
sda (0.0 GB ATA VBOX HARDDISK )
WARNING: Erase the above disk(s) and continue? [y/N]: y
Initializing partitions on /dev/sda...
sfdisk: Warning: The partition table looks like it was made
for C/H/S=*/131/2 (instead of 0/255/63).
For this listing I'll assume that geometry.

Wed, 2014-06-11 18:50 (Reply to #10)
ScrumpyJack
  • ScrumpyJack's picture
  • Offline
  • Last seen: 6 months 3 weeks ago
  • Joined: 2013-06-20

Quote:

sda (0.0 GB ATA VBOX HARDDISK )

Why is sda showing up as 0.0 GB?
Quote:

Initializing partitions on /dev/sda...
sfdisk: Warning: The partition table looks like it was made
for C/H/S=*/131/2 (instead of 0/255/63).

zero out the sda disk first to remove any partition table
Log in or register to post comments