Unable to install gtk+3

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
Dictador
Posts: 11
Joined: Tue Sep 05, 2023 3:44 pm

Unable to install gtk+3

#1 Post by Dictador »

I am trying to compile "gaw3" pspice waveform viewer but I am getting problems with gtk+3.
So, when I run ./configure I get the following error:

Code: Select all

checking pkg-config is at least version 0.9.0... yes
checking for gtk+-3.0 >= 3.0.0... no
configure: error: Cannot find gtk+ 3.x or later, please install gtk+.
I try to install gtk3 libraries but I get dependency errors. Can anyone help?

Code: Select all

sudo apt-get install  libgtk-3-dev

Code: Select all

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:
 libatk-bridge2.0-dev : Depends: libatk-bridge2.0-0 (= 2.46.0-5) but 2.48.3-1~bpo12+1 is to be installed
                        Depends: libatspi2.0-dev but it is not going to be installed
 libatk1.0-dev : Depends: libatk1.0-0 (= 2.46.0-5) but 2.48.3-1~bpo12+1 is to be installed
                 Depends: gir1.2-atk-1.0 (= 2.46.0-5) but 2.48.3-1~bpo12+1 is to be installed
E: Unable to correct problems, you have held broken packages.

Code: Select all

System:
  Kernel: 6.1.0-12-amd64 [6.1.52-1] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0 clocksource: tsc
    available: acpi_pm parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.0-12-amd64 root=UUID=<filter> ro
    acpi_osi=linux quiet splash
  Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 info: xfce4-panel wm: xfwm v: 4.18.0 vt: 7
    dm: LightDM v: 1.26.0 Distro: MX-23.1_x64 Libretto July 31  2023 base: Debian GNU/Linux 12
    (bookworm)
Machine:
  Type: Laptop System: Dell product: Latitude 5500 v: N/A serial: <superuser required> Chassis:
    type: 10 serial: <superuser required>
  Mobo: Dell model: 0M14W7 v: A01 serial: <superuser required> UEFI: Dell v: 1.25.0
    date: 07/05/2023
Battery:
  ID-1: BAT0 charge: 36.5 Wh (78.7%) condition: 46.4/68.0 Wh (68.2%) volts: 7.8 min: 7.6
    model: LGC-LGC8.948 DELL X77XY06 type: Li-ion serial: <filter> status: discharging
CPU:
  Info: model: Intel Core i5-8365U bits: 64 type: MT MCP arch: Comet/Whiskey Lake note: check
    gen: core 8 level: v3 note: check built: 2018 process: Intel 14nm family: 6 model-id: 0x8E (142)
    stepping: 0xC (12) microcode: 0xF8
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache: L1: 256 KiB
    desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB L3: 6 MiB desc: 1x6 MiB
  Speed (MHz): avg: 889 high: 900 min/max: 400/4100 scaling: driver: intel_pstate
    governor: powersave cores: 1: 900 2: 872 3: 887 4: 900 5: 900 6: 857 7: 900 8: 900
    bogomips: 30399
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling mitigation: Microcode
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: retbleed mitigation: Enhanced IBRS
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB filling, PBRSB-eIBRS: SW
    sequence
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort mitigation: TSX disabled
Graphics:
  Device-1: Intel WhiskeyLake-U GT2 [UHD Graphics 620] vendor: Dell driver: i915 v: kernel
    arch: Gen-9.5 process: Intel 14nm built: 2016-20 ports: active: eDP-1
    empty: DP-1,HDMI-A-1,HDMI-A-2 bus-ID: 00:02.0 chip-ID: 8086:3ea0 class-ID: 0300
  Device-2: Realtek Integrated_Webcam_HD driver: uvcvideo type: USB rev: 2.0 speed: 480 Mb/s
    lanes: 1 mode: 2.0 bus-ID: 1-6:3 chip-ID: 0bda:5676 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.18.0 driver: X:
    loaded: modesetting unloaded: fbdev,vesa dri: iris gpu: i915 display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.21x7.99") s-diag: 414mm (16.31")
  Monitor-1: eDP-1 model: ChiMei InnoLux 0x1500 built: 2018 res: 1366x768 hz: 60 dpi: 101
    gamma: 1.2 size: 344x193mm (13.54x7.6") diag: 394mm (15.5") ratio: 16:9 modes: 1366x768
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: Mesa Intel UHD Graphics 620 (WHL GT2)
    direct-render: Yes
