CMakeError: libXft and Xft headers must be installed

I install root from source file https://root.cern.ch/download/root_v6.10.02.source.tar.gz

The cmake gave the following error:

CMake Error at cmake/modules/SearchInstalledSoftware.cmake:265 (message):
  libXft and Xft headers must be installed.
Call Stack (most recent call first):
  CMakeLists.txt:76 (include)


-- Configuring incomplete, errors occurred!

I then tried

sudo apt-get install libxft-dev

and got the following error:

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/e/expat/libexpat1-dev_2.1.0-7ubuntu0.16.04.2_amd64.deb  404  Not Found [IP: 91.189.88.162 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

After running with --fix-missing

Err:1 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libexpat1-dev amd64 2.1.0-7ubuntu0.16.04.2
  404  Not Found [IP: 91.189.88.162 80]
Err:1 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libexpat1-dev amd64 2.1.0-7ubuntu0.16.04.2
  404  Not Found [IP: 91.189.88.162 80]
Unable to correct missing packages.
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/e/expat/libexpat1-dev_2.1.0-7ubuntu0.16.04.2_amd64.deb  404  Not Found [IP: 91.189.88.162 80]

E: Aborting install.

How to solve this situation?

This is an issue with Ubuntu and not ROOT.

Perhaps you want to refer to this?

this is given that your /etc/apt/sources.d include the addresses of the correct sources for your ubuntu version and after you have run apt-get update successfully?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.