cannot install libgtk-3-dev

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
buscon
Level 1
Level 1
Posts: 48
Joined: Tue Sep 19, 2017 4:27 pm

cannot install libgtk-3-dev

Post by buscon »

Hi,

I'm running Mint 20.3 64bit with cinnamon.

For some unknown reason I cannot install libgtk-3-dev
here is the error I get:

Code: Select all

$ sudo apt install libgtk-3-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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:
 libgtk-3-dev : Depends: libatk-bridge2.0-dev but it is not going to be installed
                Depends: libatk1.0-dev (>= 2.15.1) but it is not going to be installed
                Depends: libcairo2-dev (>= 1.14.0) but it is not going to be installed
                Depends: libgdk-pixbuf2.0-dev (>= 2.40.0) but it is not going to be installed
                Depends: libglib2.0-dev (>= 2.57.2) but it is not going to be installed
                Depends: libpango1.0-dev (>= 1.41) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
any ideas suggestion on how to fix it?


here is my inxi -Fxxxrz

Code: Select all

System:    Kernel: 5.13.0-30-lowlatency x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 5.2.7 wm: muffin 5.2.1 
           dm: LightDM 1.30.0 Distro: Linux Mint 20.3 Una base: Ubuntu 20.04 focal 
Machine:   Type: Laptop System: LENOVO product: 20QDCTO1WW v: ThinkPad X1 Carbon 7th serial: <filter> Chassis: type: 10 
           serial: <filter> 
           Mobo: LENOVO model: 20QDCTO1WW v: SDK0J40697 WIN serial: <filter> UEFI: LENOVO v: N2HET60W (1.43 ) 
           date: 01/14/2021 
Battery:   ID-1: BAT0 charge: 50.0 Wh condition: 52.0/51.0 Wh (102%) volts: 17.0/15.4 model: LGC 02DL004 type: Li-poly 
           serial: <filter> status: Unknown cycles: 214 
           Device-1: hidpp_battery_1 model: Logitech M720 Triathlon Multi-Device Mouse serial: <filter> 
           charge: 55% (should be ignored) rechargeable: yes status: Discharging 
CPU:       Topology: Quad Core model: Intel Core i7-8665U bits: 64 type: MT MCP arch: Kaby Lake rev: C L2 cache: 8192 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 33599 
           Speed: 800 MHz min/max: 400/4800 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800 7: 800 8: 796 
Graphics:  Device-1: Intel WhiskeyLake-U GT2 [UHD Graphics 620] vendor: Lenovo driver: i915 v: kernel bus ID: 00:02.0 
           chip ID: 8086:3ea0 
           Display: x11 server: X.Org 1.20.13 driver: modesetting unloaded: fbdev,vesa resolution: 3840x2160~30Hz 
           OpenGL: renderer: Mesa Intel UHD Graphics 620 (WHL GT2) v: 4.6 Mesa 21.2.6 direct render: Yes 
Audio:     Device-1: Intel Cannon Point-LP High Definition Audio vendor: Lenovo driver: sof-audio-pci-intel-cnl 
           bus ID: 00:1f.3 chip ID: 8086:9dc8 
           Device-2: ARC Camera type: USB driver: snd-usb-audio,uvcvideo bus ID: 1-2.3.1.4:18 chip ID: 05a3:9331 
           serial: <filter> 
           Device-3: BEHRINGER type: USB driver: snd-usb-audio bus ID: 1-2.1:13 chip ID: 1397:0508 
           Sound Server: ALSA v: k5.13.0-30-lowlatency 
Network:   Device-1: Intel Cannon Point-LP CNVi [Wireless-AC] driver: iwlwifi v: kernel port: 2000 bus ID: 00:14.3 
           chip ID: 8086:9df0 
           IF: wlp0s20f3 state: up mac: <filter> 
           Device-2: Intel Ethernet I219-LM vendor: Lenovo driver: e1000e v: kernel port: efa0 bus ID: 00:1f.6 
           chip ID: 8086:15bd 
           IF: enp0s31f6 state: down mac: <filter> 
           Device-3: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152 bus ID: 4-1.2:6 chip ID: 0bda:8153 
           serial: <filter> 
           IF: enx001cc24ce73d state: down mac: <filter> 
Drives:    Local Storage: total: 476.94 GiB used: 405.88 GiB (85.1%) 
           ID-1: /dev/nvme0n1 vendor: Western Digital model: PC SN730 SDBQNTY-512G-1001 size: 476.94 GiB speed: 31.6 Gb/s 
           lanes: 4 serial: <filter> rev: 11170101 scheme: GPT 