Audio:
  Device-1: Intel Cannon Point-LP High Definition Audio vendor: Dell driver: snd_hda_intel
    v: kernel alternate: snd_soc_skl,snd_sof_pci_intel_cnl bus-ID: 00:1f.3 chip-ID: 8086:9dc8
    class-ID: 0403
  API: ALSA v: k6.1.0-12-amd64 status: kernel-api with: aoss type: oss-emulator
    tools: alsactl,alsamixer,alsamixergui,amixer
  Server-1: PulseAudio v: 16.1 status: active tools: pacat,pactl,pavucontrol
Network:
  Device-1: Intel Ethernet I219-LM vendor: Dell driver: e1000e v: kernel port: N/A bus-ID: 00:1f.6
    chip-ID: 8086:15bd class-ID: 0200
  IF: eth0 state: down mac: <filter>
  Device-2: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter vendor: Dell
    driver: ath10k_pci v: kernel modules: wl pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 02:00.0
    chip-ID: 168c:003e class-ID: 0280 temp: 48.0 C
  IF: wlan0 state: up mac: <filter>
Bluetooth:
  Device-1: Qualcomm Atheros driver: btusb v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s lanes: 1
    mode: 1.1 bus-ID: 1-10:4 chip-ID: 0cf3:e007 class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 3 state: down bt-service: N/A rfk-block: hardware: no
    software: yes address: <filter>
  Info: acl-mtu: 1024:8 sco-mtu: 50:8 link-policy: rswitch hold sniff
    link-mode: peripheral accept
