Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Can't install canvas dependencies on Debian 9 Stretch

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
qwrtln
Posts: 6
Joined: 2018-08-25 07:02

Can't install canvas dependencies on Debian 9 Stretch

#1 Post by qwrtln »

Hello,

a little thrilled to post for the first time as I've been using Debian for the past year, my favourite distro so far. The problem: I'm working on a JavaScript project which depends on canvas.js library. Surprisingly npm registries stopped providing appropriate binaries some time ago, so the library has to be compiled every time I'm resolving dependencies for the project (running npm install command). Canvas itself depends on Cairo and all the dependencies required for compilation can be found on the Github wiki page:
https://github.com/Automattic/node-canv ... ed-systems

I can't install one of them: libcairo2-dev

This is what happens:

Code: Select all

$ sudo apt install libcairo2-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:
 libcairo2-dev : Depends: libfontconfig1-dev (>= 2.2.95) but it is not going to be installed
                 Depends: libfreetype6-dev (>= 2.1.10) but it is not going to be installed
                 Depends: libpng-dev but it is not going to be installed
                 Depends: libglib2.0-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
So I'm trying to figure out what's wrong with these packages:

Code: Select all

$ sudo apt install libfontconfig1-dev libfreetype6-dev libpng-dev libglib2.0-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:
 libfontconfig1-dev : Depends: libfontconfig1 (= 2.11.0-6.7+b1) but 2.13.0-5 is to be installed
 libfreetype6-dev : Depends: zlib1g-dev but it is not going to be installed or
                             libz-dev
 libglib2.0-dev : Depends: zlib1g-dev but it is not going to be installed
 libpng-dev : Depends: zlib1g-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
And I think I've found the culprit:

Code: Select all

$ sudo apt install zlib1g-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 unstablelibglib2.0-dev
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:
 zlib1g-dev : Depends: zlib1g (= 1:1.2.8.dfsg-5) but 1:1.2.11.dfsg-1 is to be installed
E: Unable to correct problems, you have held broken packages.
It seems as if version 1:1.2.8 was required but it resolved automatically to 1:1.2.11. Does anyone know how to proceed with this?

Some [hopefully] useful info:

Code: Select all

$ uname -a
Linux qwrtln 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07) x86_64 GNU/Linux
My only sources list (a little afraid to fiddle with these):

Code: Select all

deb http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security stretch/updates main

arzgi
Posts: 1193
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

Re: Can't install canvas dependencies on Debian 9 Stretch

#2 Post by arzgi »

qwrtln wrote: My only sources list (a little afraid to fiddle with these):

Code: Select all

deb http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security stretch/updates main
If that is all of your sources list, you get only security updates, but not packages which have not been updated.

https://wiki.debian.org/SourcesList

qwrtln
Posts: 6
Joined: 2018-08-25 07:02

Re: Can't install canvas dependencies on Debian 9 Stretch

#3 Post by qwrtln »

Thanks for your reply. I've found the package in the buster repositories. I'm afraid to install it from there as it produces the following:

Code: Select all

