perl: warning: Setting locale failed.


running some programs will give this result , this is happened with different applications one of them vrms will give this issue:

user@host:~$ vrms
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "",
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

No non-free or contrib packages installed on host!  rms would be proud.

something needs to be installed ? or we just ignore it?


Not a bug by default in Whonix. Comes from some custom configuration
applied by user. Therefore should be sorted out as per


vrms is installed by default , not customization i have done.

or you mean the tool vrms itself needs user customization?

this is another example but while installing a tool outside whonix:

Fetched 119 MB in 5min 57s (334 kB/s)                                                   
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "",
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory


This is happened as well after whonix-upgrade:

user@host:/etc/apt/sources.list.d$ sudo apt update && sudo apt dist-upgrade && sudo apt autoremove --purge
Get:1 http://deb.sik5nlgfc5qylnnsr57qrbm64zbdx6t4lreyhpon3ychmxmiem7tioad.onion/r4.0/vm stretch InRelease [2484 B]
Hit:2 tor+http://sgvtcaew4bxjd7ln.onion stretch/updates InRelease                       
Ign:3 tor+http://vwakviie2ienjx6t.onion/debian stretch InRelease    
Hit:4 tor+http://deb.dds6qkxpwdeubwucdiaord2xgbbeyds25rbsgr73tbfpqpt4a6vjwsyd.onion stretch-testers InRelease
Get:5 http://deb.sik5nlgfc5qylnnsr57qrbm64zbdx6t4lreyhpon3ychmxmiem7tioad.onion/r4.0/vm stretch/main amd64 Packages [19.2 kB]
Hit:6 tor+http://vwakviie2ienjx6t.onion/debian stretch Release
Fetched 21.7 kB in 2s (7559 B/s)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  apparmor-profile-torbrowser apparmor-profile-xchat
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 25.2 kB of archives.
After this operation, 1024 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 tor+http://deb.dds6qkxpwdeubwucdiaord2xgbbeyds25rbsgr73tbfpqpt4a6vjwsyd.onion stretch-testers/main amd64 apparmor-profile-torbrowser all 3:4.4-1 [16.7 kB]
Get:2 tor+http://deb.dds6qkxpwdeubwucdiaord2xgbbeyds25rbsgr73tbfpqpt4a6vjwsyd.onion stretch-testers/main amd64 apparmor-profile-xchat all 3:2.3-1 [8516 B]
Fetched 25.2 kB in 2s (11.1 kB/s)           
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "",
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 94514 files and directories currently installed.)
Preparing to unpack .../apparmor-profile-torbrowser_3%3a4.4-1_all.deb ...
Unpacking apparmor-profile-torbrowser (3:4.4-1) over (3:4.3-1) ...
Preparing to unpack .../apparmor-profile-xchat_3%3a2.3-1_all.deb ...
Unpacking apparmor-profile-xchat (3:2.3-1) over (3:2.2-1) ...
Setting up apparmor-profile-torbrowser (3:4.4-1) ...
Installing new version of config file /etc/apparmor.d/home.tor-browser.firefox ...
Installing new version of config file /etc/apparmor.d/home.tor-browser.start-tor-browser ...
Setting up apparmor-profile-xchat (3:2.3-1) ...
Installing new version of config file /etc/apparmor.d/abstractions/xchat-based ...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


Can’t reproduce.


I did get the locale settings with programs run from terminal, including apt-xxx.
Could not find out the cause, so I just reconfigured locales in the templates (happening in Whonix only). .

sudo dpkg-reconfigure locales

and choose en_US.UTF-8, which should be the default after a fresh installation.


or as i saw in debian-9 inside qubes , it install “locales-all” which we miss inside whonix. normal installation sudo apt install locales-all will break whonix, needs further modification to be implemented.



or as i saw in debian-9 inside qubes , it install “locales-all” which we miss inside whonix. normal

I am not convinced its required.

installation sudo apt install locales-all will break whonix,

Please elaborate what you mean by “breaks Whonix”?


i meant it will suggest to remove everything:

