You are not logged in.

#1 2010-12-05 19:28:55

copyguy
Member
Registered: 2009-10-28
Posts: 36

Can't install local packages.

I have installed arch on my computer and i'm now trying to get my wirelss network card to work. I found a guide how to do it and i need to install ndiswrapper. I have the files on a usb stick but when i use the command pacman -U on the files it just says: cannot open package file. I'm in the part of the installation just after the first reboot if it matters. Please help me before i go crazy. smile

Offline

#2 2010-12-05 19:31:54

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Can't install local packages.

Upgrade pacman to 3.4. I don't believe 3.3 included support for xz packages.

Offline

#3 2010-12-05 19:36:20

copyguy
Member
Registered: 2009-10-28
Posts: 36

Re: Can't install local packages.

falconindy wrote:

Upgrade pacman to 3.4. I don't believe 3.3 included support for xz packages.

Hmm ok so i can just reinstall arch with netinstall and i will get pacman 3.4? smile

Offline

#4 2010-12-05 19:59:41

pommes_
Member
From: Germany
Registered: 2007-12-30
Posts: 31
Website

Re: Can't install local packages.

Yes, thats how it works...

Offline

#5 2010-12-05 20:14:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Can't install local packages.

copyguy wrote:
falconindy wrote:

Upgrade pacman to 3.4. I don't believe 3.3 included support for xz packages.

Hmm ok so i can just reinstall arch with netinstall and i will get pacman 3.4? smile

Not sure about it - http://www.archlinux.org/news/pacman-340-released/ - it's late June. The iso images are from May, so they have pacman 3.3.

Offline

#6 2010-12-05 20:16:21

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Can't install local packages.

@karol - true.  I recently did an install from the core iso (2010.5) and indeed, pacman was the first package updated.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#7 2010-12-05 20:22:56

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Can't install local packages.

The support for xz packages has been added in pacman 3.3.

@ copyguy
Post the whole command + output. Maybe you're trying to install a source archive and not a binary (pkg.tar.gz / pkg.tar.xz).

Offline

#8 2010-12-06 21:20:15

pauline123
Member
Registered: 2010-12-06
Posts: 11

Re: Can't install local packages.

Have you tried navigating via the command line to the directory of the package?
Alternatively if you know the location of the package give the complete path to the file.

pacman -U gives the error message that it cannot open the package if it is trying to open a package that is not in the directory specified.

If I downloaded the package to ~/Downloads, when using pacman -U I would need to type pacman -U ~/Downloads/ndiswrapper.pkg.tar.gz.

A couple other things: are you sure the drive is mounted and you are trying to install the package with root permissions.  (You need to have root permissions somehow, either by logging in as root, or utilizing sudo or su.)

Edited  due to a mistype that was pointed out by Karol.  Thanks Karol.

Last edited by pauline123 (2010-12-06 23:24:18)

Offline

#9 2010-12-06 21:22:38

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Can't install local packages.

pauline123 wrote:

If I downloaded the package to ~/Downloads, when using pacman -U I would need to type pacman -U ~/Downloads/ndiswrapper.tar.gz

No!
.tar.gz is the source, pkg.tar.gz or pkg.tar.xz is the binary package. Pacman can handle only packages, not archives with the source files / PKGBUILDs.

Offline

#10 2010-12-06 23:15:37

pauline123
Member
Registered: 2010-12-06
Posts: 11

Re: Can't install local packages.

Karol is right.  I was not thinking when I typed the location, sorry.

Offline

Board footer

Powered by FluxBB