Drives:
  Local Storage: total: 1.86 TiB used: 130.23 GiB (6.8%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: A-Data model: LEGEND 850 size: 1.86 TiB block-size:
    physical: 512 B logical: 512 B speed: 63.2 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: V1223B0 temp: 29.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 282.68 GiB size: 277.68 GiB (98.23%) used: 130.18 GiB (46.9%) fs: ext4
    dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 128 MiB size: 126 MiB (98.45%) used: 53.5 MiB (42.5%) fs: vfat
    dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: partition size: 15.62 GiB used: 1.8 MiB (0.0%) priority: -2
    dev: /dev/nvme0n1p3 maj-min: 259:3
Sensors:
  System Temperatures: cpu: 42.0 C pch: 38.0 C mobo: 35.0 C
  Fan Speeds (rpm): cpu: 0
Repos:
  Packages: pm: dpkg pkgs: 2734 libs: 1303 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm
    pkgs: 0 pm: flatpak pkgs: 0
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian/ bookworm-updates non-free-firmware non-free contrib main
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian/ bookworm non-free-firmware non-free contrib main
    2: deb http://security.debian.org/debian-security/ bookworm-security main contrib non-free non-free-firmware
  No active apt repos in: /etc/apt/sources.list.d/element-io.list
  No active apt repos in: /etc/apt/sources.list.d/jitsi-stable.list
  No active apt repos in: /etc/apt/sources.list.d/miktex.list
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb https://linux.rub.de/mxlinux/packages/mx/repo/ bookworm main non-free
  No active apt repos in: /etc/apt/sources.list.d/teams.list
  No active apt repos in: /etc/apt/sources.list.d/zerotier.list
Info:
  Processes: 318 Uptime: 14d 23h 25m wakeups: 16847 Memory: total: 16 GiB available: 15.44 GiB
  used: 8.11 GiB (52.6%) Init: SysVinit v: 3.06 runlevel: 5 default: graphical tool: systemctl
  Compilers: gcc: 12.2.0 alt: 12 Client: shell wrapper v: 5.2.15-release inxi: 3.3.29
Boot Mode: UEFI

User avatar
dolphin_oracle
Developer
Posts: 22835
Joined: Sun Dec 16, 2007 12:17 pm

Re: Unable to install gtk+3

#2 Post by dolphin_oracle »

You’ll need to specify to apt to use the backports repo i think.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

User avatar
Stevo
Developer
Posts: 14911
Joined: Fri Dec 15, 2006 7:07 pm

Re: Unable to install gtk+3

#3 Post by Stevo »

Either that, or use aptitude's super (not-cow) powers to make the libraries match standard Bookworm's, if you don't really require those backports updated versions.

Or do the compiling in a vanilla Bookworm schroot.
MXPI = MX Package Installer
QSI = Quick System Info from menu
The MX Test repository is mostly backports; not the same as Debian testing

Dictador
Posts: 11
Joined: Tue Sep 05, 2023 3:44 pm

Re: Unable to install gtk+3

#4 Post by Dictador »

Specifying backports repo does not change anything.

Code: Select all

Package libgtk-3-dev 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
However the following packages replace it:
  libgtk-3-common
And when I try to install libgtk-3-common I get:

Code: Select all

libgtk-3-common is already the newest version (3.24.38-2~deb12u1).
I do not know what you mean by "use aptitude's super (not-cow) powers to make the libraries match standard Bookworm's, "

User avatar
timkb4cq
Developer
Posts: 3633
Joined: Wed Jul 12, 2006 4:05 pm

Re: Unable to install gtk+3

#5 Post by timkb4cq »

The problem is that at some point you installed something from bookworm-backports that brought in some gtk3 related libraries. At this point the easiest way out is probably to use the Backports tab in MXPI to manually install
libatk-bridge2.0-dev
libatk-bridge2.0-0
libatk1.0-dev
libatk1.0-0
gir1.2-atk-1.0
libatspi2.0-dev

Once all the versions of those dependencies are properly matched up, you should be able to install libgtk-3-dev from the main debian repo (there is no backport version of that one).
HP Pavillion TP01, AMD Ryzen 3 5300G (quad core), Crucial 500GB SSD, Toshiba 6TB 7200rpm
Dell Inspiron 15, AMD Ryzen 7 2700u (quad core). Sabrent 500GB nvme, Seagate 1TB

User avatar
Stevo
Developer
Posts: 14911
Joined: Fri Dec 15, 2006 7:07 pm

Re: Unable to install gtk+3

#6 Post by Stevo »

The super cow stuff refers to some Easter Egg "humor" in apt and aptitude. You can easily find out what with a web search, but try

Code: Select all

apt moo
apt moo moo
apt moo moo moo
then,

Code: Select all

aptitude moo
aptitude -v moo
aptitude -vv moo
and keep adding more v's.

Code: Select all

$ apt moo moo
                 (__)  
         _______~(..)~ 
           ,----\(oo) 
          /|____|,'    
         * /"\ /\   
           ~ ~ ~ ~     
..."Have you mooed today?"...
MXPI = MX Package Installer
QSI = Quick System Info from menu
The MX Test repository is mostly backports; not the same as Debian testing

User avatar
operadude
Posts: 1081
Joined: Tue Nov 05, 2019 12:08 am

Re: Unable to install gtk+3

#7 Post by operadude »

Stevo wrote: Mon Dec 25, 2023 2:15 am The super cow stuff refers to some Easter Egg "humor" in apt and aptitude. You can easily find out what with a web search, but try

Code: Select all

apt moo
apt moo moo
apt moo moo moo
then,

Code: Select all

aptitude moo
aptitude -v moo
aptitude -vv moo
and keep adding more v's.

Code: Select all

$ apt moo moo
                 (__)  
         _______~(..)~ 
           ,----\(oo) 
          /|____|,'    
         * /"\ /\   
           ~ ~ ~ ~     
..."Have you mooed today?"...
Love It :exclamation: :popcorn: :happy:

Post Reply

Return to “MX Help”