user@host:~$ sudo apt install locales-all                    
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  anon-apps-config anon-apt-sources-list anon-gpg-tweaks anon-iceweasel-warning anon-icon-pack anon-ws-base-files anon-ws-dns-conf apparmor-profile-anondist
  aptitude-common bindp distro-info-data emacsen-common fonts-dejavu-core glib-networking-common gnome-mime-data gpg-bash-lib grub-enable-apparmor hexchat-common
  imagemagick-6-common iso-codes kate-data kde-baseapps-data kde-cli-tools-data ksysguard-data ktexteditor-data libasound2-data libatk1.0-data libavahi-common-data
  libblas-common libbonobo2-common libgcr-3-common libgdk-pixbuf2.0-common libglib2.0-data libgs9-common libgtk2.0-common libjs-underscore libjson-glib-1.0-common
  libkexiv2-data libkf5auth-data libkf5bookmarks-data libkf5codecs-data libkf5completion-data libkf5config-data libkf5coreaddons-data libkf5dbusaddons-data
  libkf5declarative-data libkf5filemetadata-data libkf5globalaccel-data libkf5i18n-data libkf5iconthemes-data libkf5itemviews-data libkf5jobwidgets-data
  libkf5kcmutils-data libkf5kdelibs4support-data libkf5khtml-data libkf5kipi-data libkf5newstuff-data libkf5notifications-data libkf5notifyconfig-data
  libkf5package-data libkf5parts-data libkf5pty-data libkf5service-data libkf5solid5-data libkf5sonnet5-data libkf5su-data libkf5sysguard-data
  libkf5textwidgets-data libkf5wallet-data libkf5widgetsaddons-data libkf5windowsystem-data libkf5xmlgui-data libkonq5-templates libldap-common libmagic-mgc
  libmtp-common libpython2.7-minimal libsecret-common libthai-data libwacom-common libwnck-3-common libx11-data libzvbi-common linux-libc-dev m17n-db mime-support
  oxygen-icon-theme phonon-backend-gstreamer-common policyrcd-script-zg2 qtcore4-l10n qubes-core-agent-passwordless-root qubes-whonix-shared-packages-recommended
  ruby-did-you-mean ruby-minitest ruby-net-telnet ruby-power-assert ruby-test-unit spectre-meltdown-checker timezone-utc vbox-disable-timesync vim-runtime vlc-data
  vlc-l10n vrms whonix-welcome-page whonix-ws-desktop-shortcuts x11-common xbitmaps xdg-utils xkb-data zenity-common
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  acl adduser adwaita-icon-theme anon-base-files anon-mixmaster anon-shared-helper-scripts anon-ws-disable-stacked-tor apparmor apparmor-profile-gwenview             
  apparmor-profile-icedove apparmor-profile-okular apparmor-profile-torbrowser apparmor-profile-xchat apparmor-profiles-whonix apparmor-utils apt apt-file            
  apt-transport-https apt-transport-tor apt-utils aptitude ark aspell aspell-en baloo-kf5 base-files base-passwd bash bash-completion bc bind9-host binutils          
  bootclockrandomization bsdmainutils bsdtar bsdutils busybox bzip2 ca-certificates catdoc codecrypt command-not-found coreutils coyim cpio cpp cpp-6 cron curl       
  curl-scripts damngpl dash dbus dbus-x11 dconf-cli dconf-gsettings-backend dconf-service debconf debconf-i18n debian-archive-keyring debianutils debsums             
  desktop-file-utils dh-python dictionaries-common diffutils dirmngr dmidecode dmsetup dnsutils docbook-xml docbook-xsl docutils-common dolphin dpkg dpkg-dev         
  e2fslibs e2fsprogs eatmydata emacs emacs24 emacs24-bin-common emacs24-common ethtool faketime file findutils firejail firejail-profiles firetools fontconfig
  fontconfig-config fuse gawk gcc gcc-6 gconf-service gconf2 gconf2-common gcr gir1.2-atk-1.0 gir1.2-freedesktop gir1.2-gdkpixbuf-2.0 gir1.2-glib-2.0 gir1.2-gtk-3.0
  gir1.2-nautilus-3.0 gir1.2-pango-1.0 gir1.2-poppler-0.18 glib-networking glib-networking-services gnupg gnupg-agent gnupg2 gnutls-bin gpgv gpl-sources-download
  grep groff-base gsettings-desktop-schemas gstreamer1.0-alsa gstreamer1.0-plugins-base gstreamer1.0-pulseaudio gtk-update-icon-cache gtk2-engines-oxygen
  gtk2-engines-pixbuf gtk3-engines-breeze gvfs gvfs-common gvfs-daemons gvfs-libs gwenview gzip hardened-desktop-applications-kde hardened-packages-dependencies-cli
  hardened-packages-recommended-cli haveged hexchat hostname ifupdown imagemagick imagemagick-6.q16 init init-system-helpers initscripts inotify-tools insserv
  iproute2 iptables iputils-ping isc-dhcp-client isc-dhcp-common katepart kcalc kde-cli-tools kde-config-gtk-style kde-config-gtk-style-preview
  kde-config-screenlocker kde-config-sddm kde-runtime kde-runtime-data kde-style-oxygen-qt5 kdelibs-bin kdelibs5-data kdelibs5-plugins kdepasswd kdesudo kdoctools
  keyboard-configuration kfind kgpg kinit kio kmenuedit kmod konsole konsole-kpart kpackagetool5 kscreen ksysguard ksysguardd ksystemlog ktexteditor-katepart kwrite
  less liba52-0.7.4 libaa1 libacl1 libakonadi-contact4 libakonadi-kde4 libakonadiprotocolinternals1 libapparmor-perl libapparmor1 libapt-inst2.0 libapt-pkg-perl
  libapt-pkg5.0 libarchive-tools libarchive13 libasan3 libasound2 libasound2-plugins libaspell15 libass5 libassuan0 libasyncns0 libatasmart4 libatk-bridge2.0-0
  libatk1.0-0 libatomic1 libatspi2.0-0 libattica0.4 libattr1 libaudio2 libaudit1 libavahi-client3 libavahi-common3 libavahi-glib1 libavc1394-0 libavcodec57
  libavformat57 libavresample3 libavutil55 libbasicusageenvironment1 libbind9-140 libblas3 libblkid1 libbluray1 libbonobo2-0 libboost-filesystem1.62.0
  libboost-iostreams1.62.0 libboost-system1.62.0 libbsd0 libbz2-1.0 libc-bin libc-dev-bin libc6 libc6-dev libcaca0 libcairo-gobject2 libcairo2 libcanberra-gtk3-0
  libcanberra0 libcap-ng0 libcap2 libcap2-bin libcc1-0 libcddb2 libcdparanoia0 libchromaprint1 libcilkrts5 libclucene-core1v5 libcolord2 libcomerr2 libcroco3
  libcrypto++6 libcryptsetup4 libcrystalhd3 libcups2 libcupsimage2 libcurl3 libcurl3-gnutls libcwidget3v5 libdatrie1 libdb5.3 libdbus-1-3 libdbus-glib-1-2
  libdbusmenu-qt2 libdbusmenu-qt5-2 libdc1394-22 libdca0 libdconf1 libdebconfclient0 libdevmapper1.02.1 libdlrestrictions1 libdmtx0a libdns-export162 libdns162
  libdolphinvcs5 libdouble-conversion1 libdpkg-perl libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libdvbpsi10 libdvdnav4 libdvdread4
  libeatmydata1 libebml4v5 libedit2 libegl1-mesa libelf1 libenchant1c2a libencode-locale-perl libepoxy0 libepub0 libestr0 libevdev2 libevent-2.0-5 libexiv2-14
  libexpat1 libexporter-tiny-perl libfaad2 libfaketime libfam0 libfastjson4 libfdisk1 libffi6 libfftw3-double3 libfile-basedir-perl libfile-desktopentry-perl
  libfile-fnmatch-perl libfile-listing-perl libfile-mimeinfo-perl libflac8 libfontconfig1 libfontenc1 libfreetype6 libfribidi0 libfuse2 libgbm1 libgcc-6-dev libgcc1
  libgck-1-0 libgconf-2-4 libgcr-base-3-1 libgcr-ui-3-1 libgcrypt20 libgd3 libgdbm3 libgdk-pixbuf2.0-0 libgeoip1 libgfortran3 libgif7 libgirepository-1.0-1
  libgit2-24 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgles2-mesa libglib2.0-0 libglib2.0-bin libgme0 libgmp10 libgnome-2-0 libgnome2-bin libgnome2-common
  libgnomevfs2-0 libgnomevfs2-common libgnutls-dane0 libgnutls30 libgomp1 libgpg-error0 libgpgme++2v5 libgpgme11 libgpgmepp6 libgpm2 libgraphite2-3 libgroupsock8
  libgs9 libgsm1 libgssapi-krb5-2 libgstreamer-plugins-bad1.0-0 libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 libgtk-3-0 libgtk-3-common libgtk2.0-0
  libgudev-1.0-0 libharfbuzz-icu0 libharfbuzz0b libhavege1 libhogweed4 libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl
  libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libhttp-parser2.1 libhunspell-1.4-0 libhyphen0 libical2 libice6 libicu57 libidn11 libidn2-0
  libijs-0.35 libilmbase12 libimage-exiftool-perl libinotifytools0 libinput-bin libinput10 libio-html-perl libio-socket-ssl-perl libiodbc2 libip4tc0 libip6tc0
  libipc-system-simple-perl libiptc0 libisc-export160 libisc160 libisccc140 libisccfg140 libisl15 libitm1 libiw30 libjack-jackd2-0 libjavascriptcoregtk-4.0-18
  libjbig0 libjbig2dec0 libjpeg62-turbo libjson-glib-1.0-0 libjsoncpp1 libk5crypto3 libkabc4 libkactivities6 libkate1 libkatepartinterfaces4 libkcalcore4
  libkcmutils4 libkde3support4 libkdeclarative5 libkdecore5 libkdesu5 libkdeui5 libkdewebkit5 libkdnssd4 libkemoticons4 libkexiv2-11 libkeyutils1 libkf5activities5
  libkf5archive5 libkf5attica5 libkf5auth5 libkf5baloo5 libkf5balooengine5 libkf5baloowidgets5 libkf5bookmarks5 libkf5calendarevents5 libkf5codecs5
  libkf5completion5 libkf5configcore5 libkf5configgui5 libkf5configwidgets-data libkf5configwidgets5 libkf5coreaddons5 libkf5crash5 libkf5dbusaddons5
  libkf5declarative5 libkf5filemetadata-bin libkf5filemetadata3 libkf5globalaccel5 libkf5guiaddons5 libkf5i18n5 libkf5iconthemes5 libkf5idletime5 libkf5itemmodels5
  libkf5itemviews5 libkf5jobwidgets5 libkf5js5 libkf5kcmutils5 libkf5kdcraw5 libkf5kdelibs4support5 libkf5khtml5 libkf5kiocore5 libkf5kiofilewidgets5 libkf5kiontlm5
  libkf5kiowidgets5 libkf5kipi31.0.0 libkf5newstuff5 libkf5notifications5 libkf5notifyconfig5 libkf5package5 libkf5parts5 libkf5plasma5 libkf5plasmaquick5
  libkf5pty5 libkf5quickaddons5 libkf5screen-bin libkf5screen7 libkf5service-bin libkf5service5 libkf5solid5 libkf5sonnetcore5 libkf5sonnetui5 libkf5style5
  libkf5su-bin libkf5su5 libkf5sysguard-bin libkf5texteditor5 libkf5textwidgets5 libkf5wallet-bin libkf5wallet5 libkf5waylandclient5 libkf5waylandserver5
  libkf5widgetsaddons5 libkf5windowsystem5 libkf5xmlgui5 libkfile4 libkhtml5 libkio5 libkjsapi4 libkjsembed4 libkldap4 libkmediaplayer4 libkmime4 libkmod2
  libknewstuff3-4 libknotifyconfig4 libkntlm4 libkonq-common libkonq5abi1 libkparts4 libkpimutils4 libkprintutils4 libkpty4 libkrb5-3 libkrb5support0 libkresources4
  libkrosscore4 libksba8 libkscreenlocker5 libksgrd7 libksignalplotter7 libktexteditor4 libkwalletbackend5-5 libkxmlrpcclient4 liblapack3 liblcms2-2 libldap-2.4-2
  libldb1 liblirc-client0 liblist-moreutils-perl liblivemedia57 libllvm3.9 liblmdb0 liblocale-gettext-perl liblockfile-bin liblockfile1 liblogging-stdlog0
  liblognorm5 liblqr-1-0 liblsan0 libltdl7 liblua5.2-0 liblwp-mediatypes-perl liblwp-protocol-https-perl liblwres141 liblz4-1 liblzma5 liblzo2-2 libm17n-0 libmad0
  libmagic1 libmagickcore-6.q16-3 libmagickwand-6.q16-3 libmailtools-perl libmatroska6v5 libmhash2 libmicrodns0 libmng1 libmnl0 libmount1 libmp3lame0 libmpc3
  libmpcdec6 libmpdec2 libmpeg2-4 libmpfr4 libmpg123-0 libmpx2 libmtdev1 libmtp9 libnautilus-extension1a libncurses5 libncursesw5 libnepomuk4 libnepomukquery4a
  libnepomukutils4 libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl libnetfilter-conntrack3 libnettle6 libnewt0.52 libnfnetlink0 libnfs8 libnghttp2-14
  libnl-3-200 libnl-genl-3-200 libnl-route-3-200 libnotify-bin libnotify4 libnpth0 libnspr4 libnss3 libntfs-3g871 libntrack-qt4-1 libntrack0 libnuma1 libogg0
  libokularcore7 libopenexr22 libopenjp2-7 libopenmpt-modplug1 libopenmpt0 libopts25 libopus0 liborbit-2-0 liborc-0.4-0 libotf0 liboxygenstyle5-5
  liboxygenstyleconfig5-5 libp11-kit0 libpam-modules libpam-modules-bin libpam-runtime libpam-systemd libpam0g libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0
  libpangoxft-1.0-0 libpaper1 libparted2 libpci3 libpciaccess0 libpcre16-3 libpcre3 libpcsclite1 libperl5.24 libphonon4 libphonon4qt5-4 libpipeline1 libpixman-1-0
  libpkcs11-helper1 libplasma3 libpng16-16 libpolkit-agent-1-0 libpolkit-backend-1-0 libpolkit-gobject-1-0 libpolkit-qt-1-1 libpolkit-qt5-1-1 libpoppler-glib8
  libpoppler-qt4-4 libpoppler-qt5-1 libpoppler64 libpopt0 libpostproc54 libprison0 libprocesscore7 libprocessui7 libprocps6 libprotobuf-lite10 libprotobuf10
  libproxy1v5 libpsl5 libpulse-mainloop-glib0 libpulse0 libpulsedsp libpython-stdlib libpython2.7 libpython2.7-stdlib libpython3-stdlib libpython3.5
  libpython3.5-minimal libpython3.5-stdlib libqca2 libqimageblitz4 libqjson0 libqmobipocket1 libqrencode3 libqrexec-utils2 libqt4-dbus libqt4-declarative
  libqt4-designer libqt4-network libqt4-opengl libqt4-qt3support libqt4-script libqt4-sql libqt4-svg libqt4-xml libqt4-xmlpatterns libqt5clucene5 libqt5core5a
  libqt5dbus5 libqt5designer5 libqt5gui5 libqt5help5 libqt5multimedia5 libqt5multimediaquick-p5 libqt5network5 libqt5opengl5 libqt5printsupport5 libqt5qml5
  libqt5quick5 libqt5quickwidgets5 libqt5script5 libqt5sql5 libqt5svg5 libqt5test5 libqt5webkit5 libqt5widgets5 libqt5x11extras5 libqt5xml5 libqtcore4 libqtdbus4
  libqtgui4 libqtwebkit4 libquadmath0 libqubes-rpc-filecopy2 libqubesdb libraptor2-0 librasqal3 libraw1394-11 libraw15 librdf0 libreadline7 libregexp-assemble-perl
  libresid-builder0c2a librest-0.7-0 librsvg2-2 librsvg2-bin librsvg2-common librtmp1 libruby2.3 libsamplerate0 libsasl2-2 libsasl2-modules-db libsdl-image1.2
  libsdl1.2debian libseccomp2 libsecret-1-0 libselinux1 libsemanage1 libsensors4 libsepol1 libshine3 libshout3 libsidplay2 libsigc++-2.0-0v5 libsigsegv2 libslang2
  libsm6 libsmartcols1 libsmbclient libsnappy1v5 libsndfile1 libsndio6.1 libsolid4 libsoprano4 libsoup-gnome2.4-1 libsoup2.4-1 libsoxr0 libspectre1 libspeex1
  libspeexdsp1 libsqlite3-0 libss2 libssh-gcrypt-4 libssh2-1 libssl1.0.2 libssl1.1 libstartup-notification0 libstdc++6 libswresample2 libswscale4 libsysfs2
  libsystemd0 libtag1v5 libtag1v5-vanilla libtalloc2 libtasn1-6 libtcl8.6 libtdb1 libtevent0 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl
  libthai0 libtheora0 libthreadweaver4 libtiff5 libtimedate-perl libtinfo5 libtsan0 libtwolame0 libubsan0 libudev1 libudisks2-0 libunbound2 libunistring0 libupnp6
  liburi-perl libusageenvironment3 libusb-1.0-0 libustr-1.0-1 libutempter0 libuuid1 libva-drm1 libva-wayland1 libva-x11-1 libva1 libvchan-xen libvdpau1
  libvisual-0.4-0 libvlc-bin libvlc5 libvlccore9 libvorbis0a libvorbisenc2 libvorbisfile3 libvpx4 libwacom2 libwavpack1 libwayland-client0 libwayland-cursor0
  libwayland-egl1-mesa libwayland-server0 libwbclient0 libwebkit2gtk-4.0-37 libwebp6 libwebpdemux2 libwebpmux2 libwebrtc-audio-processing1 libwnck-3-0 libwrap0
  libwww-perl libwww-robotrules-perl libx11-6 libx11-xcb1 libx264-148 libx265-95 libxapian30 libxau6 libxaw7 libxcb-composite0 libxcb-damage0 libxcb-dri2-0
  libxcb-dri3-0 libxcb-glx0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-present0 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0
  libxcb-sync1 libxcb-util0 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb-xv0 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 libxen-4.8
  libxen-lowlevel1.0 libxenstore3.0 libxext6 libxfixes3 libxfont2 libxft2 libxi6 libxinerama1 libxkbcommon-x11-0 libxkbcommon0 libxkbfile1 libxml2 libxml2-utils
  libxmu6 libxmuu1 libxpm4 libxrandr2 libxrender1 libxres1 libxshmfence1 libxslt1.1 libxt6 libxtables12 libxtst6 libxv1 libxvidcore4 libxxf86dga1 libxxf86vm1
  libyajl2 libyaml-0-2 libzip4 libzstd1 libzvbi0 locales login logrotate lsb-release lsof ltrace make man-db mat mate-notification-daemon
  mate-notification-daemon-common mawk menu mixmaster most mount msgcollector msgcollector-gui multiarch-support nano ncurses-bin net-tools ntfs-3g
  ntrack-module-libnl-0 okular open-link-confirmation openssl openvpn p7zip p7zip-full parted passwd patch pciutils perl perl-base perl-modules-5.24
  perl-openssl-defaults phonon phonon-backend-gstreamer phonon4qt5 phonon4qt5-backend-vlc pinentry-curses pinentry-gnome3 plasma-framework plasma-pa
  plasma-scriptengine-javascript policykit-1 polkit-kde-agent-1 poppler-data poppler-utils procps psmisc pulseaudio pulseaudio-module-gconf pulseaudio-qubes
  pulseaudio-utils pv pwgen python python-cairo python-daemon python-dbus python-docutils python-gdbm python-gi python-gi-cairo python-gobject python-gobject-2
  python-gtk2 python-hachoir-core python-hachoir-parser python-lockfile python-minimal python-msgpack python-mutagen python-nautilus python-numpy python-pdfrw
  python-pil python-pkg-resources python-poppler python-qubesdb python-roman python-talloc python-xdg python-xpyb python2.7 python2.7-minimal python3
  python3-apparmor python3-dateutil python3-gevent python3-greenlet python3-guimessages python3-libapparmor python3-minimal python3-numpy python3-pil
  python3-pkg-resources python3-pyqt5 python3-sdnotify python3-sip python3-six python3-socks python3-stem python3-yaml python3.5 python3.5-minimal qdbus
  qml-module-org-kde-draganddrop qml-module-org-kde-kquickcontrols qml-module-org-kde-kquickcontrolsaddons qml-module-qtgraphicaleffects qml-module-qtmultimedia
  qml-module-qtquick-controls qml-module-qtquick-dialogs qml-module-qtquick-layouts qml-module-qtquick-privatewidgets qml-module-qtquick-window2 qml-module-qtquick2
  qtchooser qubes-core-agent qubes-core-agent-networking qubes-core-agent-qrexec qubes-gpg-split qubes-gui-agent qubes-pdf-converter qubes-thunderbird qubes-utils
  qubes-vm-dependencies qubes-whonix qubes-whonix-workstation qubes-whonix-workstation-packages-recommended qubesdb qubesdb-vm rake readline-common ricochet-im
  rsync rsyslog ruby ruby2.3 rubygems-integration samba-libs scurl sdwdate sdwdate-gui secure-delete security-misc sed sgml-base sgml-data shared-mime-info socat
  soprano-daemon startpar strace sudo sysfsutils systemd systemd-sysv systemsettings sysv-rc sysvinit-utils tar tasksel tasksel-data tb-default-browser tb-starter
  tb-updater telnet thunderbird timesanitycheck tinyproxy tor tor-ctrl torsocks tzdata ucf udev udisks2 unzip usability-misc util-linux uwt vim-common vim-nox
  vim-tiny virt-what vlc vlc-bin vlc-plugin-base vlc-plugin-qt vlc-plugin-video-output wget whiptail whonix-base-files whonix-firewall whonix-initializer
  whonix-legacy whonix-repository whonix-shared-default-applications-gui whonix-shared-packages-dependencies-cli whonix-shared-packages-recommended-cli
  whonix-workstation-default-applications-gui whonix-workstation-packages-dependencies-cli whonix-workstation-packages-dependencies-pre
  whonix-workstation-packages-recommended-cli whonix-workstation-packages-recommended-gui whonix-workstation-shared-packages-shared-meta whonix-ws-irc-chat-support
  whonix-ws-network-conf whonix-ws-start-menu-additions whonixcheck wireless-tools wmctrl wpasupplicant x11-utils x11-xkb-utils x11-xserver-utils xauth
  xchat-improved-privacy xdg-user-dirs xen-utils-common xenstore-utils xinit xml-core xserver-common xserver-xorg-core xserver-xorg-input-qubes
  xserver-xorg-video-dummyqbs xterm xxd xz-utils youtube-dl zenity zip zlib1g zsh zsh-common
