Package gradle is not available, but is referred to by another package - gradle

Tried to install gradle using below command.
sudo apt install gradle
But there is some problem with my machine throws the below message.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package gradle is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'gradle' has no installation candidate

Related

Mark a pip dependency as explicit installed

I want to differentiate between packages that I have explicitly installed, and packages pulled in as dependency. You can do that by using the --not-required option:
pip3 list --not-required --format freeze
However if I have a package that requires for example the requests package, then it will be automatically pulled in, if installed via requirements.txt. Installing requests via pip install requests will not put it in the list of --not-required packages. Not even adding it to the requirements.txt file would help setting this packages as required.
It seems that pip will always exclude those sub dependencies and only print those packages that are not dependent by another package. Is that true? How could I work around that without adding additional dependencies for package management. It seems that there is no such clever builtin option, right?

How can `setuptools` `dependency_links` be used with the latest master branch of a Git repository?

I want to be able to pip install a package that installs a dependency package from GitHub. I want the version of that dependency package it installs to be the latest code in the master branch of the repository (i.e. I am not referencing a release of the package) (and there is a different version of the package for Python 2 and for Python 3). When I attempt to do this, the dependency is ignored. How can I get the dependency to be picked up and installed?
In setup.py I have lines like the following:
dependency_links = [
"git+https://github.com/veox/python2-krakenex.git;python_version<'3.0'",
"git+https://github.com/veox/python3-krakenex.git;python_version>='3.0'",
],
When I run pip, I do it using commands of the following form:
sudo pip install package_name --upgrade --process-dependency-links
I don't think it's possible. dependency_links aren't versioned, they're simple a list of URLs for packages listed in install_requires; those packages could be versioned but not in your case — you're trying to provide 2 URLs for one package which would confuse pip.
Perhaps you could rename one of the packages and provide package names
in the URLs:
install_requires=[
'krakenex;python_version<3',
'krakenex3;python_version>=3',
],
dependency_links = [
"git+https://github.com/veox/python2-krakenex.git#egg=krakenex;python_version<'3.0'",
"git+https://github.com/veox/python3-krakenex.git#egg=krakenex3;python_version>='3.0'",
],

Avoid repetitvely downloading packages when upgrading several environments?

I have several different environments in anaconda. When I try to upgrade all those environments via conda update --all after use "source .../activate [env ]" it downloadeds all packages for each environment separately.
However, most packages are exactly the same... is there any way I can avoid downloading the same packages for each environment?
When updating or installing a package with conda it will check if that exact package already exists in the ~/anaconda/pkgs directory. If the exact package is present conda will link this package rather than downloading it again. You should see the list of packages being downloaded in the output:
The following packages will be downloaded:
package | build
---------------------------|-----------------
and what is being installed to the environment:
The following packages will be UPDATED:
Packages listed under the "UPDATED" section and not under the "downloaded" section are being linked from the ~/anaconda/pkgs/ directory.

How to install 'x2goserver' and 'x2goserver-xsession' on Ubuntu?

I am trying to install x2go server on a remote machine with Ubuntu 14.10.
This is how I try to do it:
apt-add-repository ppa:x2go/stable
apt-get update
apt-get install x2goserver x2goserver-xsession
It was all going well until the last code line, and it outputs:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package x2goserver-xsession is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package x2goserver is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'x2goserver' has no installation candidate
E: Package 'x2goserver-xsession' has no installation candidate
I just want to connect the remote machine by using x2goclient which is installed on my personal computer.
Anyone has an idea how to solve this?

Mounting HDFS in Ubuntu platform

Using Ubuntu platform, I am trying to mount HDFS (hadoop 2.2) using HDFS-FUSE but it keeps failing as shown below:
$ sudo apt-get install hadoop-0.20-fuse
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
hadoop-0.20-fuse : Depends: fuse-utils but it is not installable
E: Unable to correct problems, you have held broken packages.
$ sudo apt-get install fuse-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package fuse-utils is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'fuse-utils' has no installation candidate
Could you anybody let me know if I need to use any other package to get this working.
Even i get the same error. Things have changed it seems, if you want to mount HDFS. try something like this.
http://www.spaggiari.org/index.php/hbase/hadoop-hdfs-fuse-installation#.U5BROPmSwkM

Resources