$ sudo apt install libcairo2-dev
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
  bogofilter bogofilter-bdb bogofilter-common debian-zh-faq-s dh-python
  gir1.2-accountsservice-1.0 gir1.2-gck-1 gir1.2-gcr-3 gir1.2-gdm-1.0
  gir1.2-gmenu-3.0 gir1.2-gnomebluetooth-1.0 gir1.2-mutter-3.0
  gir1.2-networkmanager-1.0 gir1.2-nmgtk-1.0 gir1.2-polkit-1.0
  gir1.2-upowerglib-1.0 gnome-session-bin gnome-session-common
  gnome-shell-pomodoro-data libappindicator3-1 libcryptui0a libdbusmenu-gtk3-4
  libgdm1 libgltf-0.0-0v5 libgnome-menu-3-0 libindicator3-7 libmutter0i
  libnm-gtk0 liborcus-0.11-0 libpanel-applet0 libpst4 libreoffice-pdfimport
  libxcb-res0 mutter python-openssl python-requests python-urllib3
  seahorse-daemon task-desktop uim-applet-gnome x11-apps x11-session-utils
  xinit xorg xwayland
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  bubblewrap coinor-libcoinmp1v5 coinor-libcoinutils3v5 evolution
  evolution-common evolution-data-server evolution-data-server-common
  evolution-plugins gir1.2-freedesktop gir1.2-gdesktopenums-3.0 gir1.2-gdm-1.0
  gir1.2-glib-2.0 gir1.2-gnomedesktop-3.0 gir1.2-gweather-3.0
  gir1.2-lokdocview-0.1 gir1.2-rb-3.0 gnome-calendar gnome-control-center
  gnome-control-center-data gnome-desktop3-data gnome-online-accounts
  gnome-session-bin gnome-session-common gnome-settings-daemon
  gnome-shell-common gnome-shell-pomodoro-data gsettings-desktop-schemas
  libboost-locale1.62.0 libcairo-gobject2 libcairo-script-interpreter2
  libcairo2 libcamel-1.2-61 libdazzle-1.0-0 libdrm-common libdrm2
  libebackend-1.2-10 libebook-1.2-19 libebook-contacts-1.2-2 libecal-1.2-19
  libedata-book-1.2-25 libedata-cal-1.2-28 libedataserver-1.2-23
  libedataserverui-1.2-2 libegl-mesa0 libegl1 libegl1-mesa libepubgen-0.1-1
  libevolution libfontconfig1-dev libfreetype6 libfreetype6-dev libgail-3-0
  libgbm1 libgcrypt20 libgdm1 libglib2.0-0 libglib2.0-bin libglib2.0-dev
  libglib2.0-dev-bin libglvnd0 libgmime-3.0-0 libgnome-desktop-3-17
  libgoa-1.0-0b libgoa-1.0-common libgoa-backend-1.0-1 libgpgme11 libgpgmepp6
  libgspell-1-1 libgspell-1-common libgtk-3-0 libgtk-3-common libgtop-2.0-11
  libgtop2-common libgudev-1.0-0 libgweather-3-15 libical3 libice-dev
  libicu-le-hb0 libicu60 liblibreofficekitgtk libncursesw6 libnm0
  libnumbertext-1.0-0 libnumbertext-data liborcus-0.13-0 libpcre16-3 libpcre3
  libpcre3-dev libpcre32-3 libpcrecpp0v5 libpixman-1-0 libpixman-1-dev
  libpng-dev libpng-tools libpng16-16 libpoppler74 libpthread-stubs0-dev
  libpython3-stdlib libpython3.6 libpython3.6-minimal libpython3.6-stdlib
  libqxp-0.0-0 libreoffice libreoffice-avmedia-backend-gstreamer
  libreoffice-base libreoffice-base-core libreoffice-base-drivers
  libreoffice-calc libreoffice-common libreoffice-core libreoffice-draw
  libreoffice-evolution libreoffice-gnome libreoffice-gtk3 libreoffice-help-ca
  libreoffice-help-common libreoffice-help-cs libreoffice-help-da
  libreoffice-help-de libreoffice-help-dz libreoffice-help-el
  libreoffice-help-en-gb libreoffice-help-en-us libreoffice-help-es
  libreoffice-help-et libreoffice-help-eu libreoffice-help-fi
  libreoffice-help-fr libreoffice-help-gl libreoffice-help-hi
  libreoffice-help-hu libreoffice-help-it libreoffice-help-ja
  libreoffice-help-km libreoffice-help-ko libreoffice-help-nl
  libreoffice-help-pl libreoffice-help-pt libreoffice-help-ru
  libreoffice-help-sk libreoffice-help-sl libreoffice-help-sv
  libreoffice-help-zh-cn libreoffice-help-zh-tw libreoffice-impress
  libreoffice-java-common libreoffice-l10n-ar libreoffice-l10n-ast
  libreoffice-l10n-be libreoffice-l10n-bg libreoffice-l10n-bn
  libreoffice-l10n-bs libreoffice-l10n-ca libreoffice-l10n-cs
  libreoffice-l10n-cy libreoffice-l10n-da libreoffice-l10n-de
  libreoffice-l10n-dz libreoffice-l10n-el libreoffice-l10n-en-gb
  libreoffice-l10n-en-za libreoffice-l10n-eo libreoffice-l10n-es
  libreoffice-l10n-et libreoffice-l10n-eu libreoffice-l10n-fa
  libreoffice-l10n-fi libreoffice-l10n-fr libreoffice-l10n-ga
  libreoffice-l10n-gl libreoffice-l10n-gu libreoffice-l10n-he
  libreoffice-l10n-hi libreoffice-l10n-hr libreoffice-l10n-hu
  libreoffice-l10n-id libreoffice-l10n-is libreoffice-l10n-it
  libreoffice-l10n-ja libreoffice-l10n-ka libreoffice-l10n-km
  libreoffice-l10n-ko libreoffice-l10n-lt libreoffice-l10n-lv
  libreoffice-l10n-mk libreoffice-l10n-ml libreoffice-l10n-mr
  libreoffice-l10n-nb libreoffice-l10n-ne libreoffice-l10n-nl
  libreoffice-l10n-nn libreoffice-l10n-pa-in libreoffice-l10n-pl
  libreoffice-l10n-pt libreoffice-l10n-pt-br libreoffice-l10n-ro
  libreoffice-l10n-ru libreoffice-l10n-si libreoffice-l10n-sk
  libreoffice-l10n-sl libreoffice-l10n-sr libreoffice-l10n-sv
  libreoffice-l10n-ta libreoffice-l10n-te libreoffice-l10n-th
  libreoffice-l10n-tr libreoffice-l10n-ug libreoffice-l10n-uk
  libreoffice-l10n-vi libreoffice-l10n-xh libreoffice-l10n-zh-cn
  libreoffice-l10n-zh-tw libreoffice-math libreoffice-ogltrans
  libreoffice-pdfimport libreoffice-report-builder
  libreoffice-report-builder-bin libreoffice-script-provider-bsh
  libreoffice-script-provider-js libreoffice-script-provider-python
  libreoffice-sdbc-hsqldb libreoffice-sdbc-postgresql
  libreoffice-style-colibre libreoffice-style-tango libreoffice-wiki-publisher
  libreoffice-writer libreofficekit-data librhythmbox-core10 librsvg2-2
  librsvg2-common libsm-dev libstaroffice-0.0-0 libtinfo6 libtotem-plparser18
  libuuid1 libwayland-client0 libwayland-egl1 libwayland-egl1-mesa
  libwayland-server0 libx11-6 libx11-dev libx11-doc libxau-dev libxau6
  libxcb-dri3-0 libxcb-render0 libxcb-render0-dev libxcb-shm0 libxcb-shm0-dev
  libxcb1 libxcb1-dev libxdmcp-dev libxext-dev libxmlsec1 libxmlsec1-nss
  libxrender-dev libzmf-0.0-0 node-normalize.css policykit-1-gnome python3
  python3-apt python3-brlapi python3-cairo python3-cups python3-dbus
  python3-distutils python3-gi python3-gi-cairo python3-lib2to3
  python3-markupsafe python3-minimal python3-psutil python3-pycurl
  python3-smbc python3-uno python3.6 python3.6-minimal rhythmbox
  rhythmbox-data rhythmbox-plugin-cdrecorder rhythmbox-plugins
  task-albanian-desktop task-amharic task-amharic-desktop task-arabic
  task-arabic-desktop task-asturian task-asturian-desktop task-basque
  task-basque-desktop task-belarusian task-belarusian-desktop task-bengali
  task-bengali-desktop task-bosnian task-bosnian-desktop
  task-brazilian-portuguese task-brazilian-portuguese-desktop
  task-british-desktop task-bulgarian task-bulgarian-desktop task-catalan
  task-catalan-desktop task-chinese-s task-chinese-s-desktop task-chinese-t
  task-chinese-t-desktop task-croatian task-croatian-desktop task-cyrillic
  task-cyrillic-desktop task-czech task-czech-desktop task-danish
  task-danish-desktop task-desktop task-dutch task-dutch-desktop
  task-dzongkha-desktop task-english task-esperanto task-esperanto-desktop
  task-estonian task-estonian-desktop task-finnish task-finnish-desktop
  task-french task-french-desktop task-galician task-galician-desktop
  task-georgian-desktop task-german task-german-desktop task-greek
  task-greek-desktop task-gujarati task-gujarati-desktop task-hebrew
  task-hebrew-desktop task-hebrew-gnome-desktop task-hindi task-hindi-desktop
  task-hungarian task-hungarian-desktop task-icelandic task-icelandic-desktop
  task-indonesian-desktop task-irish task-irish-desktop task-italian
  task-italian-desktop task-japanese task-japanese-desktop
  task-japanese-gnome-desktop task-kazakh task-kazakh-desktop task-khmer
  task-khmer-desktop task-korean task-korean-desktop task-korean-gnome-desktop
  task-kurdish task-kurdish-desktop task-laptop task-latvian
  task-latvian-desktop task-lithuanian task-lithuanian-desktop task-macedonian
  task-macedonian-desktop task-malayalam task-malayalam-desktop
  task-malayalam-gnome-desktop task-marathi task-marathi-desktop
  task-nepali-desktop task-northern-sami task-northern-sami-desktop
  task-norwegian task-norwegian-desktop task-persian task-persian-desktop
  task-polish task-polish-desktop task-portuguese task-portuguese-desktop
  task-punjabi task-punjabi-desktop task-romanian task-romanian-desktop
  task-russian task-russian-desktop task-serbian task-serbian-desktop
  task-sinhala-desktop task-slovak task-slovak-desktop task-slovenian
  task-slovenian-desktop task-south-african-english-desktop task-spanish
  task-spanish-desktop task-swedish task-swedish-desktop task-tagalog
  task-tamil task-tamil-desktop task-tamil-gnome-desktop task-telugu
  task-telugu-desktop task-telugu-gnome-desktop task-thai task-thai-desktop
  task-thai-gnome-desktop task-turkish task-turkish-desktop task-ukrainian
  task-ukrainian-desktop task-uyghur-desktop task-vietnamese-desktop
  task-welsh task-welsh-desktop task-xhosa-desktop tasksel tasksel-data
  uno-libs3 ure uuid-dev x11proto-core-dev x11proto-dev x11proto-xext-dev
  xorg-sgml-doctools xtrans-dev zlib1g-dev
