You are not logged in.

#1 2012-06-03 17:09:53

rdm
Member
From: Italy
Registered: 2012-05-31
Posts: 48

makepkg fails to install package

Hello.

I downloaded the dropbox package from AUR, but when I try to use makepkg to create a Pacman package to install, I get an error: makepkg says it cannot find a .tar.xz package in the installation directory.

[riccardo@server1 dropbox]$ ls
PKGBUILD  dropbox.desktop  dropbox.png  terms.txt

[riccardo@server1 dropbox]$ makepkg -si
==> WARNING: Sudo can not be found. Will use su to acquire root privileges.
==> Making package: dropbox 1.4.7-1 (Sun Jun  3 19:00:48 CEST 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Downloading dropbox-lnx.x86-1.4.7.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 16.9M  100 16.9M    0     0   549k      0  0:00:31  0:00:31 --:--:--  649k
  -> Found dropbox.png
  -> Found dropbox.desktop
  -> Found terms.txt
==> Validating source files with md5sums...
    dropbox-lnx.x86-1.4.7.tar.gz ... Passed
    dropbox.png ... Passed
    dropbox.desktop ... Passed
    terms.txt ... Passed
==> Extracting Sources...
  -> Extracting dropbox-lnx.x86-1.4.7.tar.gz with bsdtar
==> Entering fakeroot environment...
==> Starting build()...
==> Tidying install...
  -> Purging unwanted files...
  -> Compressing man and info pages...
==> Creating package...
/usr/bin/makepkg: line 1129: /usr/bin/du: No such file or directory
/usr/bin/makepkg: line 1130: * 1024 : syntax error: operand expected (error token is "* 1024 ")
==> Making package: dropbox 1.4.7-1 (Sun Jun  3 19:01:24 CEST 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Found dropbox-lnx.x86-1.4.7.tar.gz
  -> Found dropbox.png
  -> Found dropbox.desktop
  -> Found terms.txt
==> Validating source files with md5sums...
    dropbox-lnx.x86-1.4.7.tar.gz ... Passed
    dropbox.png ... Passed
    dropbox.desktop ... Passed
    terms.txt ... Passed
==> Extracting Sources...
  -> Extracting dropbox-lnx.x86-1.4.7.tar.gz with bsdtar
==> Removing existing pkg/ directory...
==> Starting build()...
==> Tidying install...
  -> Purging unwanted files...
  -> Compressing man and info pages...
==> Creating package...
/usr/bin/makepkg: line 1129: /usr/bin/du: No such file or directory
/usr/bin/makepkg: line 1130: * 1024 : syntax error: operand expected (error token is "* 1024 ")
==> Finished making: dropbox 1.4.7-1 (Sun Jun  3 19:01:28 CEST 2012)
==> Installing package dropbox with pacman -U...
ERROR: ld.so: object 'libfakeroot.so' from LD_PRELOAD cannot be preloaded: ignored.
Password: 
loading packages...
error: '/home/riccardo/downloads/dropbox/dropbox-1.4.7-1-any.pkg.tar.xz': could not find or read package
==> WARNING: Failed to install built package(s).
==> Finished making: dropbox 1.4.7-1 (Sun Jun  3 19:01:57 CEST 2012)
==> Installing package dropbox with pacman -U...
Password: 
loading packages...
error: '/home/riccardo/downloads/dropbox/dropbox-1.4.7-1-any.pkg.tar.xz': could not find or read package
==> WARNING: Failed to install built package(s).

This is not the first time I get this kind of error...

Offline

#2 2012-06-03 17:22:25

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,907
Website

Re: makepkg fails to install package

Make sure you have base and base-devel installed, and that your system is up-to-date.

Last edited by WorMzy (2012-06-03 17:22:47)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2012-06-03 20:13:43

rdm
Member
From: Italy
Registered: 2012-05-31
Posts: 48

Re: makepkg fails to install package

I have base and base-devel installed.
I don't think my whole system is up-to-date, but I'd wish to know what are the files that, in this case and others, influence makepkg, since I haven't the faintest idea (and, above all, it takes a while during the system updating...).

Offline

#4 2012-06-03 20:27:11

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

Re: makepkg fails to install package

error wrote:

/usr/bin/du: No such file or directory

┌─[Centurion ~]
└─╼ pkgfile du
core/coreutils
community/9base
community/plan9port


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2012-06-03 20:41:49

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: makepkg fails to install package

Here's your problem:

/usr/bin/makepkg: line 1129: /usr/bin/du: No such file or directory
/usr/bin/makepkg: line 1130: * 1024 : syntax error: operand expected (error token is "* 1024 ")

The first line indicates that either something is wrong with your path, or du has somehow been removed from your system.
The second line indicates that something is wrong with your bash, because it is valid code, and should not throw that error.

If you're not prepared to invest the time required to keep your Arch installation up to date, you should seriously consider using a different distro.

Offline

#6 2012-06-03 22:25:45

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,405
Website

Re: makepkg fails to install package

A full system will fix everything...

Offline

#7 2012-06-04 16:27:10

rdm
Member
From: Italy
Registered: 2012-05-31
Posts: 48

Re: makepkg fails to install package

Thanks guys for your help!

I simply created a soft link /usr/bin/du that points to the program du installed in my system, since in my system it is in /bin . Now the installation works.

But in Arch the program du is always in /bin? If yes, why dropbox searches for /usr/bin/du instead of /bin/du?

Last edited by rdm (2012-06-04 16:33:35)

Offline

#8 2012-06-04 16:38:05

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: makepkg fails to install package

No, in Arch `du` is /usr/bin/du.

 >>>  pacman -Qo du
/usr/bin/du is owned by coreutils 8.16-2

Offline

#9 2012-06-04 17:16:06

ZekeSulastin
Member
Registered: 2010-09-20
Posts: 266

Re: makepkg fails to install package

I wouldn't bother at this point, Barrucadu: a lot of people here seem to love fixing the symptom instead of the actual problem, if the prevalence of .so symlink "solutions" is any indication, and this guy's already ignored both the warning that partial upgrades are unsupported and two other people telling him to -Syu.

Offline

#10 2012-06-05 10:46:19

rdm
Member
From: Italy
Registered: 2012-05-31
Posts: 48

Re: makepkg fails to install package

In fact I don't know why in my system

[riccardo@server1 ~]$ pacman -Qo du
error: No package owns /usr/bin/du

Offline

#11 2012-06-05 11:33:58

Pres
Member
Registered: 2011-09-12
Posts: 423

Re: makepkg fails to install package

Have you even read the other messages in this thread? You've been told 3 times now: it's because your system is not up to date.

Offline

#12 2012-06-05 12:14:38

debdj
Member
Registered: 2012-01-19
Posts: 163

Re: makepkg fails to install package

http://slash7.com/2006/12/22/vampires/
^This.

Last edited by debdj (2012-06-05 12:17:50)

Offline

#13 2012-06-05 14:57:43

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: makepkg fails to install package

Closing....

He is either trolling or not able to read. In either case, its useless.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB