It looks like you removed /usr/bin/chimerax by hand before removing the package.  If you add the symbolic link back with "sudo ln -s ../../usr/lib/ucsf-chimerax/bin/ChimeraX /usr/bin/chimerax", it should work.  That is the symbolic link for Ubuntu.  For RHEL derived systems, like Rocky and AlmaLinux, it would be ../libexec/UCSF-ChimeraX/bin/ChimeraX.

    -- Greg

On 1/6/2025 2:25 AM, saverio via ChimeraX-users wrote:
Hi,
surely for my errors in uninstalling the previous version ,
I'm receiving the following:

$ sudo apt remove --purge ucsf-chimerax
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgdk-pixbuf-xlib-2.0-0 libgdk-pixbuf2.0-0 libosmesa6 libxcb-cursor0
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  ucsf-chimerax*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
(Reading database ... 524167 files and directories currently installed.)
Removing ucsf-chimerax (1.9ubuntu24.04) ...
Deregister desktop menu and associated mime types
/var/lib/dpkg/info/ucsf-chimerax.prerm: 4: chimerax: not found
dpkg: error processing package ucsf-chimerax (--remove):
 installed ucsf-chimerax package pre-removal script subprocess returned error exit status 127
dpkg: too many errors, stopping
Errors were encountered while processing:
 ucsf-chimerax
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

$ dpkg --get-selections | grep ucsf
ucsf-chimerax					install


$ chimerax
chimerax: command not found
Any suggestions to recover?

Thanks.

Saverio


_______________________________________________
ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu
To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu
Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/