软件包“ ttf-mscorefonts-installer”没有安装候选

峰创

我在Amazon EC2 Ubuntu服务器中运行了基于Java的Web应用程序。我使用Jasper报告来生成一些PDF格式的报告。我使用“ Jaspersoft Studio”构建了这些报告

现在,当我尝试生成报告时,出现此错误

net.sf.jasperreports.engine.util.jrfontnotfoundexception font 'Times New Roman' is not available to the jvm

因此,我决定安装Microsoft字体。我打过

sudo apt-get install ttf-mscorefonts-installer

它根本没有用。相反,它给了我以下通知

$ sudo apt-get install ttf-mscorefonts-installer
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ttf-mscorefonts-installer is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'ttf-mscorefonts-installer' has no installation candidate

我该如何解决这个问题?

更新

我的source.list包含在下面。我可以安全编辑吗?

       ## Note, this file is written by cloud-init on first boot of an instance
## modifications made here will not survive a re-bundle.
## if you wish to make changes you can:
## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg
##     or do the same in user-data
## b.) add sources in /etc/apt/sources.list.d
## c.) make changes to template file /etc/cloud/templates/sources.list.tmpl
#

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty main
deb-src http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty main

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty-updates main
deb-src http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty-updates main

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty universe
deb http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
# deb http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty multiverse
# deb-src http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty multiverse
# deb http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
# deb-src http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
# deb-src http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu trusty partner
# deb-src http://archive.canonical.com/ubuntu trusty partner

deb http://security.ubuntu.com/ubuntu trusty-security main
chi

您可以使用以下两种方法来安装软件。

命令行安装

echo "deb http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse" | sudo tee /etc/apt/sources.list.d/multiverse.list 
sudo apt-get update
sudo apt-get install ttf-mscorefonts-installer

易于安装

打开ubuntu软件中心,单击“编辑”,然后从下拉菜单中选择“软件源”。

受版权或法律问题(multiverse)限制的软件的方框中打勾

可能会要求您输入密码。

完成后,运行以下命令:

sudo apt-get update
sudo apt-get install ttf-mscorefonts-installer

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

软件包“ ttf-mscorefonts-installer”没有安装候选

来自分类Dev

如何安装软件包ttf-mscorefonts-installer

来自分类Dev

如何安装软件包ttf-mscorefonts-installer

来自分类Dev

ttf mscorefonts安装程序

来自分类Dev

删除ttf-mscorefonts-installer

来自分类Dev

更改ttf-mscorefonts-installer的镜像

来自分类Dev

升级挂在ttf-mscorefonts-installer上

来自分类Dev

ttf-mscorefonts-installer下载失败

来自分类Dev

更改ttf-mscorefonts-installer的镜像

来自分类Dev

ttf-mscorefonts-installer下载失败

来自分类Dev

升级挂在ttf-mscorefonts-installer上

来自分类Dev

不使用ttf-mscorefonts-installer安装MS字体

来自分类Dev

不使用ttf-mscorefonts-installer安装MS字体

来自分类Dev

如何遵循“半安装的ttf-mscorefonts-installer”中的说明?

来自分类Dev

如何在没有互联网连接的情况下安装“ flashplugin-installer”和“ ttf-mscorefonts-installer”?

来自分类Dev

在没有互联网连接的情况下,如何安装“ flashplugin-installer”和“ ttf-mscorefonts-installer”?

来自分类Dev

如何接受ttf-mscorefonts-installer的Microsoft EULA协议?

来自分类Dev

我接受ttf-mscorefonts-installer EULA吗?

来自分类Dev

我接受ttf-mscorefonts-installer EULA吗?

来自分类Dev

如何接受ttf-mscorefonts-installer的Microsoft EULA协议?

来自分类Dev

运行错误:apt-get install ttf-mscorefonts-installer

来自分类Dev

无法下载额外的数据文件-ttf-mscorefonts-installer

来自分类Dev

安装ttf-mscorefonts后更改Firefox字体

来自分类Dev

安装ttf-mscorefonts后更改Firefox字体

来自分类Dev

软件包'grub-pc'没有候选安装

来自分类Dev

软件包没有安装候选者

来自分类Dev

错误:软件包“ mongodb”没有候选安装

来自分类Dev

软件包“ upstart”没有安装候选对象

来自分类Dev

软件包'libmysqlclient-dev'没有候选安装

Related 相关文章

  1. 1

    软件包“ ttf-mscorefonts-installer”没有安装候选

  2. 2

    如何安装软件包ttf-mscorefonts-installer

  3. 3

    如何安装软件包ttf-mscorefonts-installer

  4. 4

    ttf mscorefonts安装程序

  5. 5

    删除ttf-mscorefonts-installer

  6. 6

    更改ttf-mscorefonts-installer的镜像

  7. 7

    升级挂在ttf-mscorefonts-installer上

  8. 8

    ttf-mscorefonts-installer下载失败

  9. 9

    更改ttf-mscorefonts-installer的镜像

  10. 10

    ttf-mscorefonts-installer下载失败

  11. 11

    升级挂在ttf-mscorefonts-installer上

  12. 12

    不使用ttf-mscorefonts-installer安装MS字体

  13. 13

    不使用ttf-mscorefonts-installer安装MS字体

  14. 14

    如何遵循“半安装的ttf-mscorefonts-installer”中的说明?

  15. 15

    如何在没有互联网连接的情况下安装“ flashplugin-installer”和“ ttf-mscorefonts-installer”?

  16. 16

    在没有互联网连接的情况下,如何安装“ flashplugin-installer”和“ ttf-mscorefonts-installer”?

  17. 17

    如何接受ttf-mscorefonts-installer的Microsoft EULA协议?

  18. 18

    我接受ttf-mscorefonts-installer EULA吗?

  19. 19

    我接受ttf-mscorefonts-installer EULA吗?

  20. 20

    如何接受ttf-mscorefonts-installer的Microsoft EULA协议?

  21. 21

    运行错误:apt-get install ttf-mscorefonts-installer

  22. 22

    无法下载额外的数据文件-ttf-mscorefonts-installer

  23. 23

    安装ttf-mscorefonts后更改Firefox字体

  24. 24

    安装ttf-mscorefonts后更改Firefox字体

  25. 25

    软件包'grub-pc'没有候选安装

  26. 26

    软件包没有安装候选者

  27. 27

    错误:软件包“ mongodb”没有候选安装

  28. 28

    软件包“ upstart”没有安装候选对象

  29. 29

    软件包'libmysqlclient-dev'没有候选安装

热门标签

归档