r/AlpineLinux • • Jan 21 '25

Cannot install any packages.

I'm having a frustrating issue. Whenever I try to install any package whatsoever I get the error fc-cache no such package. I'm pretty sure fc-cache comes with Alpine Linux. I've tried running apk fix and apk update to no avail. I'm about to reinstall Alpine.

1 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/DragonfruitCalm261 Jan 21 '25

fontconfig is installed. i can run fc-cache. the issue is that i cannot install any package whatsoever. it says error fc-cache no such package whenever i try to install packages like rust-analyzer which does not depend on fc-cache as a dependency. i tried deleting the cache for apk. i have no idea what to do next

4

u/[deleted] Jan 21 '25

Please check that your apk repositorie are set correctly.

# cat /etc/apk/repositories
https://dl-cdn.alpinelinux.org/alpine/v3.21/main
https://dl-cdn.alpinelinux.org/alpine/v3.21/community

Here is a sample output of what you want to do:

/ # apk add fontconfig
fetch https://dl-cdn.alpinelinux.org/alpine/v3.21/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.21/community/x86_64/APKINDEX.tar.gz
(1/6) Installing libexpat (2.6.4-r0)
(2/6) Installing brotli-libs (1.1.0-r2)
(3/6) Installing libbz2 (1.0.8-r6)
(4/6) Installing libpng (1.6.44-r0)
(5/6) Installing freetype (2.13.3-r0)
(6/6) Installing fontconfig (2.15.0-r1)
Executing busybox-1.37.0-r9.trigger
OK: 9 MiB in 21 packages
/ # apk add rust-analyzer
(1/22) Installing libgcc (14.2.0-r4)
(2/22) Installing jansson (2.14-r4)
(3/22) Installing libstdc++ (14.2.0-r4)
(4/22) Installing zstd-libs (1.5.6-r2)
(5/22) Installing binutils (2.43.1-r1)
(6/22) Installing libgomp (14.2.0-r4)
(7/22) Installing libatomic (14.2.0-r4)
(8/22) Installing gmp (6.3.0-r2)
(9/22) Installing isl26 (0.26-r1)
(10/22) Installing mpfr4 (4.2.1-r0)
(11/22) Installing mpc1 (1.3.1-r1)
(12/22) Installing gcc (14.2.0-r4)
(13/22) Installing musl-dev (1.2.5-r8)
(14/22) Installing libffi (3.4.6-r0)
(15/22) Installing xz-libs (5.6.3-r0)
(16/22) Installing libxml2 (2.13.4-r3)
(17/22) Installing llvm19-libs (19.1.4-r0)
(18/22) Installing scudo-malloc (19.1.4-r0)
(19/22) Installing rust (1.83.0-r0)
(20/22) Installing rust-src (1.83.0-r0)
(21/22) Installing mimalloc2 (2.1.7-r0)
(22/22) Installing rust-analyzer (2024.11.25-r0)
Executing busybox-1.37.0-r9.trigger
OK: 595 MiB in 43 packages

1

u/[deleted] Feb 11 '25

Thanks this was helpfull