参考资料

  1. Portainer 是一个轻量级的 Docker 和 Kubernetes 管理界面
  2. Oracle Linux 是由 Oracle 公司提供的企业级 Linux 发行版
  3. Caddy 是一个现代化的、开源的 Web 服务器和反向代理工具
  4. PlayEdu是一款开源的企业在线培训系统
  5. Ubuntu 是基于 Debian 的开源 Linux 发行版
  6. httpd(Apache HTTP Server)是Apache软件基金会开发的开源Web服务器软件
  7. Docker镜像(Image)是什么?
  8. ROS (Robot Operating System) 简介

Fedora 简介

Fedora 是由 Fedora 项目社区开发、Red Hat 赞助的 Linux 发行版。它以创新性、前沿技术和开源精神著称,常作为新技术的试验平台。

特点

  1. 前沿技术:率先采用新技术(如 Wayland、PipeWire)。

  2. 社区驱动:由全球开发者共同维护。

  3. 自由开源:严格遵循开源协议。

  4. 定期更新:每6个月发布一个新版本,支持约13个月。

  5. 多个版本

    • Workstation(桌面版)

    • Server(服务器版)

    • IoT(物联网版)

    • CoreOS(容器优化版)

    • Silverblue(不可变桌面版)

最新更新内容及时间

  • Fedora 40(预计2024年4月发布)

    • GNOME 46 桌面环境

    • 更新至 GCC 14

    • 默认使用 DNF5 包管理器

    • 改进 Wayland 和 PipeWire 支持

镜像下载地址

官网地址

阅读文档地址

Docker 安装示例

# 安装 Docker
sudo dnf install docker-ce docker-ce-cli containerd.io

# 启动 Docker 服务
sudo systemctl enable --now docker

# 验证安装
sudo docker run hello-world

DNF/Yum 仓库设置 (.repo 文件)

  1. 创建 /etc/yum.repos.d/example.repo 文件:

    [example]
    name=Example Repository
    baseurl=https://example.com/repo
    enabled=1
    gpgcheck=1
    gpgkey=https://example.com/key.gpg
  2. 更新缓存:

    sudo dnf makecache

常用错误及解决方法

  1. 依赖问题

    sudo dnf autoremove
    sudo dnf distro-sync
  2. GPK 错误

    sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
  3. Boot 失败

    • 进入 rescue 模式修复 GRUB:

      sudo grub2-mkconfig -o /boot/grub2/grub.cfg
  4. DNF 锁错误

    sudo rm /var/lib/dnf/history.sqlite*
    sudo dnf clean all
  5. Wayland 兼容问题

    • 登录时选择 "GNOME on Xorg" 会话。

声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。