Questions tagged [alpine-linux]
Alpine Linux is a distribution for small, secure systems, based on busybox and musl
331 questions
1
vote
1
answer
38
views
Alpine linux failed kernel upgrade and unresponsive keyboard in recovery shell
I tried to upgrade my alpine linux kernel version from linux-lts to linux-stable because support for a device I am installing was added in a newer kernel version.
I changed the apk repositories from ...
0
votes
0
answers
96
views
Why would an alpine docker container resolve an IP with getent and not ping or in python?
I've run into a really weird issue while switching a docker build from a debian base image to an alpine base (FROM python:3.12-slim-bookwork, to FROM python:3.13-alpine). I suddenly get very weird DNS ...
1
vote
1
answer
65
views
unable to select packages: breaks iotop, satisfies iotop ... huh?
I'm using Alpine Linux 3.18 and I'm trying to install iotop.
# apk add iotop
ERROR: unable to select packages:
python3-3.11.12-r1:
breaks: iotop-0.6-r13[python3~3.12]
satisfies: iotop-0.6-...
0
votes
0
answers
127
views
job started by BusyBox crond doesn't complete
I need a script to run daily in an Alpine docker container.
I have set it up as follows:
copy the script to /etc/periodic/daily
start the crond daemon in the container's ENTRYPOINT script: /usr/sbin/...
1
vote
1
answer
146
views
cloud-init tailscale setup fails due to missing /dev/net/tun
I want to provision a VM in proxmox with cloud-init, such that tailscale will be set up and running on first boot.
The image I use is alpine 3.22.1 (nocloud_alpine-3.22.1-x86_64-uefi-cloudinit-r0....
2
votes
0
answers
89
views
Replicating "world" (set of installed packages) on another Alpine Linux system
When using Alpine Linux normally, it's easy to install a set of packages and then just transfer the /etc/apk/world file over to another system (followed by apk fix on the other system) to ensure that ...
0
votes
0
answers
251
views
Can't use distrobox due to permission error. Podman behaves weirdly
Prerequisites
Alpine Linux Edge
~ $ podman --version
podman version 5.5.2
~ $ distrobox --version
distrobox: 1.8.1.2
~ $ mount|grep ^cgroup|awk '{print $1}'|uniq
cgroup2
I followed the steps in ...
1
vote
3
answers
486
views
Alpine linux (LXC) not running cron jobs
I have been trying for a long to make the crontab entries to run, but it doesn't matter what Time / schedule I enter, it doesn't seem to work. I have confirmed my current time zone with date command &...
0
votes
0
answers
106
views
Linux: Podman container Alpine + Wayland + xRDP multiuser + any window compositor
Does there is any possibility to have this combination?
Podman container with:
Alpine Linux
Wayland
xRDP with multiuser support
any window compositor
I have found there are some limitation of ...
0
votes
0
answers
66
views
Can not run script with jenkins user
My host is on alpine Linux and I'm running a jenkins agent on docker. I need the jenkins agent to be able to run a script when it does a build that changes the ownership of a few directories. Every ...
2
votes
1
answer
585
views
apk update -- WARNING: opening /repo: No such file or directory for existing repo
I'm trying to collect apk packages to local repo to install them later. But apk update says that this repo directory does not exists (what is not true). It does not depend on actual location and is ...
2
votes
0
answers
102
views
Custom PAM module and Oauth2 tokens
I have rootless Podman container (system: Alpine Linux) in Podman (master system: Alpine Linux). Container is able to work with xRDP (and sesman) so I am able to connect to it via local user (if ...
0
votes
1
answer
88
views
Add only a part of an Alpine package
A coworker recently shelled into an Alpine-based container and ran apk add with some special additional syntax such that only a part of a package was installed.
More specifically, he wanted only the ...
0
votes
0
answers
62
views
WiFi not working Alpine Linux on DC ROMA Laptop II
I have installed Alpine Linux on my DC ROMA Laptop II successfully and managed since then to get the password to work too. I am piggybacking off of the kernel (and boot stuff) provided by ...
2
votes
0
answers
127
views
Why is BusyBox find 10x slower than GNU find?
on a directory containing ~26 million files, GNU Find is 10 times faster than BusyBox find, why?
/var/www # time find /var/www -regex .*\.\(php\|js\|json\|html\|htm\|css\) -not -regex \(.*/docroot/...
3
votes
1
answer
235
views
TPM2 in qemu running aarch64 alpine linux
I want to run an Alpine Linux VM and want to connect the host's TPM to the VM. The host is x86_64 based. The command for qemu is
qemu-system-aarch64 \
-m 1024 -cpu cortex-a57 -M virt \
-bios /...
0
votes
1
answer
25
views
Samsung SCX-3205 multi function device fails to scan (with sane) after printing (with cups)
I have a very old Samsung SCX-3205 printer/copier/scanner. It scans fine and works fine. HOWEVER, when I print with CUPS, it stops scanning. "scanimage -L" tells for the first run after ...
0
votes
1
answer
172
views
Alpine Kea dhcp server deny unknown-clients
I checked the whole conf file but did not find the option equivalent to "deny unknown-clients" of Debian isc-dhcp-server.
Possible?
0
votes
1
answer
340
views
How to execute history command by number in Alpine Linux (busybox, ash)?
Is it possible to execute a history command by number with !###, similar to bash/zsh? Alpine's ash shell does not interpret this:
$ history
1441 date
1442 history
$ !1141
-sh: !1141: not found
1
vote
1
answer
60
views
disconnect packages managed by alpine apk but keep them on the system
I've installed nextcloud on proxmox in an alpine container using ttecks (rip!) helper script. After some tweaks, I am now able to update nextcloud from the application itself.
Now I have the following ...
0
votes
1
answer
345
views
Installing Alpine on DC Roma Laptop II (RISC-V): How can I make an image from a "Mini Root Filesystem"?
I recently asked a question on Reddit about how to install Arch on my DC Roma Laptop II. One of the suggestions was to use Alpine instead because it has support for RISC-V. Looking at the downloads ...
3
votes
1
answer
621
views
Shutdown and reboot buttons are greyed out in XFCE on Alpine Linux
I installed Alpine Linux with XFCE on an old potato laptop, without any display manager. I've been able to iron out most of the hiccups by searching through various wikis and forums. However I'm ...
18
votes
1
answer
2k
views
crontab schedule on Alpine Linux runs on days it's not supposed to run on
I have a schedule in my personal crontab on an Alpine Linux 3.20 system that runs at 00:10 from Tuesdays to Sundays (i.e., all days of the week except Mondays):
10 0 * * 2-7 "$HOME/local/sbin/...
-1
votes
2
answers
310
views
Where is the prompt configured in ash's login shell?
I can login on an alpine based docker container by either a non-login or non-login shell, i.e. ash vs ash -l.
$ docker run -it --rm alpine /bin/ash
/ #
Now when I use the login shell, I see a weird ...
2
votes
1
answer
704
views
Gnome extensions like System Monitor in Alpine linux can't see gliptop
System Monitor or Tophat gnome extensions don't work in fresh installation of Alpine linux. I can see error:
Requiring GTop, version none: Typelib file for namespace 'GTop' (any
version) not found
I ...
0
votes
1
answer
263
views
After using the timeout command in the container of the alpine image, a dead process will be left
I ran a container using the alpine image and used timeout to run a command in it. After the timeout command ran, there is a dead process left in alpine, and I cannot kill it using the kill command. My ...
0
votes
1
answer
721
views
alpine linux | mounting media failed
I am trying to install apine lixun on a server. Use Rufus to create a bootable flash drive with the operating system.
When trying to install the operating system I get the following message "...
1
vote
1
answer
207
views
Is systemd viable for embedded when storage is not a concern?
Excuse me if this is a dumb question. I've been experimenting with this old nas box i bought, cross compiling anything and everything i could get my hands on. And now i want to take it a step further ...
0
votes
1
answer
537
views
curl is not able to resolve host by default, --ipv4 switch works
I have a Linux Alpine (v3.18.6) container running on AKS. The curl command inside that container is not able to resolve a private DNS host. Also, nslookup throws SERVFAIL.
However, when I provide --...
0
votes
1
answer
1k
views
/dev/sda is present but /dev/sda1 and /dev/sda2 are missing
I have a file.img file which was obtained by running dd if=/dev/sda of=file.img. This was done on a device with two partitions, /dev/sda1 and /dev/sda2.
In order to flash a new device with the same ...
0
votes
0
answers
255
views
SSH connection failing on bitbucket pipeline, but working on local computer
From my local computer, I can ssh into my server without a password by doing:
ssh [email protected]
I then check /var/log/auth.log on the server to see what ssh key was used. I get something like ...
0
votes
1
answer
832
views
alpine update motd on login
Is there any way to update the /etc/motd file on login? The /etc/profile and /etc/profile.d/*.sh scripts are executed after the motd is already displayed on login so these methods don't work.
I want ...
0
votes
2
answers
3k
views
Unable to install or upgrade to specific version of alpine/expat 2.6.0-r0 in alpine docker image
Due to latest vulnerability detected CVE-2023-52425, CVE-2023-52426, I need to upgrade alpine/expat 2.5.0-r2 to expat 2.6.0-r0 in my alpine docker image.
I tried various ways (see below) to upgrade ...
1
vote
1
answer
2k
views
Trying to install postgresql16-client on an Alpine Docker Container
I'm trying to create a Docker container with postgresql16-client but i'm getting an error saying that the package does not exist.
I'm going to also install dotnet 8 on this container in order to run ...
0
votes
1
answer
2k
views
OpenNTPd not working in alpine Linux
In a Clean Alpine Linux install run
apk add openntpd
service openntpd start
rc-update add openntpd
Then modifiy the /etc/ntpd.conf to
# $OpenBSD: ntpd.conf,v 1.16 2019/11/06 19:04:12 deraadt Exp $
#
#...
0
votes
0
answers
367
views
Live Alpine Linux can't find any disks
I've been making a bootable, CLI Alpine Linux recovery disk, but Cfdisk can't find any disks to partition, neither does setup-disk, what are the steps I need to take to have a functioning partition ...
0
votes
1
answer
153
views
What provides install on alpine?
When I try to apk add install, the package can't be found
install (no such package):
required by: world[install]
What utility provides /bin/install?
1
vote
1
answer
1k
views
Alpine linux: replace BusyBox tail to GNU tail
I need to use the tail ... --pid=PID option in my docker container that is based on Alpine image in order to I can kill the running background tail process automatically.
Unfortunately the BusyBox ...
1
vote
1
answer
1k
views
IPv6 SLAAC configuration of bridged interface
My dual-stack network at home uses router advertisements for IPv6 configuration, with a (mostly fixed) delegated /56 prefix from my ISP. All my machines therefore have a predictable global IPv6 ...
0
votes
1
answer
133
views
podman: chialab/php-dev:8.2-fpm found/not-found on different machines
I have two VMs running different host Linux OSs and identical podman-compose.yml files on the two.
The podman-compose.yml file has the snippet:
fpm:
image: chialab/php-dev:8.2-fpm
[...]
...
1
vote
0
answers
165
views
How does apk's replaces work when the package being replaced gets upgraded?
Say I have a package A, and package B. Package B contains some files which deliberately conflict with package A, and it is desirable for package B's files to be favoured over the ones in package A if ...
0
votes
1
answer
289
views
fstab mount doesn't find device
I have a problem with mounting a simple ext4 USB device with sync option and defaults.
This is my fstab entry:
UUID=233b8055-d596-48a7-a666-1e10b8860d9c /USBSSD sync 0 0
when I use mount -a, it says:
...
0
votes
0
answers
604
views
Alpine Linux: Can I bridge the eth0 to WiFi?
The problem: I have Alpine Linux downloaded on my phone, but it cannot be pinged by other devices on the network. It seems to have its own IP address and gateway that is different from the network. My ...
1
vote
0
answers
1k
views
Keyboard layout not working on Alpine Linux 3.17
I am running several Alpine Linux installations, some VPS via SSH, some on real hardware.
One of the machines (via SSH) can only input ASCII characters - e.g., pressing Option + o on my Mac keyboard ...
0
votes
2
answers
2k
views
Which software installer should I use with Alpine?
I am experimenting with the Python Docker container, which seems to use Alpine Linux. I'm not familiar with Alpine and I don't see it listed as an option for installing software.
On Alpine, should I ...
1
vote
0
answers
543
views
How do I use abuild inside of a Distrobox container?
I want to use Alpine inside of a Distrobox container using the alpine-toolbox-edge image and do various tasks involving the abuild program. I followed the instructions in the "Creating an Alpine ...
2
votes
1
answer
481
views
Alpine Linux: apk cache APKINDEX checksum details
In Alpine Linux, when I run the command apk update it looks at my /etc/apk/repositories file and downloads the APKINDEX.tar.gz file from each repository. It then renames each APKINDEX tar file using a ...
1
vote
1
answer
929
views
Bluetooth keyboard/mouse issue on Alpine Linux
I'm using Alpine Linux with the following bluetooth related packages installed:
bluez-5.68-r1 x86_64 {bluez} (GPL-2.0-or-later AND BSD-2-Clause AND MIT) [installed]
bluez-btmgmt-5.68-r1 x86_64 {bluez} ...
1
vote
1
answer
4k
views
How to enable automatic login in alpine linux for root
I am trying to set up an alpine linux machine that needs to run an user program at the startup.
I did not add any user except for root.
After searching for solution of how to enable automatic login i ...
2
votes
2
answers
1k
views
Alpine Linux in Raspberry Pi not activating swap partition on boot
Probably this is a really naïve question, but I can’t make this work by trying the methods I’ve found in the existing documentation or in other solutions.
I have Alpine Linux installed on a Raspberry ...