freetype-devel 升级文件缺失

Alinux 当前版本信息:

Operating System: Alibaba Cloud Linux 3 (Soaring Falcon)

Kernel: Linux 5.10.134-15.al8.x86_64

Architecture: x86-64

freetype及freetype-devel版本:2.19

升级时,freetype有2.10但freetype-devel没有对应版本,所以报以下错误:

yum update

Last metadata expiration check: 0:04:22 ago on Mon 31 Jul 2023 09:25:23 AM CST.

Error:

Problem: package freetype-devel-2.9.1-4.2.al8.x86_64 requires freetype = 2.9.1-4.2.al8, but none of the providers can be installed

  • cannot install both freetype-2.10.4-9.al8.x86_64 and freetype-2.9.1-4.2.al8.x86_64

  • cannot install the best update candidate for package freetype-devel-2.9.1-4.2.al8.x86_64

  • cannot install the best update candidate for package freetype-2.9.1-4.2.al8.x86_64

(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

展开
收起
我不是老菜 2023-07-31 09:33:32 923 分享 版权
1 条回答
写回答
取消 提交回答
  • freetype-devel是一个开源字体渲染库的开发包,用于在Linux系统上进行字体相关的开发。如果您在升级freetype-devel时遇到文件缺失的问题,可能有几个可能的原因和解决方法:

    1. 检查软件源:首先,请确保您的软件源配置正确,并且可以正常访问。某些情况下,文件缺失问题可能是由于软件源不完整或不稳定导致的。您可以尝试切换至其他可靠的软件源,或者更新现有软件源以获取最新的版本和文件。

    2. 更新软件包索引:运行以下命令来更新您的软件包索引信息,以便系统能够找到最新的可用软件包:

      sudo apt update
      
    3. 安装依赖项:在尝试安装freetype-devel之前,确保您已经安装了所有必需的依赖项。运行以下命令来安装一些常见的构建工具和库:

      sudo apt install build-essential
      
    4. 其他来源安装:如果您无法通过包管理器获得所需的freetype-devel包,您可以尝试从其他来源手动安装。您可以前往freetype官方网站(https://www.freetype.org/)下载最新的freetype-devel源代码,并按照其提供的说明进行编译和安装。

    请注意,具体解决方法可能会依赖于您使用的Linux发行版和软件包管理器。以上解决方案提供了一般性的建议,请根据您的环境和实际情况进行适当调整。如果问题仍然存在,建议您参考相关文档、社区论坛或联系发行版的支持渠道以获得更专业的帮助。

    2023-07-31 19:28:25
    赞同 展开评论
问答地址:

云服务器(Elastic Compute Service,简称 ECS)是一种简单高效、处理能力可弹性伸缩的计算服务,可快速构建更稳定、安全的应用,提升运维效率,降低 IT 成本。

收录在圈子:
+ 订阅
还有其他疑问?
咨询AI助理