Suggested packages:
  evolution-ews evolution-plugins-experimental libcanberra-gtk-module
  libcairo2-doc rng-tools libglib2.0-doc libice-doc cups-bsd gpa
  libreoffice-grammarcheck openclipart2-libreoffice | openclipart-libreoffice
  pstoedit unixodbc libsane1 libreoffice-officebean libjtds-java
  libreoffice-mysql-connector | libmyodbc | libmysql-java libsqliteodbc
  | tdsodbc | mdbtools ocl-icd-libopencl1 hyphen-ar
  libreoffice-grammarcheck-ar libreoffice-help-ar mythes-ar
  hunspell-dictionary-ast | myspell-dictionary-ast hyphen-ast
  libreoffice-grammarcheck-ast libreoffice-help-ast mythes-ast hyphen-be
  libreoffice-grammarcheck-be libreoffice-help-be mythes-be hyphen-bg
  libreoffice-grammarcheck-bg libreoffice-help-bg mythes-bg
  hunspell-dictionary-bn | myspell-dictionary-bn hyphen-bn
  libreoffice-grammarcheck-bn libreoffice-help-bn mythes-bn
  hunspell-dictionary-bs | myspell-dictionary-bs hyphen-bs
  libreoffice-grammarcheck-bs libreoffice-help-bs mythes-bs hyphen-ca
  libreoffice-grammarcheck-ca mythes-ca hyphen-cs libreoffice-grammarcheck-cs
  hunspell-dictionary-cy | myspell-dictionary-cy hyphen-cy
  libreoffice-grammarcheck-cy libreoffice-help-cy mythes-cy hyphen-da
  libreoffice-grammarcheck-da mythes-da libreoffice-grammarcheck-de
  hunspell-dictionary-dz | myspell-dictionary-dz hyphen-dz
  libreoffice-grammarcheck-dz mythes-dz hyphen-el libreoffice-grammarcheck-el
  mythes-el hyphen-en-gb libreoffice-grammarcheck-en-gb mythes-en-gb
  hunspell-dictionary-en-za | myspell-dictionary-en-za hyphen-en-za
  libreoffice-grammarcheck-en-za libreoffice-help-en-za mythes-en-za hyphen-eo
  libreoffice-grammarcheck-eo libreoffice-help-eo mythes-eo hyphen-es
  libreoffice-grammarcheck-es mythes-es libreoffice-grammarcheck-et mythes-et
  hyphen-eu libreoffice-grammarcheck-eu mythes-eu hunspell-dictionary-fa
  | myspell-dictionary-fa hyphen-fa libreoffice-grammarcheck-fa
  libreoffice-help-fa mythes-fa mythes-fi hyphen-fr
  libreoffice-grammarcheck-fr hyphen-ga libreoffice-grammarcheck-ga
  libreoffice-help-ga mythes-ga hyphen-gl libreoffice-grammarcheck-gl
  mythes-gl hunspell-dictionary-gu | myspell-dictionary-gu hyphen-gu
  libreoffice-grammarcheck-gu libreoffice-help-gu mythes-gu hyphen-he
  libreoffice-grammarcheck-he libreoffice-help-he mythes-he
  hunspell-dictionary-hi | myspell-dictionary-hi hyphen-hi
  libreoffice-grammarcheck-hi mythes-hi libreoffice-grammarcheck-hr
  libreoffice-help-hr mythes-hr libreoffice-grammarcheck-hu mythes-hu
  hunspell-dictionary-id | myspell-dictionary-id hyphen-id
  libreoffice-grammarcheck-id libreoffice-help-id mythes-id
  hunspell-dictionary-is | myspell-dictionary-is hyphen-is
  libreoffice-grammarcheck-is libreoffice-help-is mythes-is hyphen-it
  libreoffice-grammarcheck-it hunspell-dictionary-ja | myspell-dictionary-ja
  hyphen-ja libreoffice-grammarcheck-ja mythes-ja hunspell-dictionary-ka
  | myspell-dictionary-ka hyphen-ka libreoffice-grammarcheck-ka
  libreoffice-help-ka mythes-ka hunspell-dictionary-km | myspell-dictionary-km
  hyphen-km libreoffice-grammarcheck-km mythes-km hyphen-ko
  libreoffice-grammarcheck-ko mythes-ko libreoffice-grammarcheck-lt
  libreoffice-help-lt mythes-lt libreoffice-grammarcheck-lv
  libreoffice-help-lv mythes-lv hunspell-dictionary-mk | myspell-dictionary-mk
  hyphen-mk libreoffice-grammarcheck-mk libreoffice-help-mk mythes-mk
  hunspell-dictionary-ml | myspell-dictionary-ml hyphen-ml
  libreoffice-grammarcheck-ml libreoffice-help-ml mythes-ml
  hunspell-dictionary-mr | myspell-dictionary-mr hyphen-mr
  libreoffice-grammarcheck-mr libreoffice-help-mr mythes-mr hyphen-nb
  libreoffice-grammarcheck-nb libreoffice-help-nb mythes-nb hyphen-ne
  libreoffice-grammarcheck-ne libreoffice-help-ne hyphen-nl
  libreoffice-grammarcheck-nl mythes-nl hyphen-nn libreoffice-grammarcheck-nn
  libreoffice-help-nn mythes-nn hunspell-dictionary-pa-in
  | myspell-dictionary-pa-in hyphen-pa-in libreoffice-grammarcheck-pa-in
  libreoffice-help-pa-in mythes-pa-in hyphen-pl libreoffice-grammarcheck-pl
  hyphen-pt libreoffice-grammarcheck-pt mythes-pt hyphen-pt-br
  libreoffice-grammarcheck-pt-br libreoffice-help-pt-br mythes-pt-br hyphen-ro
  libreoffice-grammarcheck-ro libreoffice-help-ro mythes-ro hyphen-ru
  libreoffice-grammarcheck-ru hunspell-dictionary-si | myspell-dictionary-si
  hyphen-si libreoffice-grammarcheck-si libreoffice-help-si mythes-si
  hyphen-sk libreoffice-grammarcheck-sk hyphen-sl libreoffice-grammarcheck-sl
  mythes-sl hyphen-sr libreoffice-grammarcheck-sr libreoffice-help-sr
  mythes-sr hyphen-sv libreoffice-grammarcheck-sv mythes-sv
  hunspell-dictionary-ta | myspell-dictionary-ta hyphen-ta
  libreoffice-grammarcheck-ta libreoffice-help-ta mythes-ta
  hunspell-dictionary-te | myspell-dictionary-te hyphen-te
  libreoffice-grammarcheck-te libreoffice-help-te mythes-te hyphen-th
  libreoffice-grammarcheck-th libreoffice-help-th mythes-th
  hunspell-dictionary-tr | myspell-dictionary-tr hyphen-tr
  libreoffice-grammarcheck-tr libreoffice-help-tr mythes-tr
  hunspell-dictionary-ug | myspell-dictionary-ug hyphen-ug
  libreoffice-grammarcheck-ug libreoffice-help-ug mythes-ug hyphen-uk
  libreoffice-grammarcheck-uk libreoffice-help-uk mythes-uk hyphen-vi
  libreoffice-grammarcheck-vi libreoffice-help-vi mythes-vi
  hunspell-dictionary-xh | myspell-dictionary-xh hyphen-xh
  libreoffice-grammarcheck-xh libreoffice-help-xh mythes-xh
  hunspell-dictionary-zh-cn | myspell-dictionary-zh-cn hyphen-zh-cn
  libreoffice-grammarcheck-zh-cn mythes-zh-cn hunspell-dictionary-zh-tw
  | myspell-dictionary-zh-tw hyphen-zh-tw libreoffice-grammarcheck-zh-tw
  mythes-zh-tw postgresql tango-icon-theme mediawiki librsvg2-bin libsm-doc
  libxcb-doc libxext-doc libjs-html5shiv python3-doc python3-tk python3-venv
  python3-apt-dbg python-apt-doc python-dbus-doc python3-dbus-dbg
  python-psutil-doc libcurl4-gnutls-dev python-pycurl-doc python3-pycurl-dbg
  python3.6-venv python3.6-doc binfmt-support gnome-codec-install