Partition: ID-1: / size: 46.02 GiB used: 33.76 GiB (73.3%) fs: ext4 dev: /dev/nvme0n1p5 
           ID-2: /home size: 274.01 GiB used: 247.69 GiB (90.4%) fs: ext4 dev: /dev/nvme0n1p6 
Sensors:   System Temperatures: cpu: 58.0 C mobo: N/A 
           Fan Speeds (RPM): fan-1: 3405 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/additional-repositories.list 
           1: deb [arch=amd64,arm64,ppc64el] https://mirrors.bkns.vn/mariadb/repo/10.6/ubuntu focal main
           No active apt repos in: /etc/apt/sources.list.d/atareao-telegram-focal.list 
           No active apt repos in: /etc/apt/sources.list.d/ethereum-ethereum-focal.list 
           Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
           1: deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
           No active apt repos in: /etc/apt/sources.list.d/gpodder-ppa-focal.list 
           No active apt repos in: /etc/apt/sources.list.d/home:ungoogled_chromium.list 
           Active apt repos in: /etc/apt/sources.list.d/jitsi-stable.list 
           1: deb [signed-by=/usr/share/keyrings/jitsi-keyring.gpg] https://download.jitsi.org stable/
           Active apt repos in: /etc/apt/sources.list.d/keepsolidinc.list 
           1: deb http://apt.keepsolid.com/linuxmint ulyssa main
           Active apt repos in: /etc/apt/sources.list.d/kxstudio-debian-ppas-2.list 
           1: deb http://ppa.launchpad.net/kxstudio-debian/libs/ubuntu focal main
           2: deb http://ppa.launchpad.net/kxstudio-debian/plugins/ubuntu focal main
           3: deb http://ppa.launchpad.net/kxstudio-debian/apps/ubuntu focal main
           4: deb http://ppa.launchpad.net/kxstudio-debian/kxstudio/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/kxstudio-debian-ppas.list 
           1: deb http://ppa.launchpad.net/kxstudio-debian/libs/ubuntu bionic main
           2: deb http://ppa.launchpad.net/kxstudio-debian/music/ubuntu bionic main
           3: deb http://ppa.launchpad.net/kxstudio-debian/plugins/ubuntu bionic main
           4: deb http://ppa.launchpad.net/kxstudio-debian/apps/ubuntu bionic main
           5: deb http://ppa.launchpad.net/kxstudio-debian/kxstudio/ubuntu bionic main
           Active apt repos in: /etc/apt/sources.list.d/mikhailnov-pulseeffects-focal.list 
           1: deb http://ppa.launchpad.net/mikhailnov/pulseeffects/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/mscore-ubuntu-mscore3-stable-focal.list 
           1: deb http://ppa.launchpad.net/mscore-ubuntu/mscore3-stable/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http://linux-mint.froonix.org una main upstream import backport
           2: deb http://ftp.fau.de/ubuntu focal main restricted universe multiverse
           3: deb http://ftp.fau.de/ubuntu focal-updates main restricted universe multiverse
           4: deb http://ftp.fau.de/ubuntu focal-backports main restricted universe multiverse
           5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http://archive.canonical.com/ubuntu/ focal partner
           Active apt repos in: /etc/apt/sources.list.d/ondrej-php-focal.list 
           1: deb http://ppa.launchpad.net/ondrej/php/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/openshot_developers-ppa-focal.list 
           1: deb http://ppa.launchpad.net/openshot.developers/ppa/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/owncloud.list 
           1: deb https://download.owncloud.com/desktop/ownCloud/stable/latest/linux/Ubuntu_20.04/ /
           Active apt repos in: /etc/apt/sources.list.d/pinta-maintainers-pinta-stable-focal.list 
           1: deb http://ppa.launchpad.net/pinta-maintainers/pinta-stable/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/rednotebook-stable-focal.list 
           1: deb http://ppa.launchpad.net/rednotebook/stable/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/signal-xenial.list 
           1: deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main
           Active apt repos in: /etc/apt/sources.list.d/skype-stable.list 
           1: deb [arch=amd64] https://repo.skype.com/deb stable main
           Active apt repos in: /etc/apt/sources.list.d/slgobinath-safeeyes-focal.list 
           1: deb http://ppa.launchpad.net/slgobinath/safeeyes/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/solaar-unifying-ppa-focal.list 
           1: deb http://ppa.launchpad.net/solaar-unifying/ppa/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/spotify.list 
           1: deb http://repository.spotify.com stable non-free
           Active apt repos in: /etc/apt/sources.list.d/sunderme-texstudio-focal.list 
           1: deb http://ppa.launchpad.net/sunderme/texstudio/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/t-5.eu.list 
           1: deb https://t-5.eu/debian/ repo main
           Active apt repos in: /etc/apt/sources.list.d/teams.list 
           1: deb [arch=amd64] https://packages.microsoft.com/repos/ms-teams stable main
           Active apt repos in: /etc/apt/sources.list.d/ubuntuhandbook1-audacity-focal.list 
           1: deb http://ppa.launchpad.net/ubuntuhandbook1/audacity/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/ubuntuhandbook1-avidemux-focal.list 
           1: deb http://ppa.launchpad.net/ubuntuhandbook1/avidemux/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/virtualbox.org.list 
           1: deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian focal non-free contrib