The following NEW packages will be installed:
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) gpgv (due to apt) debian-archive-keyring (due to apt) init-system-helpers (due to apt) libapt-pkg5.0 (due to apt) libc6 (due to apt)
  libgcc1 (due to apt) libstdc++6 (due to apt) base-files base-passwd libdebconfclient0 (due to base-passwd) bash dash (due to bash) libtinfo5 (due to bash)
  debianutils (due to bash) bsdutils libsystemd0 (due to bsdutils) coreutils libacl1 (due to coreutils) libattr1 (due to coreutils) libselinux1 (due to coreutils)
  dpkg (due to dash) diffutils libbz2-1.0 (due to dpkg) liblzma5 (due to dpkg) zlib1g (due to dpkg) tar (due to dpkg) e2fsprogs e2fslibs (due to e2fsprogs)
  libblkid1 (due to e2fsprogs) libcomerr2 (due to e2fsprogs) libss2 (due to e2fsprogs) libuuid1 (due to e2fsprogs) util-linux (due to e2fsprogs) findutils grep
  libpcre3 (due to grep) gzip hostname init systemd-sysv (due to init) perl-base (due to init-system-helpers) libc-bin login libaudit1 (due to login)
  libpam0g (due to login) libpam-runtime (due to login) libpam-modules (due to login) mount libmount1 (due to mount) libsmartcols1 (due to mount)
  libudev1 (due to mount) ncurses-bin sed sysvinit-utils libfdisk1 (due to util-linux) libncursesw5 (due to util-linux)