Recommended packages:
  evolution-plugin-bogofilter | evolution-plugin-spamassassin
  evolution-plugin-pstimport gpg-wks-client gpgsm fonts-liberation2
  libreoffice-sdbc-firebird fonts-liberation2 | ttf-mscorefonts-installer
  libreoffice-style-elementary fonts-hosny-amiri fonts-hosny-thabit
  fonts-sil-scheherazade firefox-esr-l10n-sq | firefox-l10n-sq myspell-sq
  firefox-esr-l10n-ar | firefox-l10n-ar firefox-esr-l10n-ast
  | firefox-l10n-ast firefox-esr-l10n-eu | firefox-l10n-eu firefox-esr-l10n-be
  | firefox-l10n-be firefox-esr-l10n-bn-in | firefox-l10n-bn-in
  firefox-esr-l10n-bn-bd | firefox-l10n-bn-bd doc-linux-hr firefox-esr-l10n-bs
  | firefox-l10n-bs firefox-esr-l10n-pt-br | firefox-l10n-pt-br
  firefox-esr-l10n-en-gb | firefox-l10n-en-gb firefox-esr-l10n-bg
  | firefox-l10n-bg firefox-esr-l10n-ca | firefox-l10n-ca
  firefox-esr-l10n-zh-cn | firefox-l10n-zh-cn firefox-esr-l10n-zh-tw
  | firefox-l10n-zh-tw firefox-esr-l10n-hr | firefox-l10n-hr
  firefox-esr-l10n-cs | firefox-l10n-cs firefox-esr-l10n-da | firefox-l10n-da
  task-gnome-desktop | task-xfce-desktop | task-kde-desktop
  | task-lxde-desktop | task-cinnamon-desktop | task-mate-desktop
  | task-lxqt-desktop libu2f-udev firefox-esr-l10n-nl | firefox-l10n-nl
  firefox-esr-l10n-eo | firefox-l10n-eo firefox-esr-l10n-et | firefox-l10n-et
  firefox-esr-l10n-fi | firefox-l10n-fi firefox-esr-l10n-fr | firefox-l10n-fr
  firefox-esr-l10n-gl | firefox-l10n-gl doc-linux-de firefox-esr-l10n-de
  | firefox-l10n-de fonts-mgopen firefox-esr-l10n-el | firefox-l10n-el
  firefox-esr-l10n-gu-in | firefox-l10n-gu-in firefox-esr-l10n-he
  | firefox-l10n-he firefox-esr-l10n-hi-in | firefox-l10n-hi-in
  firefox-esr-l10n-hu | firefox-l10n-hu libreoffice-thesausus-hu
  firefox-esr-l10n-is | firefox-l10n-is firefox-esr-l10n-id | firefox-l10n-id
  firefox-esr-l10n-ga-ie | firefox-l10n-ga-ie doc-linux-it doc-linux-it-text
  firefox-esr-l10n-it | firefox-l10n-it firefox-esr-l10n-ja | firefox-l10n-ja
  firefox-esr-l10n-kk | firefox-l10n-kk firefox-esr-l10n-km | firefox-l10n-km
  firefox-esr-l10n-ko | firefox-l10n-ko libreoffice-l10n-ku
  firefox-esr-l10n-lv | firefox-l10n-lv firefox-esr-l10n-lt | firefox-l10n-lt
  firefox-esr-l10n-mk | firefox-l10n-mk firefox-esr-l10n-ml | firefox-l10n-ml
  firefox-esr-l10n-mr | firefox-l10n-mr firefox-esr-l10n-nb-no
  | firefox-l10n-nb-no firefox-esr-l10n-nn-no | firefox-l10n-nn-no
  firefox-esr-l10n-fa | firefox-l10n-fa firefox-esr-l10n-pl | firefox-l10n-pl
  firefox-esr-l10n-pt-pt | firefox-l10n-pt-pt firefox-esr-l10n-pa-in
  | firefox-l10n-pa-in firefox-esr-l10n-ro | firefox-l10n-ro
  firefox-esr-l10n-ru | firefox-l10n-ru firefox-esr-l10n-sr | firefox-l10n-sr
  firefox-esr-l10n-si | firefox-l10n-si firefox-esr-l10n-sk | firefox-l10n-sk
  firefox-esr-l10n-sl | firefox-l10n-sl firefox-esr-l10n-en-za
  | firefox-l10n-en-za doc-debian-es firefox-esr-l10n-es-ar
  | firefox-l10n-es-ar firefox-esr-l10n-es-cl | firefox-l10n-es-cl
  firefox-esr-l10n-es-mx | firefox-l10n-es-mx firefox-esr-l10n-es-es
  | firefox-l10n-es-es firefox-esr-l10n-sv-se | firefox-l10n-sv-se
  firefox-esr-l10n-ta | firefox-l10n-ta tamil-gtk2im firefox-esr-l10n-te
  | firefox-l10n-te firefox-esr-l10n-th | firefox-l10n-th firefox-esr-l10n-tr
  | firefox-l10n-tr doc-debian-uk firefox-esr-l10n-uk | firefox-l10n-uk
  firefox-esr-l10n-vi | firefox-l10n-vi firefox-esr-l10n-cy | firefox-l10n-cy
  laptop-detect
