You are not logged in.

#1 2023-01-03 06:05:07

tatertot
Member
Registered: 2023-01-03
Posts: 4

[SOLVED] Pacman invalid package architecture

So long story short I was having some wifi issues and in the process of trying to fix it I may have accidentally deleted my networkmanager package. So I decided to boot up my windows pc and download the package. I then put it on a usb stick, plugged it into my arch machine and mounted the drive. I then went into the directory of the usb and ran the command

pacman -U networkmanager-1.40.8-2-aarch64.pkg.tar.xz

It then gave me the error stated in the title, specifically

loading packages...
error: failed to prepare transaction (package architecture is not valid)
:: package networkmanager-1.40.8-2-aarch64 does not have a valid architecture

I apologize if this is a dumb question, but I am personally stumped and have spent too many hours trying to fix this.

Last edited by tatertot (2023-01-03 07:03:44)

Offline

#2 2023-01-03 06:09:05

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,178

Re: [SOLVED] Pacman invalid package architecture

You've downloaded a package for Arch Arm maybe? You should have networkmanager-1.40.8-2-x86_64.pkg.tar.zst and the corresponding .sig file, networkmanager-1.40.8-2-x86_64.pkg.tar.zst.sig. Use the download link on https://archlinux.org/packages/extra/x8 … rkmanager/.

Last edited by cfr (2023-01-03 06:10:45)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2023-01-03 06:10:46

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Pacman invalid package architecture

The package you want to download is called: networkmanager-1.40.8-2-x86_64.pkg.tar.zst (note the x86_64 designator).


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2023-01-03 07:02:04

tatertot
Member
Registered: 2023-01-03
Posts: 4

Re: [SOLVED] Pacman invalid package architecture

Wow I can't believe I missed my mistake. I did download the wrong package as I downloaded it from https://archlinuxarm.org/packages/aarch … orkmanager. Thank your for your help! smile

Offline

Board footer

Powered by FluxBB