0 upgraded, 1 newly installed, 1139 to remove and 0 not upgraded.
Need to get 3,624 kB of archives.
After this operation, 1,781 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'


Can’t reproduce.

sudo apt install locales-all 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 21 not upgraded.
Need to get 3,624 kB of archives.
After this operation, 130 MB of additional disk space will be used.
Get:1 tor+http://vwakviie2ienjx6t.onion/debian stretch/main amd64 locales-all amd64 2.24-11+deb9u3 [3,624 kB]
Fetched 3,624 kB in 19s (181 kB/s)                                                                                                                                                                                                                                             
Selecting previously unselected package locales-all.
(Reading database ... 76839 files and directories currently installed.)
Preparing to unpack .../locales-all_2.24-11+deb9u3_amd64.deb ...
Unpacking locales-all (2.24-11+deb9u3) ...
Setting up locales-all (2.24-11+deb9u3) ...


Worth investigating.

Strange. You seem to have qubes-whonix-workstation installed. Good.


(I still don’t think we need locales-all installed. But this packaging issue is worth finding out.)

Try please:

sudo apt-get install locales-all qubes-whonix-workstation

Don’t proceed. Copy output here.

user@host:~$ sudo apt-get install locales-all qubes-whonix-workstation
Reading package lists... Done
Building dependency tree       
Reading state information... Done
qubes-whonix-workstation is already the newest version (3:7.9-1).
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:
 libc6 : Breaks: locales-all (< 2.27) but 2.24-11+deb9u3 is to be installed
 qubes-whonix-workstation : Depends: qubes-whonix-workstation-packages-recommended but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.