/r/archlinux

Photograph via snooOG

A subreddit for the Arch Linux user community for support and useful news.

/r/archlinux

259,996 Subscribers

1

How do I install something that doesnt have PKGBUILD?

I am trying to install a .tar and it doesnt have PKGBUILD. It does have this thing called "package.blk" though. I started using Arch this week so I have no idea what I'm doing.

3 Comments
2024/06/12
00:54 UTC

2

Shutdown not turning off laptop

After running shutdown -h now I get stuck on the following screen for at least 10 minutes: https://ibb.co/qryMyjV I need to hold the power button to manually turn the device off.

The following is the output when running journalctl -b -1 -e on the next boot-up: https://ibb.co/dLdvKRK

My boot setup is with EFISTUB.

(I can shut the system down using sysrq, that still works.)

What could be the issue here? Let me know if I should provide any additional details. Thank you for the help!

1 Comment
2024/06/12
00:34 UTC

1

Trying to use snapper rollback

Hello, I've been trying to use the snapper rollback method to roll back to a previous snapshot on my btrfs filesystem. However, when I run snapper rollback [snapshot number] I get the following error: Cannot detect ambit since default subvolume is unknown. This can happen if the system was not set up for rollback. The ambit can be specified manually using the --ambit option. I'd rather be able to use rollback as intended instead of specifying the ambit each time. What am I doing wrong? My subvolume layout is the one suggested by the archinstall script.

1 Comment
2024/06/11
23:47 UTC

1

EXT4-fs error (device sda4): ext4_init_inode_table:1572: comm ext4lazyinit: Something is wrong with group 0: itable unused count: 8182; itables initialized count: 10

Two things that always happen when I boot up my laptop:

  1. The fsck tool always runs checking my home partition
  2. I always see the above error message when I boot up my machine.

In my /etc/fstab file, under fsck, my home partition (/dev/sda4) has the value 2.

PARTUUID=2a16c016-a479-4011-8f03-e8533532a27a	/home	ext4  defaults,noatime,commit=60	0	2

I don't know what the issue could be or how else to diagnose it. I've booted from a usb and chrooted into my arch install, and ran fsck manually, but it always reports that there are no issues. I've also trid in the past to rsync copy the contents of my home directory, re-created the partition and copy everything back, but the issue hasn't gone away.

Can anyone direct me to a solution/what the problem might be?

2 Comments
2024/06/11
23:37 UTC

1

VERY Loud Noise When Trying to Record with Microphone.

When I try to record on my microphone using the headset, I get a VERY loud pitched beeping noise that is constant. The mic does not record any audio at all.

I have a desktop computer that has two ports for audio on the front of the CPU tower. One is a line out and the other a line in. I’m connecting a Apple 3.5 mm headset to both ports via a cable that plugs into the headset, and has two ends that plug into both the line in and line out ports on the top of the CPU tower.

It looks like this: https://ibb.co/kyWvbYN

I’ve tested whether the mic records on my Windows 10 installation, and it works just fine.

inxi -Axxx:

Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Gigabyte driver: snd_hda_intel
    v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a348 class-ID: 0403
  Device-2: NVIDIA TU104 HD Audio vendor: eVga.com. driver: snd_hda_intel
    v: kernel pcie: speed: 2.5 GT/s lanes: 8 bus-ID: 02:00.1 chip-ID: 10de:10f8
    class-ID: 0403
  API: ALSA v: k6.8.1-arch1-1 status: kernel-api
  Server-1: sndiod v: N/A status: off
  Server-2: PipeWire v: 1.0.4 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: pluginAudio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Gigabyte driver: snd_hda_intel
    v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a348 class-ID: 0403
  Device-2: NVIDIA TU104 HD Audio vendor: eVga.com. driver: snd_hda_intel
    v: kernel pcie: speed: 2.5 GT/s lanes: 8 bus-ID: 02:00.1 chip-ID: 10de:10f8
    class-ID: 0403
  API: ALSA v: k6.8.1-arch1-1 status: kernel-api
  Server-1: sndiod v: N/A status: off
  Server-2: PipeWire v: 1.0.4 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin

