cursor icon indicating copy to clipboard operation
cursor copied to clipboard

.deb install fails on Ubuntu 24.04 / Linux Mint 22 due to libglib2.0-0 → libglib2.0-0t64 rename

Open MichaelShoemaker opened this issue 1 month ago • 3 comments

The latest Cursor .deb package depends on libglib2.0-0 (>= 2.37.3), but on Ubuntu 24.04 and Mint 22 the package was renamed to libglib2.0-0t64 due to the time64 transition.

Suggestion:

  • Update the control file to depend on either libglib2.0-0 | libglib2.0-0t64

Tested on Linux Mint 22 (Wilma) x86_64, libglib2.0-0t64 version 2.80.0-6ubuntu3.4.

MichaelShoemaker avatar Nov 06 '25 16:11 MichaelShoemaker

The same issue here:

Image

Though I have the latest version:

sudo apt install --only-upgrade libglib2.0-0
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libglib2.0-0t64' instead of 'libglib2.0-0'
libglib2.0-0t64 is already the newest version (2.80.0-6ubuntu3.4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

KES777 avatar Nov 06 '25 19:11 KES777

@KES777 There are two work arounds I've found:

Force the install with (this is what I did): sudo dpkg -i cursor_<version>.deb || sudo apt -f install -y

Or repackage the deb yourself and install:

sudo apt install dpkg-dev
mkdir cursor-fix && cd cursor-fix
dpkg-deb -R ../cursor_<version>.deb .
sed -i 's/libglib2.0-0/libglib2.0-0t64/' DEBIAN/control
dpkg-deb -b . ../cursor-fixed.deb
sudo dpkg -i ../cursor-fixed.deb

MichaelShoemaker avatar Nov 06 '25 20:11 MichaelShoemaker

Just came here to post another workaround and found yours one.

sudo dpkg -i --ignore-depends=libglib2.0-0 cursor_2.0.63_amd64.deb

Output:

Selecting previously unselected package cursor.
(Reading database ... 464361 files and directories currently installed.)
Preparing to unpack cursor_2.0.63_amd64.deb ...
Unpacking cursor (2.0.63-1762369785) ...
Setting up cursor (2.0.63-1762369785) ...
Processing triggers for desktop-file-utils (0.27-2build1) ...
Processing triggers for bamfdaemon (0.5.6+22.04.20220217-0ubuntu5) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.36.0-1.1ubuntu3) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for shared-mime-info (2.4-4) ...

Installer asked to add cursor repository, I agreed. But after this sudo apt update failed:

sudo apt update
[sudo] password for kes:         
Hit:1 https://download.docker.com/linux/ubuntu noble InRelease
Hit:2 http://security.ubuntu.com/ubuntu noble-security InRelease                         
Hit:3 https://dl.winehq.org/wine-builds/ubuntu noble InRelease                           
Hit:4 https://packages.microsoft.com/repos/code stable InRelease                         
Ign:5 http://packages.linuxmint.com zara InRelease                                       
Hit:6 http://packages.linuxmint.com zara Release                                         
Hit:7 https://packages.openvpn.net/openvpn3/debian noble InRelease                       
Hit:8 http://archive.ubuntu.com/ubuntu noble InRelease                                   
Get:9 https://downloads.cursor.com/aptrepo stable InRelease [2 123 B]                    
Hit:10 http://archive.ubuntu.com/ubuntu noble-updates InRelease                          
Hit:11 http://apt.postgresql.org/pub/repos/apt noble-pgdg InRelease                      
Hit:13 https://downloads.1password.com/linux/debian/amd64 stable InRelease               
Hit:14 https://linux.teamviewer.com/deb stable InRelease                                 
Hit:15 http://archive.ubuntu.com/ubuntu noble-backports InRelease                        
Err:9 https://downloads.cursor.com/aptrepo stable InRelease                      
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 42A1772E62E492D6
Hit:16 https://ppa.launchpadcontent.net/cappelikan/ppa/ubuntu noble InRelease
Hit:17 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu noble InRelease
Hit:18 https://ppa.launchpadcontent.net/git-core/ppa/ubuntu noble InRelease
Hit:19 https://ppa.launchpadcontent.net/obsproject/obs-studio/ubuntu noble InRelease
Hit:20 https://ppa.launchpadcontent.net/ubuntu-toolchain-r/ppa/ubuntu noble InRelease
Reading package lists... Done
W: GPG error: https://downloads.cursor.com/aptrepo stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 42A1772E62E492D6
E: The repository 'https://downloads.cursor.com/aptrepo stable InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

UPD Seems this belongs to https://forum.cursor.com/t/installing-cursor-via-apt-deb-package-breaks-apt-update/132008

I run step 2 and 3 to resolve the issue: https://forum.cursor.com/t/installing-cursor-via-apt-deb-package-breaks-apt-update/132008/15

KES777 avatar Nov 06 '25 21:11 KES777