Questions tagged [alpine-linux]

Alpine Linux is a distribution for small, secure systems, based on busybox and musl

Filter by
Sorted by
Tagged with
20
votes
3answers
5k views

Why does Linux network traffic only go through eth0?

I got two NICs on the server side, eth0 ? 192.168.8.140 and eth1 ? 192.168.8.142. The client sends data to 192.168.8.142, and I expect iftop to show the traffic for eth1, but it does not. All networks ...
18
votes
3answers
27k views

How to solve “tar: invalid magic” error on Linux Alpine

I'm installing sqlite on Alpine Linux. I download sqlite-autoconf-3130000.tar.gz but tar could not open it. I tried this answer but it's not working. tar gives this message: tar: invalid magic tar: ...
11
votes
2answers
7k views

How to search for a file in apk packages

I would like to know, given a binary's name, which package I should install on Alpine Linux. How can I do that?
7
votes
3answers
8k views

“date -d” command fails on Docker Alpine Linux container

I built Alpine Linux in a Docker container with the following Dockerfile: FROM alpine:3.2 RUN apk add --update jq curl && rm -rf /var/cache/apk/* the build run successfully: $ docker build -...
5
votes
1answer
6k views

How to install Microsoft true type font on Alpine Linux?

I would like to create a Docker image using Alpine Linux and LibreOffice to render PDF documents. The LibreOffice source documents are using Microsofts Times New Roman font. How can I install ...
5
votes
1answer
2k views

Return status of Busybox `timeout` command

I'm writing a shell script that's supposed to function on various different distributions, some of which are using busybox and some are not. This script uses the timeout command to figure whether a ...
4
votes
2answers
2k views

crond log level meaning

I cannot find anywhere the log level meaning of crond. I know that 0 is pretty much "log everything" while 8 is "show only important info" thanks to the crond help: / # crond --help BusyBox v1.26.2 (...
3
votes
1answer
4k views

Alpine Linux sometimes DNS is not resolved

Sometimes when I run the commands: sudo apk update && sudo apk upgrade Over Alpine linux fails to update the packages even if connected to internet. But if I do sudo su "echo 'nameserver 8.8....
3
votes
1answer
3k views

GPG Key Generation Fails on Alpine Linux Docker Image

I've performed the following test on a docker alpine linux: ole@MKI:~$ docker run --rm -it alpine /bin/ash / # apk add --update duplicity fetch http://dl-4.alpinelinux.org/alpine/v3.3/main/x86_64/...
3
votes
1answer
2k views

“send-mail: Applet not found” when using mail command on alpine linux

I am using alpine linux running in a docker container to run a webapp. The webapp is supposed to send emails using the mail command from the command line. To support this, I have installed mail as ...
3
votes
2answers
4k views

Install apk tool on Alpine Linux

I'm fiddling with a Docker image, built from a Virtualbox VM using Packer. The image is Alpine Linux 5.3.0, but apk seems to have been removed. How can I reinstall apk, or build it from source? ...
3
votes
1answer
724 views

Alpine: How to forcibly remove a package even if it would break dependencies?

I'm trying to build a super-minimal Linux with Alpine. I don't need linux-firmware as it installs firmware for everything, using up 300+MB of space. This is a stock installation. However I can't ...
3
votes
0answers
2k views

Why is crond failing to run a non-root crontab on alpine linux?

I am having a nasty time running a non-root crontab file on Alpine Linux. I've been through two other cron related posts and I don't have an answer: https://askubuntu.com/questions/23009/why-crontab-...
2
votes
2answers
1k views

How to load Alpine Linux backed up configuration on boot?

I am running Alpine Linux by using the alpine-standard-3.6.2-x86_64.iso image on VMWare Workstation 12.5.5. Following this guide I've been able to configure, among others, root password, keyboard ...
2
votes
2answers
230 views

Alpine version-sort

How to do sort -V in alpine linux? sort: unrecognized option: V BusyBox v1.28.4 (2018-12-06 15:13:21 UTC) multi-call binary. Usage: sort [-nrugMcszbdfiokt] [-o FILE] [-k start[.offset][opts][,end[....
2
votes
1answer
188 views

What Happens to /dev/bus/usb After 1001 Connections

/dev/bus/usb/*/* lists all the usb devices connected on Alpine Linux. For example a phone could be /dev/bus/usb/001/009. When that phone is reconnected it will be /dev/bus/usb/001/010, i.e. it ...
2
votes
1answer
678 views

Unable to start NFS server on Alpine Linux LXC

I'm trying to setup a NFS server on an Alpine Linux LXC running on Proxmox by following the instructions as outlined here, but rpc.statd refuses to start. Here's an excerpt from /var/log/messages ...
2
votes
1answer
630 views

Can't install openjdk8-jre in Docker Alpine Linux image

Alpine 3.7 and 3.9. apk add htop works fine. apk add openjdk8-jre hangs forever. Problem step: (25/36) Installing openjdk8-jre-lib (8.201.08-r0) usr/ (dir) usr/lib/ (dir) usr/lib/jvm/ (dir) usr/lib/...
2
votes
1answer
441 views

How to enable busybox httpd on Alpine linux image

When trying to run busybox httpd in alpine:latest image it ends with error httpd: applet not found How can I install httpd applet into Alpine image?
2
votes
1answer
720 views

Alpine Installation with preseed cfg

I would like to install Alpine using preseed.cfg. However, I cannot find one online. Does alpine support preseed in the first place? If yes, is it possible to edit another preseed and adopt it for ...
2
votes
3answers
519 views

internet in alpine virtualbox in macos

I am installing alpine 3.4.6 os in virtualbox 5. I got following network adaptors, But none of these are allowing to have internet in the virtualbox. I chose to use dhcp while setting up using ...
2
votes
2answers
373 views

How to find out if there is a package with certain command in AlpineLinux?

Specifically I'm trying to find out what pakage I have to install in order to get disown command in docker based on Alpine Linux? Moreover it would be nice if someone could enlight me how in general I ...
2
votes
1answer
3k views

How to connect Alpine Linux to WiFi?

I can't finish setup at all - Alpine seems to expect you to be connected to Ethernet for installing wireless-tools and wpa_supplicant. Is this correct? My issue is: I don't have a monitor where my ...
2
votes
2answers
28 views

logrotate with only size option does not rotate. This is inside Alpine docker container

