Как установить шрифты Microsoft на Ubuntu 16.10? [Дубликат]

У этого вопроса уже есть ответ: Ошибка загрузки дополнительных файлов данных - ttf-mscorefonts-installer [duplicate] 2 ответа

Как установить шрифты Microsoft на Ubuntu 16.10? Я пытался с $ sudo apt install ttf-mscorefonts-installer, но безуспешно. Вот скриншот:

$ sudo apt install ttf-mscorefonts-installer
...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libc++1 libjemalloc1 linux-headers-4.8.0-26 linux-headers-4.8.0-26-generic
  linux-headers-4.8.0-27 linux-headers-4.8.0-27-generic
  linux-image-4.8.0-26-generic linux-image-4.8.0-27-generic
  linux-image-extra-4.8.0-26-generic linux-image-extra-4.8.0-27-generic
  linux-signed-image-4.8.0-26-generic linux-signed-image-4.8.0-27-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  cabextract libmspack0
The following NEW packages will be installed:
  cabextract libmspack0 ttf-mscorefonts-installer
0 upgraded, 3 newly installed, 0 to remove and 86 not upgraded.
Need to get 89,2 kB of archives.
After this operation, 362 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://nl.archive.ubuntu.com/ubuntu yakkety/main amd64 libmspack0 amd64 0.5-1 [38,2 kB]
Get:2 http://nl.archive.ubuntu.com/ubuntu yakkety/universe amd64 cabextract amd64 1.6-1 [21,4 kB]
Get:3 http://nl.archive.ubuntu.com/ubuntu yakkety/multiverse amd64 ttf-mscorefonts-installer all 3.4+nmu1ubuntu2 [29,5 kB]
Fetched 89,2 kB in 0s (577 kB/s)                   
Preconfiguring packages ...
Selecting previously unselected package libmspack0:amd64.
(Reading database ... 321446 files and directories currently installed.)
Preparing to unpack .../0-libmspack0_0.5-1_amd64.deb ...
Unpacking libmspack0:amd64 (0.5-1) ...
Selecting previously unselected package cabextract.
Preparing to unpack .../1-cabextract_1.6-1_amd64.deb ...
Unpacking cabextract (1.6-1) ...
Selecting previously unselected package ttf-mscorefonts-installer.
Preparing to unpack .../2-ttf-mscorefonts-installer_3.4+nmu1ubuntu2_all.deb ...
Unpacking ttf-mscorefonts-installer (3.4+nmu1ubuntu2) ...
Setting up libmspack0:amd64 (0.5-1) ...
Processing triggers for update-notifier-common (3.175) ...
ttf-mscorefonts-installer: processing...
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/andale32.exe
Err:1 http://downloads.sourceforge.net/corefonts/andale32.exe
  404  Not Found
W: Can't drop privileges for downloading as file '/var/lib/update-notifier/package-data-downloads/partial/andale32.exe' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
E: Failed to fetch https://downloads.sourceforge.net/project/corefonts/the?download&failedmirror=heanet.dl.sourceforge.net  404  Not Found
E: Download Failed
Setting up cabextract (1.6-1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up ttf-mscorefonts-installer (3.4+nmu1ubuntu2) ...
Processing triggers for fontconfig (2.11.94-0ubuntu2) ...
Processing triggers for libc-bin (2.24-3ubuntu1) ...
1
задан 18 December 2016 в 22:09

3 ответа

Это ошибка разрешений для пользователя «_apt». Пожалуйста, сделайте ...

sudo chown _apt:root /var/lib/update-notifier/package-data-downloads/partial/
sudo rm /var/lib/update-notifier/package-data-downloads/partial/*.FAILED
sudo apt install --reinstall update-notifier-common

Вторая строка может ошибиться, если нет файлов, заканчивающихся на «.FAILED». Третья команда установит шрифты.

sudo apt install ttf-mscorefonts-installer

покажет ...

Reading package lists... Done
Building dependency tree       
Reading state information... Done
ttf-mscorefonts-installer is already the newest version (3.4+nmu1ubuntu2).
2
ответ дан 23 May 2018 в 03:14
  • 1
    Это не помогло мне. Я попытаюсь установить LibreOffice и Microsoft Fonts в Wine. – Danijel Gomola 18 December 2016 в 22:31

Вы попали в ошибку # 1607535. Обходной путь - загрузить и установить ttf-mscorefonts-installer из Debian.

1
ответ дан 23 May 2018 в 03:14

Я загружаю шрифты из https://sourceforge.net/projects/corefonts/files/the%20fonts/final/, а с помощью команды 7z я извлекаю EXE-файлы и создаю каталог .fonts в каталоге / home, куда я переместил извлечение файлы. Теперь в LibreOffice я вижу шрифты типа Times New Roman. Спасибо всем за помощь.

1
ответ дан 23 May 2018 в 03:14

Другие вопросы по тегам:

Похожие вопросы: