Error installing sdkmanager

I am trying to download and install the sdkmanger, but get the following errors

Reading package lists… Done
Building dependency tree
Reading state information… Done
Note, selecting ‘sdkmanager:amd64’ instead of ‘./sdkmanager_0.9.11-3405_amd64.deb’
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:
sdkmanager:amd64 : Depends: libgconf-2-4:amd64 but it is not installable
Depends: libcanberra-gtk-module:amd64 but it is not installable
E: Unable to correct problems, you have held broken packages.

I saw a response here and I tried the sudo commands in the answer, but did not have success.
Any help would be greatly appreciated! I want to get my Jetson TX2 loaded and working on it, but I am unable to because of this problem.

If you first run this, does anything change?

sudo apt update
sudo apt --fix-broken install
sudo apt-get install libgconf-2-4 libcanberra-gtk-module

If not, what messages do you see from those commands?

I am so sorry. I was trying to use dpkg and it was failing. I used sudo apt install and it worked. Thank you so much for the help

Correct. “sudo apt install ./sdkmanager_0.9.11-3405_amd64.deb” will also install the dependency packages.

So I was unable to install the sdkmanager with ubuntu 20. So I downloaded 18 and am getting this same issue. So I tried your commands and I get this error message

ubuntu@ubuntu:~/Downloads$ sudo apt-get install libgconf-2-4 libcanberra-gtk-module
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package libcanberra-gtk-module 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: Unable to locate package libgconf-2-4
E: Package ‘libcanberra-gtk-module’ has no installation candidate

What do you see from these on the Ubuntu 18.04 host PC?
dpkg -l | egrep '(libgconf|libcanberra-gtk-module)'
apt search libgconf

Does this complete?

sudo apt update
sudo apt --fix-broken install

dpkg -l | egrep '(libgconf|libcanberra-gtk-module)'
I see
dpkg-query: no packages found matching egrep
dpkg-query: no packages found matching (libconf|libcanberra-gtx-module)

apt search libgconf
I see
Sorting… Done
Full Text Search… Done

sudo apt update This completes and says all packages are up to date

sudo apt --fix-broken install

This just says
Reading package lists…Done
Building dependency tree
Reading state information… Done
0 upgraded, - newly installed, 0 to remove and 0 not upgraded

The dpkg error does not make sense. It seems it thinks egrep is a package, or the “pipe” character (“|”) was not actually the character used. Maybe you don’t have egrep and the pipe confused it. Do you see anything from “which egrep”?

I am also wondering if perhaps the lack of finding libgconf is due instead to either network or repository setup. I installed this on my NX, and it appears to be provided by the “universe” repository. On your Ubuntu 18.04 host PC, what do you see from:
grep -i 'universe' /etc/apt/sources.list

It does not show anything. It just has the next command prompt line.

This means something is wrong with the base install. Your repositories are not configured. It is a bit like using a telephone, but not having any telephone numbers. Can you copy your “/etc/apt/sources.list” to name “sources.txt”, and attach this in the forum?

Just as a test, does this show any packages? It isn’t important which packages show up, just knowing if the base repository is functioning for you is the only purpose of this test:
apt search bash

cat /etc/apt/sources.list
deb cdrom:[Ubuntu 18.04.5 LTS Bionic Beaver - Release amd64 (20200806.1)]/ bionic main restricted
deb Index of /ubuntu bionic main restricted
deb Index of /ubuntu bionic-security main restricted
deb Index of /ubuntu bionic-updates main restricted

apt search bash
Sorting… Done
Full Text Search… Done
bash/bionic-updates,now 4.4.18-2ubuntu1.2 amd64 [installed,automatic]
GNU Bourne Again SHell

bash-completion/bionic,now 1:2.8-1ubuntu1 all [installed,automatic]
programmable completion for the bash shell

bash-doc/bionic-updates 4.4.18-2ubuntu1.2 all
Documentation and examples for the GNU Bourne Again SHell

command-not-found/bionic-updates,now 18.04.5 all [installed,automatic]
Suggest installation of packages in interactive bash sessions

dash/bionic,now 0.5.8-2.10 amd64 [installed]
POSIX-compliant shell

devscripts/bionic-security,bionic-updates 2.17.12ubuntu1.1 amd64
scripts to make the life of a Debian Package maintainer easier

grub-efi-amd64/bionic-updates 2.02-2ubuntu8.18 amd64
GRand Unified Bootloader, version 2 (EFI-AMD64 version)

grub-efi-amd64-bin/bionic-updates 2.02-2ubuntu8.18 amd64
GRand Unified Bootloader, version 2 (EFI-AMD64 binaries)

grub-efi-amd64-signed/bionic-updates 1.93.20+2.02-2ubuntu8.18 amd64
GRand Unified Bootloader, version 2 (EFI-AMD64 version, signed)

grub-efi-ia32/bionic-updates 2.02-2ubuntu8.18 amd64
GRand Unified Bootloader, version 2 (EFI-IA32 version)

grub-efi-ia32-bin/bionic-updates 2.02-2ubuntu8.18 amd64
GRand Unified Bootloader, version 2 (EFI-IA32 binaries)

grub-ieee1275/bionic-updates 2.02-2ubuntu8.18 amd64
GRand Unified Bootloader, version 2 (Open Firmware version)

grub-ieee1275-bin/bionic-updates 2.02-2ubuntu8.18 amd64
GRand Unified Bootloader, version 2 (Open Firmware binaries)

grub-pc/bionic-updates,now 2.02-2ubuntu8.18 amd64 [installed,automatic]
GRand Unified Bootloader, version 2 (PC/BIOS version)

grub-pc-bin/bionic-updates,now 2.02-2ubuntu8.18 amd64 [installed,automatic]
GRand Unified Bootloader, version 2 (PC/BIOS binaries)

grub-xen/bionic-updates 2.02-2ubuntu8.18 amd64
GRand Unified Bootloader, version 2 (Xen version)

grub-xen-bin/bionic-updates 2.02-2ubuntu8.18 amd64
GRand Unified Bootloader, version 2 (Xen binaries)

licensecheck/bionic 3.0.31-2 all
simple license checker for source files

So we can verify that basic setup is working on the host PC. We can also verify that universe is not enabled. See this:
https://itsfoss.com/ubuntu-repositories/
…then enable “universe”, and try to add the other packages again which it could not find a candidate for.

1 Like

ok I added the universe repo. Which packages am I trying to add again?
These?
dpkg -l | egrep '(libgconf|libcanberra-gtk-module)'

Yes. Does anything show up indicating install now if you run this:

sudo apt update
sudo apt --fix-broken install
sudo apt-get install libgconf-2-4 libcanberra-gtk-module

(I think the packages which were previously not visible will now be found since you’ve enabled repository “universe”)

1 Like

I ended up getting a clean install using a different computer. Thank you so much for your help.