Unable to install cutmp3

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?

Can you share the full output from the command?

Konqueror isn’t part of KDE Plasma, Dolphin replaced it as a file manager back in 2006. And this command line tool should work without it just fine.

Could it be that this has been only a warning instead of an error ?

I’ve Cinnamon , not kde

'cutmp3.desktop' -> '/usr/share/apps/konqueror/servicemenus/cutmp3.desktop'
install: impossibile creare il file regolare '/usr/share/apps/konqueror/servicemenus/cutmp3.desktop': Permesso negato

We need to see all of it, not just the error. Also, preferably in English.

If you could run:

LANG=C yay -S cutmp3

Then share 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

That appears broken. It looks like it is trying to write to /usr during the build process. That should never happen.

I would report that to the maintainer here: https://aur.archlinux.org/packages/cutmp3

I would share the output from ==> Starting package()… to the end. The context of the error is important.

Install works for me, might be something deeper?

yay -S cutmp3                                                                                       22:18:05
AUR Explicit (1): cutmp3-4.0-1
:: (1/1) Downloaded PKGBUILD: cutmp3
  1 cutmp3                           (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> None
  1 cutmp3                           (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> None
==> Making package: cutmp3 4.0-1 (Fri 11 Jul 2025 22:18:10 BST)
==> Retrieving sources...
  -> Downloading v4.0.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 55470    0 55470    0     0   110k      0 --:--:-- --:--:-- --:--:--  110k
==> 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 (Fri 11 Jul 2025 22:18:11 BST)
==> 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 (Fri 11 Jul 2025 22:18:12 BST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> 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/xircon/.cache/yay/cutmp3/pkg/cutmp3/usr'
install: creating directory '/home/xircon/.cache/yay/cutmp3/pkg/cutmp3/usr/bin'
install: creating directory '/home/xircon/.cache/yay/cutmp3/pkg/cutmp3/usr/share'
install: creating directory '/home/xircon/.cache/yay/cutmp3/pkg/cutmp3/usr/share/man'
install: creating directory '/home/xircon/.cache/yay/cutmp3/pkg/cutmp3/usr/share/man/man1'
install: creating directory '/home/xircon/.cache/yay/cutmp3/pkg/cutmp3/usr/share/doc'
install: creating directory '/home/xircon/.cache/yay/cutmp3/pkg/cutmp3/usr/share/doc/cutmp3-4.0'
strip: copy from `cutmp3' [elf64-x86-64] to `/home/xircon/.cache/yay/cutmp3/pkg/cutmp3/usr/bin/cutmp3' [elf64-x86-64]
cutmp3.1:        55.1% -- replaced with /home/xircon/.cache/yay/cutmp3/pkg/cutmp3/usr/share/man/man1/cutmp3.1.gz
'README' -> '/home/xircon/.cache/yay/cutmp3/pkg/cutmp3/usr/share/doc/cutmp3-4.0/README'
'README.timetable' -> '/home/xircon/.cache/yay/cutmp3/pkg/cutmp3/usr/share/doc/cutmp3-4.0/README.timetable'
'USAGE' -> '/home/xircon/.cache/yay/cutmp3/pkg/cutmp3/usr/share/doc/cutmp3-4.0/USAGE'
==> Tidying install...
  -> Purging unreproducible ruby files...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "cutmp3"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: cutmp3 4.0-1 (Fri 11 Jul 2025 22:18:15 BST)
==> Cleaning up...
loading packages...
resolving dependencies...
looking for conflicting packages...

Package (1)  New Version  Net Change

cutmp3       4.0-1          0.10 MiB

Total Installed Size:  0.10 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring                                                    [----------------------------------------------] 100%
(1/1) checking package integrity                                                  [----------------------------------------------] 100%
(1/1) loading package files                                                       [----------------------------------------------] 100%
(1/1) checking for file conflicts                                                 [----------------------------------------------] 100%
:: Processing package changes...
(1/1) installing cutmp3                                                           [----------------------------------------------] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...

How I can report that to the maintainer ?

Once you’ve registered an account and are logged in, you can access the contact details of the maintainer. Or compose a comment on that package https://aur.archlinux.org/packages/cutmp3.

Or, as the pkgbuild simply fetches the latest build via github, you could also open an issue there https://github.com/tarjanm-movidius/cutmp3. It’s not the pkgbuild which may cause the issue, it’s line 51 within the makefile on github. This hasn’t been changed within the last two years.

I didn’t faced that issue and could it install it without hickups with pretty much an identical output log than the one @xircon has posted earlier.

This issue has also been brought up in a thread at the Arch Forums.

Pimpoli is obviously not only active here, but on the arch forums as well. :wink:

1 Like

I just noticed it was the same OP. :open_mouth:

This whole path seems to be wrong. There is no /usr/share/apps, at least not on my systems. The .desktop file should go to /usr/share/applications.

Well, and then what’s the solution?

@dalto said it already: