当前位置:网站首页>2. 银河麒麟离线模式下如何安装MySQL数据库
2. 银河麒麟离线模式下如何安装MySQL数据库
2022-06-29 18:14:00 【张三编程分享】
依赖报错问题
很多时候使用场景操作系统并不一定能联网,这个时候我们该如何离线安装MySQL数据库呢,特别是使用网上下载的deb包一直报依赖关系错误,该如何一步解决依赖问题并安装呢?
类似于这种错误:
解决方法:
- 准备一台系统内核版本一样的机器并连接到公网网络
通过sudo apt -d install mysql-server命令下载mysql-server相关的deb安装包,为什么添加“-d”参数呢,因为使用sudo apt install mysql-server命令是下载安装相关文件包及依赖项一起完成的,并且会在安装后删除相应的文件,这个时候你也不知道使用了哪些文件进行安装,而我们有时候只拿到了相应的安装文件,却没有拿到相应的依赖文件,所以在安装时会报依赖问题,此时添加“-d”参数就是只下载文件及依赖文件,不进行安装,通过sudo apt -d install mysql-server后,可以在 /var/cache/apt/arichve/文件夹下看到相应的deb包,此时将所有的deb包拷贝到离线的机器上,然后进入文件目录,使用sudo dpkg -i *.deb命令完成mysql-server的安装并且不会报依赖错误
边栏推荐
- 源码安装MAVROS
- 第02章_MySQL的数据目录
- 山东大学项目实训(六)点击事件展示折线图
- MySQL -connector/j driver download
- About microservices
- 数据分析基础--预测模型
- Apache Doris basic usage summary
- Adobe Premiere基础-常用的视频特效(裁剪,黑白,剪辑速度,镜像,镜头光晕)(十五)
- The 8th "Internet +" competition - cloud native track invites you to challenge
- How do I add SmartArt to slides in PowerPoint?
猜你喜欢

Shandong University project training (VIII) design rotation map entry page

行程卡“摘星”热搜第一!刺激旅游产品搜索量齐上涨

How to use the oak camera on raspberry pie?

Sword finger offer 34 Path DFS method for binary tree neutralization

Anaconda安装并配置jupyter notebook远程

Adobe Premiere基础-时间重映射(十)

源码安装MAVROS

jdbc_相關代碼

How to use idea?

Request header field xxxx is not allowed by Access-Control-Allow-Headers in preflight response问题
随机推荐
data-*属性用法
Failed to allocate graph: myriad device is not opened
Error [warning] neural network information was performed on socket 'RGB', depth frame is aligned to socket
Adobe Premiere基础-批量素材导入序列-变速和倒放(回忆)-连续动作镜头切换-字幕要求(十三)
Yolov6+tensorrt+onnx: deployment based on win10+tensorrt8+yolov6+onnx
[tcapulusdb knowledge base] tcapulusdb doc acceptance - create business introduction
If the evaluation conclusion of waiting insurance is poor, does it mean that waiting insurance has been done in vain?
WBF: new method of NMS post filter frame for detection task?
Adobe Premiere基础-时间重映射(十)
SD6.22集训总结
Request header field XXXX is not allowed by access control allow headers in preflight response
源码安装MAVROS
SD6.25集训总结
Adobe Premiere基础-常用的视频特效(边角定位,马赛克,模糊,锐化,手写工具,效果控件层级顺序)(十六)
2022.6.29-----leetcode.535
数据分析基础--预测模型
Adobe Premiere foundation - opacity (matte) (11)
Shandong University project training (VII) add navigation bar to select city
JWT登录验证
剑指 Offer 34. 二叉树中和为某一值的路径-dfs法