trying to install fmt on archcraft stop because breaks dependency 'libfmt.so=8-64' - themes

i'm trying to install a Archcraft theme, but when i run the command sudo pacman -U archcraft-wayfire-1.0-2-any.pkg.tar.zst it gave me this error:
 sudo pacman -U archcraft-wayfire-1.0-2-any.pkg.tar.zst
[sudo] password for rick:
loading packages...
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing fmt (9.1.0-1) breaks dependency 'libfmt.so=8-64' required by mpd
How can i fix?

Try installing fmt package by the following command:
sudo pacman -S fmt

Related

apt-key using terminal giving error message

I keep getting the following error when trying to run the following code
wget -q -O - https://workspaces-client-linux-public-key.s3-us-west-2.amazonaws.com/ADB332E7.asc | sudo apt-key add -
sudo: apt-key: command not found
➜ ~ brew install apt apt: Linux is required for this software. Error: apt: An unsatisfied requirement failed this build. ➜ ~
I have gone online and installed the wget to correct that error. I have tried to install the apt, but keep getting errors.

Cannot install update-notifier-common in Ubuntu pyxis container

I'm trying to set up a script that initialises my Ubuntu pyxis container:
#!/usr/bin/env bash
# Python and nano
apt-get update
apt-get install -y software-properties-common python3-pip python3-tk nano
# Fonts
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections # Automatically accept EULA
echo ttf-mscorefonts-installer msttcorefonts/present-mscorefonts-eula note | debconf-set-selections # Automatically accept EULA
apt-get install -y msttcorefonts
rm -r ~/.cache/matplotlib 2>/dev/null
# Required python packages
pip3 install joblib matplotlib numpy pillow scikit-learn scipy tqdm
I run this script with
srun --container-image ubuntu:latest /root/setup_container.sh >~/setup_container.log 2>&1
However, the installation of the MS fonts package fails due to update-notifier-common not being configured correctly. The key part of the log file is below (I also uploaded the entire log file here).
...
Setting up update-notifier-common (3.192.30.9) ...
chown: invalid user: ‘_apt:root’
dpkg: error processing package update-notifier-common (--configure):
installed update-notifier-common package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of ttf-mscorefonts-installer:
ttf-mscorefonts-installer depends on update-notifier-common (>= 0.119ubuntu2); however:
Package update-notifier-common is not configured yet.
dpkg: error processing package ttf-mscorefonts-installer (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Errors were encountered while processing:
update-notifier-common
ttf-mscorefonts-installer
W: No sandbox user '_apt' on the system, can not drop privileges
E: Sub-process /usr/bin/dpkg returned an error code (1)
...
Since the log contains an error message about an invalid _apt:root user, and I was also getting No sandbox user 'apt' warnings elsewhere in the log file, I tried to create an _apt user myself, but that brought on new errors:
#!/usr/bin/env bash
# _apt user
adduser _apt --home /nonexistent --system --no-create-home --force-badname
usermod -aG sudo _apt
usermod -aG root _apt
# Python and nano
apt-get update
apt-get install -y software-properties-common python3-pip python3-tk nano
# Fonts
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections # Automatically accept EULA
echo ttf-mscorefonts-installer msttcorefonts/present-mscorefonts-eula note | debconf-set-selections # Automatically accept EULA
apt-get install -y msttcorefonts
rm -r ~/.cache/matplotlib 2>/dev/null
⠀
Warning: The home dir /nonexistent you specified can't be accessed: No such file or directory
Allowing use of questionable username.
Adding system user `_apt' (UID 100) ...
Adding new user `_apt' (UID 100) with group `nogroup' ...
Not creating home directory `/nonexistent'.
Reading package lists...
E: Method gave invalid 400 URI Failure message: Could not switch group
E: Method gave invalid 400 URI Failure message: Could not switch group
E: Method http has died unexpectedly!
E: Sub-process http returned an error code (112)
E: Method http has died unexpectedly!
E: Sub-process http returned an error code (112)
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package software-properties-common
E: Unable to locate package python3-pip
E: Unable to locate package python3-tk
E: Unable to locate package nano
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package msttcorefonts
/root/GE/setup_container.sh: line 19: pip3: command not found
/root/GE/setup_container.sh: line 21: pip3: command not found
srun: error: gpu01: task 0: Exited with exit code 127
How do I get update-notifier-common (and subsequently msttcorefonts) to install properly?
I managed to resolve the issue by manually downloading and installing the msttcorefonts package, as apparently the version on the Ubuntu repo is currently broken.
apt-get install -y wget
wget http://ftp.de.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.8_all.deb -O ~/msfonts.deb
apt-get install -y ~/msfonts.deb
rm ~/msfonts.deb

Python3-pip installation error | The following packages have unmet dependencies:

apt install python3-pip
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:
libc6-dev : Breaks: libgcc-9-dev (< 9.3.0-5~) but 9.2.1-19 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
You can try the following:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
or
download get-pip.py from here:
https://bootstrap.pypa.io/get-pip.py
then run :
python get-pip.py
If you can`t starting script of Divyessh, try to install python3 and start command:
python3 get-pip.py

Why i can't install RStudio in ubuntu 19.04?

I can't install RStudio in Ubuntu 19.04, it gives me the following error in the terminal, I really appreciate the guidance you can give me, thanks
$ sudo dpkg -i rstudio-1.2.5042-amd64.deb
(Reading database ... 302725 files and directories currently installed.)
Preparing to unpack rstudio-1.2.5042-amd64.deb ...
Unpacking rstudio (1.2.5042) over (1.2.5042) ...
dpkg: dependency problems prevent configuration of rstudio:
rstudio depends on libclang-dev; however:
Package libclang-dev is not installed.
dpkg: error processing package rstudio (--install):
dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.32.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-4ubuntu1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for shared-mime-info (1.10-1) ...
Errors were encountered while processing:
rstudio
libclang-dev depends of libclang-8-dev -> libobjc-8-dev -> libobjc4-dev
Try sudo apt-get install gdebi-core and then sudo gdebi rstudio-1.2.5042-amd64.deb. gdebi will install the dependencies automatically for you.
There is another way with apt if you don't want to install gdebi; I believe the syntax is sudo apt install ./rstudio-1.2.5042-amd64.deb.
Alternatively, if you already forced dpkg to install the package, you can run sudo apt-get --fix-broken install to install the dependencies.
Try install version
rstudio-xenial-1.1.456-amd64.deb in
https://www.rstudio.org/download/daily/desktop/ubuntu64/
Bro!

rvm throws following error while installing ruby 2.0.0

I am getting the following error while installing the fresh ruby 2.0.0-p648 through rvm
$ rvm install 2.0.0
Searching for binary rubies, this might take some time.
Found remote file https://rubies.travis-ci.org/ubuntu/14.04/x86_64/ruby-2.0.0-p648.tar.bz2
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system..bob password required for 'apt-get --quiet --yes update':
...........
Installing required packages: libgmp-dev....
Error running 'requirements_debian_libs_install libgmp-dev',
showing last 15 lines of /home/rank/.rvm/log/1467783851_ruby-2.0.0-p648/package_install_libgmp-dev.log
++ sudo -p '%p password required for '\''apt-get --no-install-recommends --yes install libgmp-dev'\'': ' apt-get --no-install-recommends --yes install libgmp-dev
Reading package lists...
Building dependency tree...
Reading state information...
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:
libgmp-dev : Depends: libgmp10 (= 2:5.0.2+dfsg-2ubuntu1) but 2:5.1.3+dfsg-1ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
++ return 100
++ return 100
Requirements installation failed with status: 100.
Please help

Resources