arecord -l

card 0: PCH [HDA Intel PCH], device 0: ALC1220 Analog [ALC1220 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 2: ALC1220 Alt Analog [ALC1220 Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0arecord -l
card 0: PCH [HDA Intel PCH], device 0: ALC1220 Analog [ALC1220 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 2: ALC1220 Alt Analog [ALC1220 Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

What is especially strange is that the pauvcontrol seems to detect the microphone. When I use gnome recorder, I only get a very loud, persistent beep noise.

To try to resolve this, I followed the steps in this post: [SOLVED] Microphone is detected but no sound is recorded

I added options snd-hda-intel model=dell-headset-multi to /etc/modprobe.d/snd-hda-intel-headset.conf

But it does not resolve the issue.

I’m not sure what to do at this point to get the mic working. What is especially strange is that this works on my laptop, but not the desktop.

Any help would be great appreciated. Thanks!

1 Comment
2024/06/11
22:57 UTC

1

Can't boot up arch from USB

When I tried booting up arch linux from my usb the BIOS the bios gave me a message

"EFI USB Device (Lexar USB Flash Drive) has been blocked by the current security policy."

My PC is a Legion 5 Pro on which I had previously installed Linux Mint

4 Comments
2024/06/11
22:22 UTC

2

My Ctrl key is crashing Gnome Wayland. How can I investigate the cause?

3 Comments
2024/06/11
22:16 UTC

1

Easy way to see if the dual channel its working and its using all frequency of RAM?

This is my result:
Locator: DIMM 0
Bank Locator: P0 CHANNEL A
Locator: DIMM 1
Bank Locator: P0 CHANNEL A
Locator: DIMM 0
Bank Locator: P0 CHANNEL B
Locator: DIMM 1
Bank Locator: P0 CHANNEL B

CPU-X diffrent from CPU-Z dont show if the dual channel its working and the frequency that its been used. There's a way to see that (preference by gui).
Thx!

3 Comments
2024/06/11
21:30 UTC

3

Update This Morning Broke My Arch Install

Hello,

I've been daily driving Arch on my gaming desktop for the past month. It's been a pretty smooth experience so far, especially after the 555 drivers for nVidia were released. Wayland has been usable and very enjoyable.

KDE Plasma 6
SDDM
nVidia Proprietary Drivers (555 beta drivers)

I jumped on my desktop before leaving for work this morning and noticed in the system tray there were updates available. Opened up Discovery and installed the available updates. I quickly skimmed through the list and saw a few Mesa packages, and a bunch of KDE apps updating from 6.2 to 6.3.

Installed the updates, everything completed. I rebooted my PC and it appeared to be booting up just fine. When the screen switched to what I would assume would have been the login screen it just went black instead. After a few seconds the UEFI logo for my motherboard was displayed on the screen again and nothing happens after this.

I used CTRL+ALT+F3 to access the shell, rechecked pacman for updates, but didn't find any. System is fully updated. I tried another reboot, same result.

I honestly didn't have a lot of time to poke around and troubleshoot as I had to run to work. I'll be heading home soon. Does anyone have any recommendations as to where to look to troubleshoot this or fix this?

Thank you!

17 Comments
2024/06/11
21:23 UTC

1

Arch won’t boot after Windows ISO plugged in, help

About a week ago I used ArchInstall and installed Arch with no issues. Yesterday I plugged in a USB with the Windows 10 ISO but did not install Windows. Now I cannot boot into Arch.

I used an Arch ISO to mount my partitions and install Grub, but when I try to boot into Arch I only get the GNU Grub screen with UEFI Firmware Settings as the only option.

This is what I did:

mount /dev/nvme0n1p2 /mnt

mount —mkdir /dev/nvme0n1p1 /mnt/boot

arch-chroot /mnt

grub-install —target=x86_64-efi —efi- directory=/boot —bootloader-id=GRUB

Grub installed with no issues Installation finished. No error reported.

Nvme0n1p2 is my root

Nvme0n1p1 is my efi

3 Comments
2024/06/11
20:52 UTC

6

How mature is the ArchInstall script?

Just wondering, after several trials, on several PCs...never managed to properly deploy Arch using the `archinstall` script, typically when trying to go through a manual partioning (or keep actual current partition scheme, only flagging couple of partitions for wipe/mounting points).

When using the auto-partitioning, `archinstall` runs just fine though.... and - since I want/need to keep a specific partition scheme (my usual daily PC is a dual-boot Win11/Arch + common NTFS `/data` partition), I always end up doing the good old Arch deploy manual recipe, by-the-book.

Not digging the cryptic error message (Python-like dump), maybe I should/could share the logs...

I am not sure if this is a YouTuber-only approach and that this script is actually still very green (some might actually claim that you don't use Arch (btw) to avoid manual deployment...).

(I actually kind of like the simplicity of this script and I feel it fully (de)serves Arch community rewarding...)

12 Comments
2024/06/11
20:33 UTC

20

Using local Arch Wiki

Every time I have a problem, since starting with Arch Linux. It's always Arch wiki that gets me answers on pretty much 99% of things that are not even related to Arch itself. This is one of the best and most valuable pages on the Internet, at least for myself. If my Internet connection drops, I wish to still have access in an emergency.

I figured you can download these locally using package arch-wiki-docs. Once you install the package. There are files located under /usr/share/doc/arch-wiki/html

Now the question, what is correct way to access this content? Do we just open pages one by one in your web browser? Or can we host a local web server to serve the content, the same way like official wiki page.. or is there a command we can run that I am not aware of that will initialise pages for us and open it in a browser?

/Edit

I forgot to add I am interested in search box functionality

7 Comments
2024/06/11
18:31 UTC

0

Reinstalled Arch and Steam won't accept my second drive

I made a post the other day asking if I could access my Steam games on my other drive if I were to reinstall my system from scratch. I was told I would be able to, and so today I reinstalled my system.

Problem is now Steam doesn't want to add my second drive in the storage options. It just labels it as "External Drive ()". I don't know if this has any to do with the file system, or if there's anything else I'm missing. If it's the file system, that means I either have to reinstall Arch again, or format the drive. And reinstalling Arch sounds quicker.

For the record, I went with btrfs for this install. Don't know what other info is relevant, but I'll gladly provide it if asked.

5 Comments
2024/06/11
17:53 UTC

2

OSU on arch

Ok so I have been meaning to play osu for a week and I am on arch linux, so naturally I look up aur. There are 3 versions on aur, namely.

osu-lazer osu-lazer-bin osu-lazer-extracted-bin osu-lazer-git

which one of the following is the latest? Because I have tried osu-lazer and osu-lazer-git and they both show that please use a newer version to record score and all. Although the -git is a experimental build. Any help as to which package is the most updated and if there is any other better way to play osu on arch. Thank you for the help!

6 Comments
2024/06/11
17:05 UTC

4

Resizing one and only root partition

Hi guys, so during install i've mistakenly allocated 1TB for root partition and as my filesystem runs on HDD the system is painfully slow because of that size.
So what i really want is to shrink it to like 300GB and keep my data, i've heard something about gparted, but i'm not sure

9 Comments
2024/06/11
17:02 UTC

1

mount: /home: wrong fs

I wanted to resize my partitions since my root partition seems to be full and I can't install packages anymore. After falsfully trying it with sudo parted /dev/nvme0n1p3 and so kind of killing my /home partition, my system only boots into emergency mode. I don't wanna create a new filesystem on the partition tho, since I don't wanna delete the data and mkfs says that there is still a ext4 filesystem existing on that partition, but I can't mount it. When I try to, it gives me the error: mount: /home: wrong fs type, bad option, bad Superblock on /dev/nvme0n1p3, missing codepage or helper program, or other error. dmsg(1) may have more information after failed mount system call.

10 Comments
2024/06/11
16:46 UTC

3

Freeze after /dev/nvme0n1p3: clean ...

Most likely due to the fact that I uncommented out the line "wayland = false",I can use tty, but only if I remove "quiet" in karnel and reboot,on the window itself where everything is frozen, I can call tty before freezing, but after tty it will also freeze

4 Comments
2024/06/11
16:31 UTC

1

I can't manage brightness on Intel HD Graphics (sorry my english)

I have 2 PC, both with HD Graphics and one with Void and other with Arch. When i do brightnessctl don't do anything, only shows this: Device 'rtl8xxxu-usb3-5' of class 'leds': Current brightness: 1 (50%) Max brightness: 2

The same with light: No backlight controller was found, so we could not decide an automatic target. The current command will have no effect. Please use -L to find a target and then specify it with -s.

0.00

I checked in /sys/class/backlight and i don't have any folder. I already changed acpi_video kernel parameters but nothing. I only can change the brightness via GUI on KDE Plasma. In other desktops i don't have the GUI

7 Comments
2024/06/11
14:55 UTC

2

Checklist for updating: what to do before/during/after updating?

Main question

What should I do before/during/after updating? Is there any checklist for this?

Additional information

In my another post Myth or true: you will get problems if not updated packages in a month most people said that you should update keyring before upading anything else. I have tried to google about that and have not found any such tip on arch wiki that says that you should update keyring before updating any other package. I have found this page: System maintenance and was expecting it to say about that but there is no info about keyring

Additional question

Why does not System maintenance page have info that you should update keyring before updating other packages

19 Comments
2024/06/11
14:05 UTC

2

Today's Arch SSL Adventure

Today was a fun adventure in Arch problems that I'm going to share for the benifit of anyone else with a similar problem.

Ran my system maintenance script this morning to install updates. Somehow, the update process wiped out the trusted CA authorities for the OS. This is bad, because now I can't connect to pretty much anything, as the SSL is not trusted. This includes my offsite cloud backups.

Since Firefox was reporting untrusted SSL on everything, including Cloudflare DNS, it was clearly a system problem. So off I go to look in /etc/ssl

A ls -l shows that all files are of size 0. Which is bad, because they're supposed to be SSL certs.

Some googling suggests the following.

# pacman -Qo /etc/ssl/certs/ca-certificates.crt                             
/etc/ssl/certs/ca-certificates.crt is owned by ca-certificates-utils 20220905-1

which tells me that the file belongs to the ca-certificates-utils package. I reinstall the package from my cached copy with

sudo pacman -U /var/cache/pacman/pkg/ca-certificates-20220905-1-any.pkg.tar.zst
loading packages...
warning: ca-certificates-20220905-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) ca-certificates-20220905-1


:: Proceed with installation? [Y/n] 

Fortunately, this reinstalls the CA authorities correctly, and my system is back up with an hour on google, rather than a full re-install.

9 Comments
2024/06/11
13:57 UTC

0

How to use specific version of nodejs in depends:apt or makedepends:apt options in PKGBUILD file?

I'm using PKGBUILD to build my node based full stack app for desktop. My app requires the v18.20.3 to run the app,

0 Comments
2024/06/11
13:44 UTC

1

I need help with graphics choice

Which one of hybrid graphic solution i should use, nvidia optimus or bumblebee? and what the difference between it

Also whats the difference between x11 and wayland, should i stay on wayland for best perfomance?

My graphic enviroment plasma kde 6

Graphic info: GeForce NVIDIA MX130

Intel Iris Plus Graphics G1

CPU: Intel Core i3-1005G1

6 Comments
2024/06/11
08:49 UTC

8

Everything is blocky in some apps

Hi everyone, this might be more of a linux4noobs question, but I thought I might get more relevant answers here.

So I have started my final transition fully to linux on my laptop, and 90% is amazing, but I have one big problem; blocky text, icons, and images in some apps. I am not sure what kind of apps it affects since some GTK apps work and some don't, I am not sure how Qt is affected since I don't know which apps use it.

Apps affected

  • Discord
  • Darktable
  • Firefox (only sometimes when opened by a different app, otherwise fine)
  • CurseForge app
  • VLC media player

Apps not affected

  • Firefox normally
  • Terminal
  • EWW bar
  • Dolphin
  • Thunar
  • OBS

I have read the arch wiki on font configuring, and a bunch of other posts on different forums, but am not able to fix this. I have installed Noto Sans and JetBrainsMono Nerd Font, but this seems to be more of a problem than fonts as even images in darktable are blocky.

Video and images that might show something

Solution

The problem turned out to be programs using xwayland, so to fix that I added this to my hyprland.conf file:

xwayland {
    force_zero_scaling = true
}
15 Comments
2024/06/11
08:49 UTC

0

Removed most system packages - how to restore?

Dear Community,

I intended to remove unnecessary dependencies and removed instead every package on my system... (didn't notice that yay wasn't aware of the reinstalling - or whatever it confused here)

Someone was babbling in me ear all day and at some point I fucked up. I didn't read and just clicked ...

I intended to remove only unnecessary dependencies but removed basically all installed packages (including sudo, cd, pacman, ...).

I had a problem a while ago and reinstalled all explicit packages using

pacman -Qqen > pkglist_exp.txt
pacman --force -S $(< pkglist_exp.txt)

So, I have that list. I also have the console output of my failed attempt, where I started deleting everything:

https://pastebin.com/QaD7vqWV

If I can somehow extract those 500 packages into a pkglist (in case pkglist_exp.txt is missing some?) can I simply reinstall them using an usb-stick to boot archlinux and then

mount /dev/nvme0n1p3 /mnt
mount /dev/nvme0n1p1 /mnt/boot/efi

pacstrap -K /mnt base linux linux-firmware

I was using the latest lts kernel, not sure how to substitute this correctly here. Maybe you can suggest a case-specific substitution.

Afterwards probably:

arch-chroot /mnt
pacman --overwrite '*' -S pkglist_exp.txt

Are there some crucial parts I am missing. What else can go wrong, what do I have to consider in this particular case? Please have a look into https://pastebin.com/QaD7vqWV to tell me what potential failures I have to be aware of.

Thank you so much in advance for your support in this particularly stupid situation I caused.

Edit:

Found this: https://wiki.archlinux.org/title/pacman with 3.6 Pacman crashes during an upgrade, would this be more fitting instead of arch-chroot - maybe even instead of pacstrap?

mount /dev/nvme0n1p3 /mnt
mount -t proc proc /mnt/proc  (typo in wiki?)
mount --rbind /sys /mnt/sys
mount --rbind /dev /mnt/dev
pacman --root=/mnt --cachedir=/mnt/var/cache/pacman/pkg --overwrite '*' -S /some/path/pkglist_exp.txt

What is getting me additionally nervous are those lines at the beginning and in between in

(1/4) Removing linux initcpios...
(2/4) Remove DKMS modules
==> dkms remove --no-depmod vboxhost/7.0.18_OSE -k 6.6.32-1-lts
==> dkms remove --no-depmod vboxhost/7.0.18_OSE -k 6.9.3-arch1-1
==> dkms remove --no-depmod v4l2loopback/0.13.2 -k 6.6.32-1-lts
==> dkms remove --no-depmod v4l2loopback-dc/2.1.3 -k 6.6.32-1-lts
==> dkms remove --no-depmod v4l2loopback/0.13.2 -k 6.9.3-arch1-1
==> dkms remove --no-depmod v4l2loopback-dc/2.1.3 -k 6.9.3-arch1-1
==> depmod 6.6.32-1-lts
==> depmod 6.9.3-arch1-1
(3/4) Unregistering Haskell modules...
(4/4) Removing old entries from the info directory file...
warning: /etc/texmf/web2c/fmtutil.cnf saved as /etc/texmf/web2c/fmtutil.cnf.pacsave
warning: /etc/sudoers saved as /etc/sudoers.pacsave
Privileges for realtime have been removed. However, the group 'realtime' will remain on the system.
Removed "/etc/systemd/user/sockets.target.wants/pipewire-pulse.socket".

The warnings are probably easy to solve by copying them back to the original file from the restored version, with realtime, I don't know which privileges it had. The pipewire-pulse thing can probably be restored with systemctl enable pipewire-pulse.socket after reinstalling it.

(This is a cross post with the archlinux.org forum: https://bbs.archlinux.org/edit.php?id=2176947 )

7 Comments
2024/06/11
08:28 UTC

1

Install Arch alongside Debian 12. Where to mount boot partition.

I already have Debian 12 installed, using GPT, on one of two "system" partitions. And on debian the boot partition is mounted to /boot/efi.

 NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda           8:0    0 931.5G  0 disk 
└─sda1        8:1    0 931.5G  0 part /mnt/ninja
nvme0n1     259:0    0 238.5G  0 disk 
├─nvme0n1p1 259:1    0   512M  0 part /boot/efi
├─nvme0n1p2 259:2    0  29.3G  0 part /
├─nvme0n1p3 259:3    0  31.3G  0 part 
├─nvme0n1p4 259:4    0 173.2G  0 part /mnt/data
└─nvme0n1p5 259:5    0   4.2G  0 part [SWAP]
 ◉ ~ 

The vmlinuz files are in /boot.

So I'm asking if I should mount the boot partition to /mnt/boot or /mnt/boot/efi during the arch install?

To confuse things further, If I install Debian in virtualbox the mountpoint is /boot and not /boot/efi like on my system.

What to do?

11 Comments
2024/06/11
08:01 UTC

1

RSS reader

Hi guys,
I’m looking for a dedicated RSS client. I don’t want to use a web browser; I want an application.

7 Comments
2024/06/11
06:38 UTC

0

Shortcut for Terminal

Default shortcut for terminal is always "Ctrl + Alt + T" in gnome, for some reason this wasn't the case when I installed arch. Its my first time using arch. I have gnome--shell version 46.2. Is there any way to add shortcut for the terminal. I tried going to keyboard shortcuts and then launchers but there was no option for Terminal there;(

3 Comments
2024/06/11
06:35 UTC

0

Easyeffects cannot run in background in hyprland

I'm recently trying out Hyprland and one problem I'm facing is, easyeffects cannot run in background. It says background access has been denied and suggests to run flatpak permission-reset com.github.wwmm.easyeffects . The problem doesn't get resolved if I run this command. The log in terminal is:

(easyeffects:2): easyeffects-WARNING **: 12:16:05.771: libportal.cpp:79 Background access has been denied

(easyeffects:2): easyeffects-WARNING **: 12:16:05.772: libportal.cpp:80 Please allow Easy Effects to ask again with flatpak permission-reset com.github.wwmm.easyeffects
(easyeffects:2): easyeffects-WARNING **: 12:16:05.784: libportal.cpp:93 due to error, setting autostart state and switch to false

So, what can I do? xdg-desktop-portal-hyprland is running in background.

[SOLVED]:

Adding exec-once = flatpak run com.github.wwmm.easyeffects --gapplication-service & solved the problem. For foreground access while it is running in background, flatpak run com.github.wwmm.easyeffects works. This behavior doesn't work on the Arch shipped version of easyeffects.

2 Comments
2024/06/11
06:24 UTC

1

"Loading initial ramdisk" freeze but can move mouse?

After reinstalling Arch from scratch, after every cold boot I have this issue that every cold boot results in my system being stuck at Loading initial ramdisk; however, I can still move my mouse around during this screen.

I don't know what the issue is, but I distinctly remember this screen showing up for a short second when turning my computer off for a brief moment after reinstalling Arch as well.

Someone please help me get rid of this screen, my PC is "running" but there's a black screen of "Loading Initial Ramdisk" blocking me from seeing anything.

2 Comments
2024/06/11
04:56 UTC

Back To Top