Geany Install Error

I want to install NVIDIA Jetson Geany but I get this error on the terminal screen;

The following packages have unmet dependencies:
 geany : Depends: geany-common (= 1.32-2) but 1.37.1-2~16.04 is to be installed
E: Unable to correct problems, you have held broken packages.

The method I use is

sudo apt-get install geany

Thanks in advance.

Hi @sentago,

I just installed Geany with typing “sudo apt-get install geany”. Can you check the network connection?

Regards

I have network connection. Problem;

The following packages have unmet dependencies:
 geany : Depends: geany-common (= 1.32-2) but 1.37.1-2~16.04 is to be installed
E: Unable to correct problems, you have held broken packages.

Hi,
We are able to install it on Jetson Nano/r32.5.1(Jetpack 4.5.1). Attach the log for reference:

nvidia@nvidia-desktop:~$ sudo apt install geany
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  apt-clone archdetect-deb bogl-bterm busybox-static cryptsetup-bin
  dpkg-repack gir1.2-timezonemap-1.0 gir1.2-xkl-1.0 grub-common
  kde-window-manager kinit kio kpackagetool5 kwayland-data kwin-common
  kwin-data kwin-x11 libdebian-installer4 libkdecorations2-5v5
  libkdecorations2private5v5 libkf5activities5 libkf5attica5
  libkf5completion-data libkf5completion5 libkf5declarative-data
  libkf5declarative5 libkf5doctools5 libkf5globalaccel-data libkf5globalaccel5
  libkf5globalaccelprivate5 libkf5idletime5 libkf5jobwidgets-data
  libkf5jobwidgets5 libkf5kcmutils-data libkf5kcmutils5 libkf5kiocore5
  libkf5kiontlm5 libkf5kiowidgets5 libkf5newstuff-data libkf5newstuff5
  libkf5newstuffcore5 libkf5package-data libkf5package5 libkf5plasma5
  libkf5quickaddons5 libkf5solid5 libkf5solid5-data libkf5sonnet5-data
  libkf5sonnetcore5 libkf5sonnetui5 libkf5textwidgets-data libkf5textwidgets5
  libkf5waylandclient5 libkf5waylandserver5 libkf5xmlgui-bin libkf5xmlgui-data
  libkf5xmlgui5 libkscreenlocker5 libkwin4-effect-builtins1 libkwineffects11
  libkwinglutils11 libkwinxrenderutils11 libqgsttools-p1 libqt5designer5
  libqt5help5 libqt5multimedia5 libqt5multimedia5-plugins
  libqt5multimediaquick-p5 libqt5multimediawidgets5 libqt5opengl5
  libqt5quickwidgets5 libqt5sql5 libqt5test5 libxcb-composite0 libxcb-cursor0
  libxcb-damage0 os-prober python3-dbus.mainloop.pyqt5 python3-icu python3-pam
  python3-pyqt5 python3-pyqt5.qtsvg python3-pyqt5.qtwebkit python3-sip
  qml-module-org-kde-kquickcontrolsaddons qml-module-qtmultimedia
  qml-module-qtquick2 rdate tasksel tasksel-data
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  geany-common
Suggested packages:
  libvte9 doc-base
The following NEW packages will be installed:
  geany geany-common
0 upgraded, 2 newly installed, 0 to remove and 173 not upgraded.
Need to get 2729 kB of archives.
After this operation, 10.9 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ports.ubuntu.com/ubuntu-ports bionic/universe arm64 geany-common all 1.32-2 [1816 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports bionic/universe arm64 geany arm64 1.32-2 [912 kB]
Fetched 2729 kB in 3s (1047 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package geany-common.
(Reading database ... 177707 files and directories currently installed.)
Preparing to unpack .../geany-common_1.32-2_all.deb ...
Unpacking geany-common (1.32-2) ...
Selecting previously unselected package geany.
Preparing to unpack .../geany_1.32-2_arm64.deb ...
Unpacking geany (1.32-2) ...
Setting up geany-common (1.32-2) ...
Setting up geany (1.32-2) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for libc-bin (2.27-3ubuntu1.3) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
nvidia@nvidia-desktop:~$

Probably you can re-flash the system image and try again.

Try this first:
sudo apt-get --fix-broken install

try also
sudo apt install geany-common

These methods did not work :(

You may post the output of the commands so that error messages help to figure out the cause.
Seems apt reports about a more recent version than the current standard bionic version for arm64.
I’d suspect you have added an extra repository into apt sources or manually installed package and this breaks the package dependancies. You may try removing manually added repositories.

You may try this and post the output of these commands if still failing:

sudo apt update
sudo apt dist-upgrade
apt-cache policy geany geany-common
sudo apt install geany

For reference, this is what I get on an up-to-date JestonNX running R32.5.1:

apt-cache policy geany geany-common
geany:
  Installed: (none)
  Candidate: 1.32-2
  Version table:
     1.32-2 500
        500 http://ports.ubuntu.com/ubuntu-ports bionic/universe arm64 Packages
geany-common:
  Installed: (none)
  Candidate: 1.32-2
  Version table:
     1.32-2 500
        500 http://ports.ubuntu.com/ubuntu-ports bionic/universe arm64 Packages

hi @Honey_Patouceul
i tried;

apt-cache policy geany geany-common
geany:
  Installed: (none)
  Candidate: 1.32-2
  Version table:
     1.32-2 500
        500 http://ports.ubuntu.com/ubuntu-ports bionic/universe arm64 Packages
geany-common:
  Installed: 1.37.1-2~16.04
  Candidate: 1.37.1-2~16.04
  Version table:
 *** 1.37.1-2~16.04 500
        500 http://ppa.launchpad.net/geany-dev/ppa/ubuntu bionic/main arm64 Packages
        100 /var/lib/dpkg/status
     1.32-2 500
        500 http://ports.ubuntu.com/ubuntu-ports bionic/universe arm64 Packages

how can i manually remove repositories?

first try to remove the 1.37 package:

sudo apt remove geany-common

Then go to software updater, and in settings uncheck the repository at http://ppa.launchpad.net/geany-dev, then update.

Check with apt-cache policy, you should have only the 1.32 versions and it should install.

1 Like

Thank you so much! @Honey_Patouceul
This worked.