Pamac says PKGBUILD does not exist but not true

$ pamac install clion-jre
Warning: clion-jre is only available from AUR
Preparing...
Cloning clion build files...
Generating clion-jre information...
==> ERROR: PKGBUILD does not exist.
Error: Failed to prepare transaction: Failed to generate clion-jre information

but I can see the PKGBUILD in GUI of pamac. What could I do?

The PKGBUILD does indeed exist… :arrow_down:

https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=clion

Strange… :face_with_raised_eyebrow:

Not saying this is the issue but isn’t it pamac build for the aur not pamac install?

3 Likes

maybe yay work try again as i tried it and it worked

pamac build clion-jre

Summary
Preparing...
Checking clion-jre dependencies...
Resolving dependencies...
Checking inter-conflicts...

To build (1):
  clion-jre  1:2021.2.3-1    AUR


Edit build files : [e]
Apply transaction ? [e/y/N] y

==== AUTHENTICATING FOR org.manjaro.pamac.commit ====
Authentication is required to install, update, or remove packages
Multiple identities can be used for authentication:
 1.  gunit
 2.  gunit2
Choose identity to authenticate as (1-2): 1
Password:
==== AUTHENTICATION COMPLETE ====
Cloning clion build files...
Generating clion information...

Building clion...
==> Making package: clion 1:2021.2.3-1 (Wednesday 24 November 2021 04:46:42 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading CLion-2021.2.3.tar.gz...

yay also downloaded the PKGBUILD

yay -s clion-jre

logs
1 aur/clion-jre 1:2021.2.3-1 (+198 2.16)
    C/C++ IDE. Free 30-day trial.
==> Packages to install (eg: 1 2 3, 1-3 or ^4)
==> 1
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1]  clion-1:2021.2.3-1 (clion-jre)

  1 clion (clion-jre)                        (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: PKGBUILD up to date, Skipping (1/0): clion
  1 clion (clion-jre)                        (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>

and how did you ran pamac install as on mine

$ pamac install clion-jre
Error: target not found: clion-jre

The pamac command for this package is working for me
Edit option shows PKGBUILD and jetbrains-clion.desktop files

pamac install clion-jre
Warning: clion-jre is only available from AUR
Preparing...
Checking clion-jre dependencies...
Resolving dependencies...
Checking inter-conflicts...

To build (1):
  clion-jre  1:2021.2.3-1    AUR


Edit build files : [e] 
Apply transaction ? [e/y/N] e

Cloning clion build files...
Generating clion information...

Checking clion-jre dependencies...
Resolving dependencies...
Checking inter-conflicts...

To build (1):
  clion-jre  1:2021.2.3-1    AUR


Edit build files : [e] 
Apply transaction ? [e/y/N]

Have you tried updating server mirrors?
Pacman-mirrors - Manjaro

thanks for your replies, pamac still can’t work :dizzy_face:

$ sudo pacman-mirrors --status    
Local mirror status for stable branch
Mirror #1   OK  08:18   China  https://mirrors.tuna.tsinghua.edu.cn/manjaro/
Mirror #2   OK  01:38   China  https://mirrors.sjtug.sjtu.edu.cn/manjaro/
Mirror #3   OK  08:18   China  https://mirrors.tuna.tsinghua.edu.cn/manjaro/
Mirror #4   OK  02:09   China  https://mirrors.huaweicloud.com/manjaro/
Mirror #5   OK  08:18   China  https://mirrors.ustc.edu.cn/manjaro/

$ pamac build clion-jre     
Preparing...
Cloning clion build files...
Generating clion-jre information...
==> ERROR: PKGBUILD does not exist.
Error: Failed to prepare transaction: Failed to generate clion-jre information

yay works

$ yay -S clion-jre
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1]  clion-1:2021.2.3-1 (clion-jre)

:: (1/1) Downloaded PKGBUILD: clion
  1 clion (clion-jre)                        (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 

But I still want to check what’s happened with pamac

This, this is extremely peculiar. Especially consideri8ng mine works perfectly:

$ pamac search clion-jre
clion-jre                                                                                                                                                                                                     1:2021.2.3-1  AUR
C/C++ IDE. Free 30-day trial.

And then:

$ pamac build clion-jre
Preparing...
Checking clion-jre dependencies...
Resolving dependencies...
Checking inter-conflicts...

To build (1):
clion-jre  1:2021.2.3-1    AUR


Edit build files : [e]
Apply transaction ? [e/y/N]

Transaction cancelled.

So, this is strange. To put it mildly. The only thing I can think of that is could possibly be is the character encoding. Or something of the sort…

oh one thing i forgot to mention is i just installed clion, and then i found its jre package is essential so i tried to install it.
maybe some local cache folder is wrong? how could i find it

I suspect, the mirror has the issue. Can you change other mirror and test if it works?

I was just able to install both clion and clion-jre without a problem.

Try changing your mirrors.

sudo shiny-mirrors config -h

I don’t know if it’ll make a difference, but try using shiny-mirrors, because it’s really quite cool.

Then try installing clion-jre again and ssee what happens.

1 Like

/tmp/pamac/aur-[your-user]

You don’t have to use AUR scripts as clion is part of Jetbrains toolbox.

Download the archive from CLion: A Cross-Platform IDE for C and C++ by JetBrains - unpack the archive and run the launcher from unpacked bin folder.

Or use the Toolbox App.

i removed clion and installed it with jre package in one time. now the environment to reproduce is gone. :grinning:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.