I have below configuration for access logs cat /etc/logrotate.d/logrotate_nginx.conf /nginx/access/logs/*.log { rotate 2 size 1k missingok compress notifempty copytruncate } There is no ...
2
votes
1answer
180 views

lldb hangs on Alpine Linux

I'm trying to run lldb on Alpine Linux V3.8, but when trying to debug any program, it hangs. I'm using lldb 5.0.1-r0 from the edge/testing repository, which is the only version available currently in ...
2
votes
2answers
3k views

“configure: error: cannot run C compiled programs” when compiling gcc on Alpine Linux

I am trying to build gcc-7.3 on Alpine Linux. When I run make, I get these errors, checking whether the C compiler works... configure: error: in `/build/x86_64-pc-linux-gnu/libgomp': configure: error:...
2
votes
2answers
4k views

Drop packets with PREROUTING in iptables

The filter table is best place to drop packets, agreed. But, out of the box, Docker bypasses INPUT filter rules with PREROUTING to its own FORWARD rules making Docker containers world-accessible. ...
2
votes
1answer
20 views

How to prevent apk from overriding config files

So I've stumbled upon issue after issue every time I upgrade using apk upgrade that apk keeps on adding default config files without my consent, is there any way to have apk either never override/...
2
votes
0answers
94 views

Alpine Linux Hangs During Boot at: “ successfully initialized wpa_supplicant”

I installed Alpine Linux on Intel Compute Stick with 32 Bit Atom Processor. After installation I followed the procedure laid out here for connecting to internet via wlan0 port: Connecting to a ...
2
votes
1answer
117 views

Search for Emacs when using Alpine Linux

I am trying to test some software on Alpine Linux. I need to make some configuration changes so I need Emacs. emacs is the name of the package per Alpine Linux | Emacs. apk add emacs is failing due to ...
2
votes
0answers
373 views

tlp stops working after suspend and resume

I use tlp for power management on my Asus UX305FA, and it improves battery time from ~7h to about ~11h. However, apparently it stops working after I close and open lid, which causes acpi to perform ...
2
votes
1answer
1k views

Networking failed to start on Alpine linux

I keep getting an error when booting Alpine Linux Networking failed to start. I'm using a RPI3 which is connected by an ethernet cable to the box. Here's the /etc/network/interfaces : auto lo iface ...
2
votes
2answers
613 views

How to determine apk package name from search results

On Alpine Linux, given the results of an apk search, how do I determine the package name to give to apk add? For example, suppose I forgot the how to spell "lighttpd", or I forgot exactly what the ...
1
vote
1answer
1k views

alpine-linux command takes forever

I am experimenting with alpine-linux and it is not working as expected. I try and use pip install cryptography but it takes forever and stops at this incomprehensible output Running command /usr/...
1
vote
2answers
3k views

sshpass not functioning in alpine linux

When I install sshpass on alpine linux it will install and the doc will show up if you run it without arguments, but using any argument (valid or invalid) returns sshpass: Failed to run command: No ...
1
vote
1answer
35 views

wget content-disposition ubuntu vs alpine

In Ubuntu, I can use the following wget flag to get a debian, i.e., wget --content-disposition https://packagecloud.io/xxxxx/download.deb dpkg -i ... In Alpine, wget complains that --content-...
1
vote
2answers
3k views

Installing php7 on alpine: missing libcrypto and libssl

I tried to setup a LEMP stack over Alpine GNU/Linux Distribution running on a VM WITHOUT docker. Then I tried to install the php7-mysqli over via community repositories with: sudo apk add php7-...
1
vote
1answer
129 views

/bin/sh: /usr/bin/wkhtmltopdf: not found

I installed /bin/sh: wkhtmltopdf /usr/bin/ directory. However when I try to run the program by entering /usr/bin/wkhtmltopdf to shell I receive an error /bin/sh: /usr/bin/wkhtmltopdf: not found. It ...
1
vote
1answer
444 views

Porting openVPN config to Alpine Linux

I got an openVPN config file from my vpn provider. It worked great on Ubuntu, but on alpine, I got an error. The following lines fail: up /etc/openvpn/update-resolv-conf down /etc/openvpn/update-...
1
vote
2answers
423 views

Alpine 3.8.0: Installing app, getting error: “Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y”

I'm trying to install VirtualBox (the host, not the client) on a clean install of Alpine 3.8.0 Standard. I'm using VirtualBox-5.2.12-122591-Linux_amd64.run, downloaded from http://www.oracle.com/...
1
vote
1answer
534 views

Alpine Linux apk add gives permission error

I'm trying to install packages in a docker image based on alpine. The host system is CentOS system, system-release: CentOS Linux release 7.6.1810 (Core). Here's what I do: # docker run -td alpine:3....
1
vote
1answer
148 views

How to set system wide umask in alpine?

This question may be same as https://stackoverflow.com/questions/10220531/how-to-set-system-wide-umask. But That is for debian based. I followed the instructions but I couldn't find any file named as /...
1
vote
2answers
588 views

How do you run wine in Alpine Linux?

I installed the wine package but it didn't work: apk update && apk add wine && wine /bin/sh: wine: not found
1
vote
1answer
2k views

Alpine Linux run a startup script to change the /etc/issue

I have done the following shell script that update the /etc/issue with the current ip's of all non-loopback interfaces: #!/bin/sh echo "You can use one of the following ip addresses in order to look ...
1
vote
1answer
421 views

OpenSMTPD Pipelining not supported messages

I'm using OpenSMPTD 6.0 (6.0.2p1-r2 installed from alpine repository) in docker container to send emails from PHP app. Everythings works OK but from time to time I see the following messages in ...
1
vote
3answers
110 views

Is there a version of Audacity that will run on Alpine Linux?

I was trying to get the Gentoo version from the Audacity website, but as far as I can tell, Audacity is not ready for Gentoo Linux yet. Anyone know if the Ubuntu version will work on Alpine? Or one ...
1
vote
0answers
80 views

Cannot mix incompatible Qt library (version 0x50c03) with this library (version 0x50c00)

I use alpine-php fpm docker container for developing and deploying a php application. I want to use wkhtmltopdf for generating pdfs. I installed by using apk add wkhtmltopdf But when I run it I ...
1
vote
1answer
16 views

Set DM on OpenRC

How do I set a display manager on an OpenRC system? I'm trying to use the Ly display manager. E.g. on a systemd distro I'd do $ sudo systemctl enable ly.service but how do I do it here?
1
vote
1answer
101 views

Installation of Firefox on Alpine Linux

I'm trying to install Firefox on Alpine Linux. I ran $ sudo apk add firefox And a few hundred MBs later, it installed. However, when I ran firefox, it crashed with symbol not found errors and ...
1
vote
1answer
59 views

Can I build openssh-portable source code in Alpine linux

For my projects I have to customize the openssh code and I am planning to build the openssh-portable(https://github.com/openssh/openssh-portable) source code in the Alpine linux. But I am getting the ...