The following packages will be REMOVED:
  chrome-gnome-shell gdm3 gnome gnome-core gnome-session gnome-shell
  gnome-shell-extensions gnome-shell-pomodoro libreoffice-style-galaxy
  task-gnome-desktop
The following NEW packages will be installed:
  bubblewrap libboost-locale1.62.0 libcairo-script-interpreter2 libcairo2-dev
  libcamel-1.2-61 libdazzle-1.0-0 libdrm-common libebook-1.2-19
  libedataserver-1.2-23 libedataserverui-1.2-2 libegl-mesa0 libegl1
  libepubgen-0.1-1 libfontconfig1-dev libfreetype6-dev libglib2.0-dev
  libglib2.0-dev-bin libglvnd0 libgmime-3.0-0 libgnome-desktop-3-17
  libgpgmepp6 libgtop-2.0-11 libgweather-3-15 libical3 libice-dev
  libicu-le-hb0 libicu60 libncursesw6 libnumbertext-1.0-0 libnumbertext-data
  liborcus-0.13-0 libpcre3-dev libpcre32-3 libpixman-1-dev libpng-dev
  libpng-tools libpoppler74 libpthread-stubs0-dev libpython3.6
  libpython3.6-minimal libpython3.6-stdlib libqxp-0.0-0
  libreoffice-help-common libreoffice-style-colibre libsm-dev
  libstaroffice-0.0-0 libtinfo6 libwayland-egl1 libx11-dev libx11-doc
  libxau-dev libxcb-render0-dev libxcb-shm0-dev libxcb1-dev libxdmcp-dev
  libxext-dev libxmlsec1 libxmlsec1-nss libxrender-dev libzmf-0.0-0
  node-normalize.css policykit-1-gnome python3-distutils python3-lib2to3
  python3.6 python3.6-minimal uuid-dev x11proto-core-dev x11proto-dev
  x11proto-xext-dev xorg-sgml-doctools xtrans-dev zlib1g-dev
