Install mscorefonts on ec2 - linux

I am attempting to install mscorefonts on ec2, however I can't seem to find the magic combination of terminal commands to make it happen. I am using an m1.medium instance and uname -a returns Linux worker 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
On my personal laptop running: sudo apt-get install -y ttf-mscorefonts-installer works fine, however on my ec2 instance I get the following error message:
The following packages have unmet dependencies:
ttf-mscorefonts-installer : Depends: defoma but it is not installable
Recommends: ttf-liberation but it is not installable
Recommends: x-ttcidfont-conf but it is not installable
indeed, I have not been able to find a way to install any of these components. I have attempted modifying my /etc/apt/sources.list file with these:
deb http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
as shown here: Getting Microsoft Calibri font on Amazon EC2 ubuntu, but even after running sudo apt-get update I am still unsuccessful. How can I install the mscore fonts on ec2? My application needs them to function.

Eventually I figured this out. My solution was to enable the multiverse ppa's. Here is the script that I used.
#font installation -- required to properly display fonts used in
echo "deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ saucy multiverse" | sudo tee -a /etc/apt/sources.list
echo "deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ saucy multiverse" | sudo tee -a /etc/apt/sources.list
echo "deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ saucy-updates multiverse" | sudo tee -a /etc/apt/sources.list
echo "deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ saucy-updates multiverse" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
# preselect yes for ms EULA
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
sudo apt-get install -y ttf-mscorefonts-installer
This works on EC2 ubuntu as of January 2015 and my local machine running ubuntu 14.04.

Adding multiverse is the key. This worked for me on Ubuntu 14.04:
sudo apt-add-repository multiverse && sudo apt-get update
sudo apt-get install -y ttf-mscorefonts-installer

Related

N: Skipping acquire of configured file on repository 'https://download.mono-project.com/repo/ubuntu stable-focal InRelease' doesn't supp arch 'i386'

I am trying to install mono or mono-complete on Ubuntu 20.04. I have got instruction to install or setup on Ubuntu,
these are
$ sudo apt install dirmngr gnupg apt-transport-https ca-certificates software-properties-common
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
$ sudo apt-add-repository 'deb https://download.mono-project.com/repo/ubuntu stable-focal main'
Before, installing the mono-complete
$ sudo apt install mono-complete
I wanted to call the latest repository or packages available from server, for that I tried to update apt package
$ sudo apt update
While updating I got the following error
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://download.mono-project.com/repo/ubuntu stable-focal InRelease' doesn't support architecture 'i386'
what is problem? how to resolved this problem?
For me, on Ubuntu 20.04, changed a line in /etc/apt/sources.list from
deb https://download.mono-project.com/repo/ubuntu stable-focal main
to
deb [arch=amd64] https://download.mono-project.com/repo/ubuntu stable-focal main

Can't install pgadmin4 repository does not have file

I was use command
sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'
But I was got this
Err:2 https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/n/a pgadmin4 Release
404 Not Found [IP: 87.238.57.227 443]
Hit:3 https://community-packages.deepin.com/printer eagle InRelease
Hit:4 https://home-store-img.uniontech.com/appstore deepin InRelease
Reading package lists... Done
E: The repository 'https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/n/a pgadmin4 Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
So I can't install pgadmin
Use Deepin linux 20.2.3
I am using Linux mint, issue has been fixed using the below command.
$ sudo curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add
$ sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/focal pgadmin4 main" \
> /etc/apt/sources.list.d/pgadmin4.list && apt update'
$ sudo apt update
And then, if you want desktop
$ sudo apt install pgadmin4-desktop
OR the web version:
$ sudo apt install pgadmin4-web
$ sudo /usr/pgadmin4/bin/setup-web.sh
# apt-get install curl ca-certificates gnupg
# curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
#vim /etc/apt/sources.list.d/pgdg.list
####### ADD
#deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main
# apt-get update
# apt-get install pgadmin4 pgadmin4-apache2
It should now be successfully installed.
The problem is that lsb_release -cs is not returning the codename for Deepin linux, instead is returning n/a.
Try with that dpkg --status tzdata|grep Provides|cut -f2 -d'-' to retrive the codename.
If you want a oneliner like the one you posted, here you have:
sudo sh -c 'curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add && echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(dpkg --status tzdata|grep Provides|cut -f2 -d'-') pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'
For Ubuntu 22.10 and other versions that complain about apt-key being deprecated, use this:
curl -fsS https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo gpg --dearmor -o /usr/share/keyrings/packages-pgadmin-org.gpg
sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/packages-pgadmin-org.gpg] https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/jammy pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'
Note that "jammy" is being used here in the ftp link. You may browse through the other versions and pick the one that matches your Ubuntu installation's version
sudo apt install pgadmin4
This installs both web and desktop versions.
I experienced this error trying to upgrade my pgadmin4 to version 6. There was a problem with the certificates on my system I think, the solution was updating ca-certificates, if it's not installed you should probably install it, but that may be very unlikely that it's not installed though as it should already be there, but either way just run the command:
sudo apt install ca-certificates
I had the same problem with Debian 11, however exploring options I found this answer enter link description here and fixed the problem by installing lsb-release

