前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >ubuntu系统搭建饥荒服务器出现libcurl-gnutls.so.4: cannot open shared object file: No such file or directory怎么办

ubuntu系统搭建饥荒服务器出现libcurl-gnutls.so.4: cannot open shared object file: No such file or directory怎么办

作者头像
用户6948990
发布于 2025-04-03 12:52:20
发布于 2025-04-03 12:52:20
16600
代码可运行
举报
文章被收录于专栏:wuterwuter
运行总次数:0
代码可运行

原因:饥荒是单核32位软件,只要使用64位的linux系统(常用ubuntu16.04和centos搭建),就需要安装一些32位的运行库软件

最简单的方法:换成32位系统,如果不方便或者必须要用32位系统,请继续阅读

第一步:更换apt源(尤其是百度云服务器!)

如果是阿里和腾讯的系统可以跳过,如果是百度云的系统,一定要操作这一步

gedit /etc/apt/sources.list 或vim /etc/apt/sources.list 或直接使用winscp

将文件内容替换为:

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
#deb包
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse  
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse  
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse  
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse  
##测试版源  
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse  
# 源码  
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse  
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse  
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse  
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse  
##测试版源  
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse  
# Canonical 合作伙伴和附加  
deb http://archive.canonical.com/ubuntu/ xenial partner  
deb http://extras.ubuntu.com/ubuntu/ xenial main  

第二步:安装饥荒需要的32位运行库

注:经过网友反馈,部分百度云服务器会出现E: Unable to locate package XXX 的错误提示,解决方法为开启多架构支持,方法如下。

最新版的百度云ubuntu64位系统关闭了多架构支持

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
sudo add-apt-repository multiverse
sudo dpkg --add-architecture i386
sudo apt-get -y update
sudo apt-get -y install screen
sudo apt-get -y install lib32gcc1
sudo apt-get -y install lib32stdc++6
sudo apt-get -y install libcurl4-gnutls-dev:i386
sudo apt-get -y install htop

等待完成后即可开启多架构支持

第三步:重新搭建饥荒即可

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2021-02-05 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 第一步:更换apt源(尤其是百度云服务器!)
  • 第二步:安装饥荒需要的32位运行库
  • 第三步:重新搭建饥荒即可
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档