The following packages will be upgraded:
  coinor-libcoinmp1v5 coinor-libcoinutils3v5 evolution evolution-common
  evolution-data-server evolution-data-server-common evolution-plugins
  gir1.2-freedesktop gir1.2-gdesktopenums-3.0 gir1.2-gdm-1.0 gir1.2-glib-2.0
  gir1.2-gnomedesktop-3.0 gir1.2-gweather-3.0 gir1.2-lokdocview-0.1
  gir1.2-rb-3.0 gnome-calendar gnome-control-center gnome-control-center-data
  gnome-desktop3-data gnome-online-accounts gnome-session-bin
  gnome-session-common gnome-settings-daemon gnome-shell-common
  gnome-shell-pomodoro-data gsettings-desktop-schemas libcairo-gobject2
  libcairo2 libdrm2 libebackend-1.2-10 libebook-contacts-1.2-2 libecal-1.2-19
  libedata-book-1.2-25 libedata-cal-1.2-28 libegl1-mesa libevolution
  libfreetype6 libgail-3-0 libgbm1 libgcrypt20 libgdm1 libglib2.0-0
  libglib2.0-bin libgoa-1.0-0b libgoa-1.0-common libgoa-backend-1.0-1
  libgpgme11 libgspell-1-1 libgspell-1-common libgtk-3-0 libgtk-3-common
  libgtop2-common libgudev-1.0-0 liblibreofficekitgtk libnm0 libpcre16-3
  libpcre3 libpcrecpp0v5 libpixman-1-0 libpng16-16 libpython3-stdlib
  libreoffice libreoffice-avmedia-backend-gstreamer libreoffice-base
  libreoffice-base-core libreoffice-base-drivers libreoffice-calc
  libreoffice-common libreoffice-core libreoffice-draw libreoffice-evolution
  libreoffice-gnome libreoffice-gtk3 libreoffice-help-ca libreoffice-help-cs
  libreoffice-help-da libreoffice-help-de libreoffice-help-dz
  libreoffice-help-el libreoffice-help-en-gb libreoffice-help-en-us
  libreoffice-help-es libreoffice-help-et libreoffice-help-eu
  libreoffice-help-fi libreoffice-help-fr libreoffice-help-gl
  libreoffice-help-hi libreoffice-help-hu libreoffice-help-it
  libreoffice-help-ja libreoffice-help-km libreoffice-help-ko
  libreoffice-help-nl libreoffice-help-pl libreoffice-help-pt
  libreoffice-help-ru libreoffice-help-sk libreoffice-help-sl
  libreoffice-help-sv libreoffice-help-zh-cn libreoffice-help-zh-tw
  libreoffice-impress libreoffice-java-common libreoffice-l10n-ar
  libreoffice-l10n-ast libreoffice-l10n-be libreoffice-l10n-bg
  libreoffice-l10n-bn libreoffice-l10n-bs libreoffice-l10n-ca
  libreoffice-l10n-cs libreoffice-l10n-cy libreoffice-l10n-da
  libreoffice-l10n-de libreoffice-l10n-dz libreoffice-l10n-el
  libreoffice-l10n-en-gb libreoffice-l10n-en-za libreoffice-l10n-eo
  libreoffice-l10n-es libreoffice-l10n-et libreoffice-l10n-eu
  libreoffice-l10n-fa libreoffice-l10n-fi libreoffice-l10n-fr
  libreoffice-l10n-ga libreoffice-l10n-gl libreoffice-l10n-gu
  libreoffice-l10n-he libreoffice-l10n-hi libreoffice-l10n-hr
  libreoffice-l10n-hu libreoffice-l10n-id libreoffice-l10n-is
  libreoffice-l10n-it libreoffice-l10n-ja libreoffice-l10n-ka
  libreoffice-l10n-km libreoffice-l10n-ko libreoffice-l10n-lt
  libreoffice-l10n-lv libreoffice-l10n-mk libreoffice-l10n-ml
  libreoffice-l10n-mr libreoffice-l10n-nb libreoffice-l10n-ne
  libreoffice-l10n-nl libreoffice-l10n-nn libreoffice-l10n-pa-in
  libreoffice-l10n-pl libreoffice-l10n-pt libreoffice-l10n-pt-br
  libreoffice-l10n-ro libreoffice-l10n-ru libreoffice-l10n-si
  libreoffice-l10n-sk libreoffice-l10n-sl libreoffice-l10n-sr
  libreoffice-l10n-sv libreoffice-l10n-ta libreoffice-l10n-te
  libreoffice-l10n-th libreoffice-l10n-tr libreoffice-l10n-ug
  libreoffice-l10n-uk libreoffice-l10n-vi libreoffice-l10n-xh
  libreoffice-l10n-zh-cn libreoffice-l10n-zh-tw libreoffice-math
  libreoffice-ogltrans libreoffice-pdfimport libreoffice-report-builder
  libreoffice-report-builder-bin libreoffice-script-provider-bsh
  libreoffice-script-provider-js libreoffice-script-provider-python
  libreoffice-sdbc-hsqldb libreoffice-sdbc-postgresql libreoffice-style-tango
  libreoffice-wiki-publisher libreoffice-writer libreofficekit-data
  librhythmbox-core10 librsvg2-2 librsvg2-common libtotem-plparser18 libuuid1
  libwayland-client0 libwayland-egl1-mesa libwayland-server0 libx11-6 libxau6
  libxcb-dri3-0 libxcb-render0 libxcb-shm0 libxcb1 python3 python3-apt
  python3-brlapi python3-cairo python3-cups python3-dbus python3-gi
  python3-gi-cairo python3-markupsafe python3-minimal python3-psutil
  python3-pycurl python3-smbc python3-uno rhythmbox rhythmbox-data
  rhythmbox-plugin-cdrecorder rhythmbox-plugins task-albanian-desktop
  task-amharic task-amharic-desktop task-arabic task-arabic-desktop
  task-asturian task-asturian-desktop task-basque task-basque-desktop
  task-belarusian task-belarusian-desktop task-bengali task-bengali-desktop
  task-bosnian task-bosnian-desktop task-brazilian-portuguese
  task-brazilian-portuguese-desktop task-british-desktop task-bulgarian
  task-bulgarian-desktop task-catalan task-catalan-desktop task-chinese-s
  task-chinese-s-desktop task-chinese-t task-chinese-t-desktop task-croatian
  task-croatian-desktop task-cyrillic task-cyrillic-desktop task-czech
  task-czech-desktop task-danish task-danish-desktop task-desktop task-dutch
  task-dutch-desktop task-dzongkha-desktop task-english task-esperanto
  task-esperanto-desktop task-estonian task-estonian-desktop task-finnish
  task-finnish-desktop task-french task-french-desktop task-galician
  task-galician-desktop task-georgian-desktop task-german task-german-desktop
  task-greek task-greek-desktop task-gujarati task-gujarati-desktop
  task-hebrew task-hebrew-desktop task-hebrew-gnome-desktop task-hindi
  task-hindi-desktop task-hungarian task-hungarian-desktop task-icelandic
  task-icelandic-desktop task-indonesian-desktop task-irish task-irish-desktop
  task-italian task-italian-desktop task-japanese task-japanese-desktop
  task-japanese-gnome-desktop task-kazakh task-kazakh-desktop task-khmer
  task-khmer-desktop task-korean task-korean-desktop task-korean-gnome-desktop
  task-kurdish task-kurdish-desktop task-laptop task-latvian
  task-latvian-desktop task-lithuanian task-lithuanian-desktop task-macedonian
  task-macedonian-desktop task-malayalam task-malayalam-desktop
  task-malayalam-gnome-desktop task-marathi task-marathi-desktop
  task-nepali-desktop task-northern-sami task-northern-sami-desktop
  task-norwegian task-norwegian-desktop task-persian task-persian-desktop
  task-polish task-polish-desktop task-portuguese task-portuguese-desktop
  task-punjabi task-punjabi-desktop task-romanian task-romanian-desktop
  task-russian task-russian-desktop task-serbian task-serbian-desktop
  task-sinhala-desktop task-slovak task-slovak-desktop task-slovenian
  task-slovenian-desktop task-south-african-english-desktop task-spanish
  task-spanish-desktop task-swedish task-swedish-desktop task-tagalog
  task-tamil task-tamil-desktop task-tamil-gnome-desktop task-telugu
  task-telugu-desktop task-telugu-gnome-desktop task-thai task-thai-desktop
  task-thai-gnome-desktop task-turkish task-turkish-desktop task-ukrainian
  task-ukrainian-desktop task-uyghur-desktop task-vietnamese-desktop
  task-welsh task-welsh-desktop task-xhosa-desktop tasksel tasksel-data
  uno-libs3 ure