How to install Mono 4.0.1 on Debian 8?

I am attempting to install Mono-Complete onto a fresh brand new installation of Debian 8 in order to use ASP.NET 5 as per (code.visualstudio.com/docs), have followed the mono-project.com documentation for Ubuntu 12.04/Debian 8 or later with regards to the second repository that is needed.
However, after following the instructions and attempting to do 'apt-get install mono-complete' I end up with the following issue: http://puu.sh/hxdLB/dbecbf9645.png
This is on a 100% fresh Debian 8 VM (Virtualbox), just finished installing Debian 8 NetInst + Cinnamon, logged into the system as root and added the 2 repos.
If I try and manually install one of those dependencies (such as mono-devel) it comes up with an even bigger list of unmet dependencies that won't be installed.
I resolved this by following article posted by Alexander but also installed one more package monodevelop.
Following commands i run to install mod mono on debian 8.0 jessie:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update
echo "deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list
echo "deb http://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update
sudo apt-get install mono-complete
To get development IDE run:
sudo apt-get install monodevelop
After then can successfully run : sudo a2enmod mod_mono_auto
There was an issue with the Mono packages that should now be resolved, please see http://www.mono-project.com/docs/getting-started/install/linux/#libgdiplus-debian-80-and-later-not-ubuntu.
The reason is that Debian 8 doesn't have libjpeg8 anymore which libgdiplus (a component of Mono) requires.

Installing build-dep on linux mint

I'm trying to install build-dep on Linux mint 15, but I'm getting an error. I've checked my source list and looks fine. I've also updated the system (apt-get update)
This is the command
apt-get build-dep --no-install-recommends linux-image-$(uname -r)
And this is the error:
Picking 'linux' as source package instead of 'linux-image-3.8.0-19-generic'
E: Unable to find a source package for linux
And this is my source.list:
deb http://archive.getdeb.net/ubuntu raring-getdeb apps games
deb-src http://cran.ms.unimelb.edu.au/bin/linux/ubuntu raring/
deb http://packages.linuxmint.com/ nadia main upstream import
deb http://archive.ubuntu.com/ubuntu/ quantal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ quantal-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ quantal-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ quantal partner
deb http://packages.medibuntu.org/ quantal free non-free
# deb http://archive.getdeb.net/ubuntu quantal-getdeb apps
# deb http://archive.getdeb.net/ubuntu quantal-getdeb
You are missing the source uri to install the build-dep. Do:
sudo bash -c 'echo "deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse" >> /etc/apt/sources.list'
sudo apt-get update
sudo apt-get build-dep --no-install-recommends linux-image-$(uname -r) # or any other package
The kernel is special. Install linux-source; apt-get will default to your current version.

Unable to install git

I ran the following commands on linux mint 12 lisa:
1). sudo rm -rf /var/lib/apt/lists/* -vf
2). sudo apt-get update
3). sudo apt-get install git
I am getting the following error on running 3. That is, installing git:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package git
My /etc/apt/sources.list file contains the following content:
deb http://packages.linuxmint.com/ lisa main upstream import
deb http://archive.ubuntu.com/ubuntu/ oneiric main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ oneiric-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ oneiric-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ oneiric partner
deb http://packages.medibuntu.org/ oneiric free non-free
# deb http://archive.getdeb.net/ubuntu oneiric-getdeb apps
# deb http://archive.getdeb.net/ubuntu oneiric-getdeb games
sudo apt-get upgrade shows the following:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
You need to install aptitude first.
sudo apt-get install aptitude
then install git using the command
sudo aptitude install git
I have a similar problem and solved it by running the update and upgrade at the same on one command line.
sudo apt-get update && sudo apt-get upgrade -y
after that I normally installed git with :
sudo apt-get install git
I have tried all but this works for me
In Terminal
$ software-properties-gtk
In Ubuntu, Software/Download_From_internet, enable all of the check marks
$ sudo apt-get install aptitude
$ sudo aptitude install git

Resources