The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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 ...
19
votes
4answers
30k 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
8k 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?
8
votes
3answers
9k 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 -...
6
votes
1answer
7k 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
3k 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 (...
4
votes
2answers
5k 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? ...
4
votes
1answer
993 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 ...
4
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-...
3
votes
2answers
432 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[....
3
votes
1answer
5k 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
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 ...
3
votes
1answer
357 views

How to show details of error in Alpine apk

I use Alpine Linux 3.9.3 x86_64 when I issue: # apk upgrade the output is: 3 errors; 1973 MiB in 519 packages How can I get details about those 3 errors? I tried --verbose flag but result is same....
2
votes
1answer
765 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
2answers
2k 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
1answer
223 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
1k 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....
2
votes
1answer
1k 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
523 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
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 ...
2
votes
1answer
890 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
592 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
430 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
2answers
170 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
222 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
5k 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
39 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
206 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
157 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
1answer
725 views

init script for alpine not working

I am trying to write an init script for gitea in alpine. The first code I tried was #!/sbin/openrc-run command=/usr/bin/gitea command_args="web" pidfile=/var/run/git.pid name="Gitea Daemon" ...
2
votes
0answers
414 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
2k 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
728 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
2k 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
4k 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
126 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
1answer
667 views

find: './proc/1/map_files': Permission denied

I am inside a docker container build atop of the image alpine:3.6 and I am trying to find if a directory exists. I get te error, find: './proc/1/map_files': Permission denied This is the commands I ...
1
vote
2answers
578 views

How to resize Alpine Linux terminal in VirtualBox?

Please help me with info, how to resize terminal window of Alpine Linux inside the VirtualBox so that it would fill all the host virtualbox window. Alpine version: virt-3.7.0 VirtualBox version: 5....
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
2k views

Can we run 32bit Programs on Alpine Linux?

I recently installed a jenkins using docker using the official image from blueocean. It is based on alpine linux. Now I cant run 32bit programs on it $ /opt/android-sdk-linux/build-tools/25.0.3/...
1
vote
1answer
383 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
546 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
491 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
34 views

How to create alpine package without git?

If I already have all the files how do I package them up into an .apk file that I can later installed? Sort of an equivalent of fakeroot dpkg-deb -b package-dir package.deb, or something to achieve ...
1
vote
1answer
35 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
141 views

How to make a fully bootable ISO from Alpine Linux Edge?

I would like to make an alpine installation iso which has the following attributes: During installation it has an answerfile so that the setup process (the setup script) takes those default inputs ...