362 upgraded, 73 newly installed, 10 to remove and 1670 not upgraded.
Need to get 273 MB of archives.
After this operation, 65.0 MB disk space will be freed.
Do you want to continue? [Y/n] 
Why does it want to upgrade and install so much?

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Can't install canvas dependencies on Debian 9 Stretch

#4 Post by Head_on_a_Stick »

qwrtln wrote:I've found the package in the buster repositories
Don't do that, please read https://wiki.debian.org/DontBreakDebian.

The package you want is available in stable:

Code: Select all

empty@hegel:~ $ apt install -s libcairo2-dev                            
NOTE: This is only a simulation!
      apt needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libcairo-script-interpreter2 libglib2.0-dev libice-dev libpcre3-dev
  libpcre32-3 libpixman-1-dev libsm-dev libxcb-shm0-dev
Suggested packages:
  libcairo2-doc libglib2.0-doc libice-doc libsm-doc
The following NEW packages will be installed:
  libcairo-script-interpreter2 libcairo2-dev libglib2.0-dev libice-dev
  libpcre3-dev libpcre32-3 libpixman-1-dev libsm-dev libxcb-shm0-dev
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Inst libcairo-script-interpreter2 (1.14.8-1 Debian:9.5/stable [amd64])
Inst libice-dev (2:1.0.9-2 Debian:9.5/stable [amd64])
Inst libsm-dev (2:1.2.2-1+b3 Debian:9.5/stable [amd64])
Inst libpixman-1-dev (0.34.0-1 Debian:9.5/stable [amd64])
Inst libxcb-shm0-dev (1.12-1 Debian:9.5/stable [amd64])
Inst libpcre32-3 (2:8.39-3 Debian:9.5/stable [amd64])
Inst libpcre3-dev (2:8.39-3 Debian:9.5/stable [amd64])
Inst libglib2.0-dev (2.50.3-2 Debian:9.5/stable [amd64])
Inst libcairo2-dev (1.14.8-1 Debian:9.5/stable [amd64])
Conf libcairo-script-interpreter2 (1.14.8-1 Debian:9.5/stable [amd64])
Conf libice-dev (2:1.0.9-2 Debian:9.5/stable [amd64])
Conf libsm-dev (2:1.2.2-1+b3 Debian:9.5/stable [amd64])
Conf libpixman-1-dev (0.34.0-1 Debian:9.5/stable [amd64])
Conf libxcb-shm0-dev (1.12-1 Debian:9.5/stable [amd64])
Conf libpcre32-3 (2:8.39-3 Debian:9.5/stable [amd64])
Conf libpcre3-dev (2:8.39-3 Debian:9.5/stable [amd64])
Conf libglib2.0-dev (2.50.3-2 Debian:9.5/stable [amd64])
Conf libcairo2-dev (1.14.8-1 Debian:9.5/stable [amd64])
empty@hegel:~ $ grep -v '^#\|^$' /etc/apt/sources.list
deb https://cdn-aws.deb.debian.org/debian/ stretch main
deb https://cdn-aws.deb.debian.org/debian/ stretch-updates main
deb https://cdn-aws.deb.debian.org/debian-security stretch/updates main
deb https://crawl.develz.org/debian crawl 0.21
deb https://cdn-aws.deb.debian.org/debian/ stretch-backports main
empty@hegel:~ $
deadbang

