You are not logged in.

#1 2023-05-04 23:32:50

feng823
Member
Registered: 2018-08-06
Posts: 19

[Solved] Can not unintall package

Somethings strange happened.

As I fail to update gradle7 with yay, I tried to remove it. But I can not uninstall gradle7 with "error: target not found: gradle7" .

I have installed gradle8 successfully. Now how can I remove gradle7, so that I do not have to update it every time I make an upgrade??

Last edited by feng823 (2023-05-05 00:04:33)

Offline

#2 2023-05-04 23:48:37

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,560

Re: [Solved] Can not unintall package

Why do you think you have gradle7 installed?

Offline

#3 2023-05-04 23:55:09

feng823
Member
Registered: 2018-08-06
Posts: 19

Re: [Solved] Can not unintall package

Scimmia wrote:

Why do you think you have gradle7 installed?

Thank you for your reply.

Firstly, I did installed gradle ever before.
Secondly, when I run yay -Syu, it come with the following message.

:: 2 Packages to upgrade/install.
2  aur/gradle7                      -> 7.6-1
   (Make Dependency of java11-openjfx)
1  aur/java11-openjfx  11.0.18.u1-1 -> 11.0.19.u1-2
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
-> Excluding packages may cause partial upgrades and break systems

Now my problem is I can not update gradle7 , also can not uninstall it sad

Offline

#4 2023-05-04 23:59:55

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,560

Re: [Solved] Can not unintall package

You can't uninstall it because it's not installed. That's why there is no version number before '->". It's trying to pull it in because java11-openjfx needs it.

Offline

#5 2023-05-05 00:01:29

feng823
Member
Registered: 2018-08-06
Posts: 19

Re: [Solved] Can not unintall package

When I performed update, it ended with the following message.

> Configure project :
Invalid Java installation found at '/usr/lib/jvm/java-11-openjfx' (Common Linux Locations). It will be re-checked in the next build. This might have performance impact if it keeps failing. Run the 'javaToolchains' task for more details.

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':reporting:reportResources'.
> Could not resolve all task dependencies for configuration ':reporting:implementationResources'.
   > Could not resolve jquery:jquery.min:3.5.1.
     Required by:
         project :reporting
      > Could not resolve jquery:jquery.min:3.5.1.
         > Could not get resource 'https://ajax.googleapis.com/ajax/libs/j … ery.min.js'.
            > Could not HEAD 'https://ajax.googleapis.com/ajax/libs/j … ery.min.js'.
               > Connect to ajax.googleapis.com:443 [ajax.googleapis.com/0.0.0.0] failed: Connection refused (Connection refused)

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.6/userguide/c … e_warnings

BUILD FAILED in 1m
219 actionable tasks: 88 executed, 131 from cache

A build scan was not published as you have not authenticated with server 'ge.gradle.org'.
For more information, please see https://gradle.com/help/gradle-authenti … enterprise.
==> ERROR: A failure occurred in build().
    Aborting...
-> error making: gradle7-exit status 4
==> Making package: java11-openjfx 11.0.19.u1-2 (Thu 04 May 2023 05:00:00 PM CST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Missing dependencies:
  -> gradle7
==> ERROR: Could not resolve all dependencies.
-> error making: java11-openjfx-exit status 8
-> Failed to install the following packages. Manual intervention is required:
gradle7 - exit status 4

Offline

#6 2023-05-05 00:04:07

feng823
Member
Registered: 2018-08-06
Posts: 19

Re: [Solved] Can not unintall package

Scimmia wrote:

You can't uninstall it because it's not installed. That's why there is no version number before '->". It's trying to pull it in because java11-openjfx needs it.

Thank you for your help, proble solved after I removed java11-openjfx. smile

Offline

#7 2023-05-05 00:06:13

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,560

Re: [Solved] Can not unintall package

So your real problem is in building the gradle7 package because of a problem with java11-openjfx. I would suggest building it in a clean chroot: https://wiki.archlinux.org/title/Develo … ean_chroot

Offline

#8 2023-05-05 03:29:14

feng823
Member
Registered: 2018-08-06
Posts: 19

Re: [Solved] Can not unintall package

Scimmia wrote:

So your real problem is in building the gradle7 package because of a problem with java11-openjfx. I would suggest building it in a clean chroot: https://wiki.archlinux.org/title/Develo … ean_chroot

Thank you for your suggestion. I will try to build it further when it is needed.

Offline

#9 2023-05-05 04:05:06

feng823
Member
Registered: 2018-08-06
Posts: 19

Re: [Solved] Can not unintall package

Scimmia wrote:

Why do you think you have gradle7 installed?

I take gnuclad for gradle by mistake sad

Last edited by feng823 (2023-05-05 04:07:23)

Offline

Board footer

Powered by FluxBB