Subject: [alpine-devel] Failures installing edge-musl on top of edge-uclibc

From: Sam Dodrill <[email-masked]>
Date: Sat, 16 Nov 2013 22:37:16 -0800

Hi all,

I was trying to install edge-musl on a test node today and I have found
that I cannot get the apk upgrade command to complete.

```
localhost:~# apk upgrade --allow-untrusted -fUal
fetch http://nl.alpinelinux.org/alpine/edge-musl/main/x86_64/APKINDEX.tar.gz
Upgrading critical system libraries and apk-tools:
(1/2) Installing musl (0.9.14-r6)
(2/2) Downgrading apk-tools (2.4.0-r4 -> 2.4.0-r2)
Executing busybox-1.21.1-r0.trigger
Executing uclibc-utils-0.9.33.2-r26.trigger
Continuing the upgrade transaction with new apk-tools:
Error relocating /lib/libcrypto.so.1.0.0: __ctype_b: symbol not found
Error relocating /lib/libcrypto.so.1.0.0: __ctype_tolower: symbol not found
```

Any ideas?

Thanks much,

Sam Dodrill
mailto:[email-masked]

---

From: Timo Teras <[email-masked]>
Date: Sun, 17 Nov 2013 09:50:15 +0200

On Sat, 16 Nov 2013 22:37:16 -0800
Sam Dodrill <[email-masked]> wrote:

> I was trying to install edge-musl on a test node today and I have
> found that I cannot get the apk upgrade command to complete.
> ```
> fetch
> http://nl.alpinelinux.org/alpine/edge-musl/main/x86_64/APKINDEX.tar.gz
> Upgrading critical system libraries and apk-tools: (1/2) Installing
> musl (0.9.14-r6) (2/2) Downgrading apk-tools (2.4.0-r4 -> 2.4.0-r2)
> Error relocating /lib/libcrypto.so.1.0.0: __ctype_tolower: symbol not
> found ```
> 
> Any ideas?

We still have not thought about the upgrade path. The builds are binary
incompatible due to c-library differences, so this is more or less
expected.

Seems the problem is that apk tries to upgrade only minimum set of
libraries during the initial upgrade cycle. So it does not switch over
to the right build of openssl causing the self-exec to fail.

Try with --no-self-upgrade, or using apk-tools-static (apk.static).

- Timo

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---