qwrtln
Posts: 6
Joined: 2018-08-25 07:02

Re: Can't install canvas dependencies on Debian 9 Stretch

#5 Post by qwrtln »

Head_on_a_Stick wrote: The package you want is available in stable
Right but still I'm getting the error I've pasted in the first post. Any idea how to sort this out? Or is it a symptom of an earlier breakage?

qwrtln
Posts: 6
Joined: 2018-08-25 07:02

Re: Can't install canvas dependencies on Debian 9 Stretch

#6 Post by qwrtln »

All right guys, your answers led me to creating /etc/apt/preferences:

Code: Select all

Package: *
Pin: release a=stable
Pin-Priority: 1001
After running update and upgrade some packages were downgraded and libcairo2-dev installed now. It seems I did install something from testing/unstable and I didn't even remember :S Lesson learned, hope my FrankenBian will last me at least a couple of months before reinstall. Thanks everyone and take care.

EDIT: The unstable package was Firefox Quantum. Looks like it shares dependencies with Cairo.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Can't install canvas dependencies on Debian 9 Stretch

#7 Post by stevepusser »

The "is to be installed" part of the error messages you were getting are misleading; they actually mean "are already installed", in case anyone else with a similar problem is getting the errors.

If you are compiling and need to avoid similar issues in the future, I suggest you stick with Stable, install a binary Firefox from Mozilla or a flatpak/snap to get the new releases if you need that, and then use aptitude with its multiple solutions ("aptitude install libfontconfig-dev", for example) to get your system back to a sane state.
MX Linux packager and developer

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Can't install canvas dependencies on Debian 9 Stretch

#8 Post by debiman »

additionally, i think, everytime you get this message:

Code: Select all

E: Unable to correct problems, you have held broken packages.
you need to run

Code: Select all

apt-get install -f
before proceding.

Post Reply