Info:      Processes: 379 Uptime: 5h 50m Memory: 15.29 GiB used: 3.92 GiB (25.6%) Init: systemd v: 245 runlevel: 5 
           Compilers: gcc: 9.4.0 alt: 7/8/9 clang: 10.0.0-4ubuntu1 Shell: bash v: 5.0.17 running in: gnome-terminal 
           inxi: 3.0.38
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
trytip
Level 14
Level 14
Posts: 5371
Joined: Tue Jul 05, 2016 1:20 pm

Re: cannot install libgtk-3-dev

Post by trytip »

you have too many repositories enabled. you have bionic and focal which are in conflict
Image
buscon
Level 1
Level 1
Posts: 48
Joined: Tue Sep 19, 2017 4:27 pm

Re: cannot install libgtk-3-dev

Post by buscon »

trytip wrote: Sun Jun 26, 2022 3:17 pm you have too many repositories enabled. you have bionic and focal which are in conflict
ok, thank you!

Now I kept only the basic repositories, but I still get the same error.

how can fix this problem?
User avatar
trytip
Level 14
Level 14
Posts: 5371
Joined: Tue Jul 05, 2016 1:20 pm

Re: cannot install libgtk-3-dev

Post by trytip »

buscon wrote: Mon Jun 27, 2022 4:11 am
trytip wrote: Sun Jun 26, 2022 3:17 pm you have too many repositories enabled. you have bionic and focal which are in conflict
ok, thank you!

Now I kept only the basic repositories, but I still get the same error.

how can fix this problem?
once you used another repository to install dependencies, your system is in conflict and old files need to be purged. it's a pain to undo, but in Software Sources > Maintenance > Downgrade foreign packages you can see all the conflicts. i too have many foreign packages and run into your error quite often, but i made a choice to install from outside mint repos.
Image
buscon
Level 1
Level 1
Posts: 48
Joined: Tue Sep 19, 2017 4:27 pm

Re: cannot install libgtk-3-dev

Post by buscon »

trytip wrote: Mon Jun 27, 2022 7:49 am once you used another repository to install dependencies, your system is in conflict and old files need to be purged. it's a pain to undo, but in Software Sources > Maintenance > Downgrade foreign packages you can see all the conflicts. i too have many foreign packages and run into your error quite often, but i made a choice to install from outside mint repos.
thanks for the suggestion!
I downgraded all foreign packages but I still get the same error when I try to install libgtk-3-dev

What else can I try?
buscon
Level 1
Level 1
Posts: 48
Joined: Tue Sep 19, 2017 4:27 pm

Re: cannot install libgtk-3-dev

Post by buscon »

in the meanwhile I figured out the problem by myself, so I write here for future reference:

1. I unselected all the external ppas

2. I downgraded foreign packages. In my case I could not do it from the synaptic interface, so I copied the list of packages to be downgraded and executed that line in the command line. I add this because it might not be obvious for people who are not used to command line

3. I could finally install libgtk-3-dev without problems.

Thanks @trytip for the suggestions.
User avatar
trytip
Level 14
Level 14
Posts: 5371
Joined: Tue Jul 05, 2016 1:20 pm

Re: cannot install libgtk-3-dev

Post by trytip »

buscon wrote: Mon Jun 27, 2022 2:17 pm 3. I could finally install libgtk-3-dev without problems.
i was not going to mention this kind of surgery for your system because it does break many files, God only knows how many times i have gone down the dependency rabbit hole without i forgot to mention take a timeshift snapshot if things go sideways.
Image
Locked

Return to “Software & Applications”