You are not logged in.

#1 2025-07-12 08:58:31

pimpoli
Member
Registered: 2025-07-12
Posts: 7

Unable to install cutmp3 [SOLVED]

Hi, I tried to update cutmp3 via AUR (yay), and in get this error:

“Unable to create regular file ‘/usr/share/apps/konqueror/servicemenus/cutmp3.desktop’: Permission denied”

What can I do?

Here's the entire output:

:: PKGBUILD up to date, skipping download: cutmp3
1 cutmp3 (Installed) (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
1 cutmp3 (Installed) (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
==> Making package: cutmp3 4.0-1 (ven 11 lug 2025, 22:53:31)
==> Retrieving sources…
→ Found v4.0.tar.gz
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums…
v4.0.tar.gz … Passed
:: (1/1) Parsing SRCINFO: cutmp3
==> Making package: cutmp3 4.0-1 (ven 11 lug 2025, 22:53:32)
==> Checking runtime dependencies…
==> Checking buildtime dependencies…
==> Retrieving sources…
→ Found v4.0.tar.gz
==> Validating source files with sha256sums…
v4.0.tar.gz … Passed
==> Removing existing $srcdir/ directory…
==> Extracting sources…
→ Extracting v4.0.tar.gz with bsdtar
==> Sources are ready.
==> Making package: cutmp3 4.0-1 (ven 11 lug 2025, 22:53:34)
==> Checking runtime dependencies…
==> Checking buildtime dependencies…
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory…
==> Starting build()…

*** You need readline-devel or similar to compile cutmp3. Alternatively call ‘make LNOISE=yes’ ***
*** to build with linenoise, a self contained line editor. (see README for more information) ***

gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DVERSION="4.0" -c -o main.o main.c
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c -o mpglib.o mpglib.c
gcc -o cutmp3 main.o mpglib.o -lm -lreadline -Wl,–no-as-needed

==> Entering fakeroot environment…
==> Starting package()…

*** You need readline-devel or similar to compile cutmp3. Alternatively call ‘make LNOISE=yes’ ***
*** to build with linenoise, a self contained line editor. (see README for more information) ***

install: creating directory ‘/home/fabiano/.cache/yay/cutmp3/pkg/cutmp3/usr’
install: creating directory ‘/home/fabiano/.cache/yay/cutmp3/pkg/cutmp3/usr/bin’
install: creating directory ‘/home/fabiano/.cache/yay/cutmp3/pkg/cutmp3/usr/share’
install: creating directory ‘/home/fabiano/.cache/yay/cutmp3/pkg/cutmp3/usr/share/man’
install: creating directory ‘/home/fabiano/.cache/yay/cutmp3/pkg/cutmp3/usr/share/man/man1’
install: creating directory ‘/home/fabiano/.cache/yay/cutmp3/pkg/cutmp3/usr/share/doc’
install: creating directory ‘/home/fabiano/.cache/yay/cutmp3/pkg/cutmp3/usr/share/doc/cutmp3-4.0’
strip: copy from cutmp3' [elf64-x86-64] to /home/fabiano/.cache/yay/cutmp3/pkg/cutmp3/usr/bin/cutmp3’ [elf64-x86-64]
cutmp3.1: 55.1% – replaced with /home/fabiano/.cache/yay/cutmp3/pkg/cutmp3/usr/share/man/man1/cutmp3.1.gz
‘README’ → ‘/home/fabiano/.cache/yay/cutmp3/pkg/cutmp3/usr/share/doc/cutmp3-4.0/README’
‘README.timetable’ → ‘/home/fabiano/.cache/yay/cutmp3/pkg/cutmp3/usr/share/doc/cutmp3-4.0/README.timetable’
‘USAGE’ → ‘/home/fabiano/.cache/yay/cutmp3/pkg/cutmp3/usr/share/doc/cutmp3-4.0/USAGE’
‘cutmp3.desktop’ → ‘/usr/share/apps/konqueror/servicemenus/cutmp3.desktop’
install: cannot create regular file ‘/usr/share/apps/konqueror/servicemenus/cutmp3.desktop’: Permission denied
make: *** [Makefile:51: install] Error 1
==> ERROR: A failure occurred in package().
Aborting…
→ error making: cutmp3-exit status 4
→ Failed to install the following packages. Manual intervention is required:
cutmp3 - exit status 4

Last edited by pimpoli (2025-07-14 16:33:29)

Offline

#2 2025-07-12 09:42:05

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 71,575

Offline

#3 2025-07-12 09:45:35

astralc
Member
Registered: 2022-09-17
Posts: 109

Re: Unable to install cutmp3 [SOLVED]

something in the PKGBUILD or install command is wrong, as during packaging step it should be installed/copied to 'pkg' dir, not system location . see how USAGE before it is copied.
It look this part didn't use PREFIX correctly.

Offline

#4 2025-07-12 10:14:21

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,186
Website

Re: Unable to install cutmp3 [SOLVED]

Mod note: moving to AUR Issues


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

#5 2025-07-12 13:43:36

pimpoli
Member
Registered: 2025-07-12
Posts: 7

Re: Unable to install cutmp3 [SOLVED]


In practice, how I have to do?

Offline

#6 2025-07-12 13:44:17

pimpoli
Member
Registered: 2025-07-12
Posts: 7

Re: Unable to install cutmp3 [SOLVED]

How can I do?

Offline

#7 2025-07-12 13:56:01

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 71,575

Re: Unable to install cutmp3 [SOLVED]

You edit the PKGBUILD replace, the make line, then run makepkg?

Offline

#8 2025-07-13 06:58:12

pimpoli
Member
Registered: 2025-07-12
Posts: 7

Re: Unable to install cutmp3 [SOLVED]

I tried to edit the pkgbuild, I substitude (into the yay procedure, of course):

make PREFIX="${pkgdir}/usr" install

with:

make  KDEDIR=${pkgdir}/usr PREFIX="${pkgdir}/usr" install


but I obtain the same eerror

Last edited by pimpoli (2025-07-13 06:58:55)

Offline

#9 2025-07-13 07:00:22

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 71,575

Re: Unable to install cutmp3 [SOLVED]

Try

export KDEDIR=${pkgdir}/usr
make PREFIX="${pkgdir}/usr" install

Edit: you're *NOT* getting the same error, the makefile calls install -vm but lacks the "-D"
You can edit the makefile and then either comment the KDE stuff altogether, fix the install call or 

mkdir -p "${pkgdir}/usr/share/apps/konqueror/servicemenus"
make KDEDIR=${pkgdir}/usr PREFIX="${pkgdir}/usr" install

Last edited by seth (2025-07-13 07:31:36)

Offline

#10 2025-07-13 11:26:15

pimpoli
Member
Registered: 2025-07-12
Posts: 7

Re: Unable to install cutmp3 [SOLVED]

This is the PKGBUILD:

# Maintainer: <reg-archlinux AT klein DOT tuxli DOT ch> 
# Contributor: Petar Benke <makepkg@benke.co.uk>

pkgname=cutmp3
pkgver=4.0
pkgrel=1
pkgdesc="Edit mp3 (and mp2) files without quality loss"
arch=('any')
url="https://www.puchalla-online.de/cutmp3.html"
license=('GPL')
depends=('readline')
source=("https://github.com/tarjanm-movidius/cutmp3/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('ea30f42fe462b5fdec7efc5510cae740f3f3ea007758cffcfa6cdb95657728b3')

build() {
	cd "${pkgname}-${pkgver}"
	export LDFLAGS="-lm -lreadline -Wl,--no-as-needed"
	make all
}

package() {
	cd "${pkgname}-${pkgver}"
	make PREFIX="${pkgdir}/usr" install
}

Please, can you tell me what changes do I need to make, after I type "yay -S cutemp3" ?

Last edited by pimpoli (2025-07-13 11:27:03)

Offline

#11 2025-07-13 13:00:35

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 71,575

Re: Unable to install cutmp3 [SOLVED]

I know what the PKGBUILD is and I explained what is wrong with it and I gave you multiple options to deal with it - including a literal code snippet.

Start by not typing "yay … anything", you build packages w/ makepkg: https://wiki.archlinux.org/title/Arch_User_Repository
Then read my last post, try to understand and adapt it.

There's no point in any of this if you refuse to use your own brain at least a bit.
And when you're done, you can head over to the AUR and leave a comment at the package about the situation and share your solution.

Offline

#12 2025-07-14 08:06:37

pimpoli
Member
Registered: 2025-07-12
Posts: 7

Re: Unable to install cutmp3 [SOLVED]

Sorry, but this is too complicated for me. I need, if you'd be so kind, a step-by-step guide on what I need to do.

Offline

#13 2025-07-14 08:16:56

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 71,575

Re: Unable to install cutmp3 [SOLVED]

You edit in the two lines I posted in #9 into the only reasonable location already discussed in #2 or you comment on the AUR package and ask the package maintainer to fix this - you can refer to this thread.
If all of that is impossible to you, buy a smartphone and watch tiktok videos.

Offline

#14 2025-07-14 10:05:25

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,565

Re: Unable to install cutmp3 [SOLVED]

Edit the PKGBUILD in your fav texteditor

replace the line make PREFIX="${pkgdir}/usr" install with

mkdir -p "${pkgdir}/usr/share/apps/konqueror/servicemenus"
make KDEDIR=${pkgdir}/usr PREFIX="${pkgdir}/usr" install

Save the PKGBUILD with the changes.
Run makepkg -s
If succesfull install the created package using pacman -U path-to-cutmp3-package


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#15 2025-07-14 11:22:19

a821
Member
Registered: 2012-10-31
Posts: 389

Re: Unable to install cutmp3 [SOLVED]

Another alternative is to get rid of the KDEDIR stuff since the logic is broken (add this function to the PKGBUILD).

prepare() {
   cd "${pkgname}-${pkgver}"
   sed -i '/KDEDIR/d' Makefile 
}
seth wrote:

... you comment on the AUR package and ask the package maintainer to fix this - you can refer to this thread.

Better option, the maintainer is active

Offline

#16 2025-07-14 16:32:57

pimpoli
Member
Registered: 2025-07-12
Posts: 7

Re: Unable to install cutmp3 [SOLVED]

I made the solution that Lone_Wolf posted and it was fine!
Solved! Thanks!

Offline

Board footer

Powered by FluxBB