2

为啥这么像?一定是我的错觉

 2 years ago
source link: https://zhangyiming748.github.io/2022/07/28/likeUbuntu/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

在鸭子类型中,关注点在于对象的行为,能做什么;而不是关注对象所属的类型.例如,在不使用鸭子类型的语言中,我们可以编写一个函数,它接受一个类型为”鸭子”的对象,并调用它的”走”和”叫”方法.在使用鸭子类型的语言中,这样的一个函数可以接受一个任意类型的对象,并调用它的”走”和”叫”方法.如果这些需要被调用的方法不存在,那么将引发一个运行时错误.任何拥有这样的正确的”走”和”叫”方法的对象都可被函数接受的这种行为引出了以上表述,这种决定类型的方式因此得名.

以下是文字说明

正常安装openKylin

wget https://mirror.lzu.edu.cn/ubuntukylin/openKylin-0.7-x86_64.iso

先安装openssh-server

然后就可以顺利地复制粘贴以下代码了

0x02 备份原始文件

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

0x03 清空源文件

sudo echo -n > /etc/apt/sources.list

0x04 用你喜欢的编辑器写入文件内容

deb http://mirror.lzu.edu.cn/openkylin/ yangtze main cross pty
deb http://mirror.lzu.edu.cn/openkylin/ yangtze-security main cross pty
deb http://mirror.lzu.edu.cn/openkylin/ yangtze-updates main cross pty
deb http://mirror.lzu.edu.cn/openkylin/ yangtze-proposed main cross pty

deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse

# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse

0x05 更新一次

sudo apt-get update

此时不出意外应该会报公钥错误

由于没有公钥,无法验证下列签名: NO_PUBKEY 3B4FE6ACC0B21F32 NO_PUBKEY 871920D1991BC93C

0x06 添加缺失的公钥

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 3B4FE6ACC0B21F32

再更新一次

sudo apt-get update

此时就不会出现任何错误

0x07 安装缺失的软件

一些很基础的软件竟然在openkylin的官方源中找不到

比如 less top nano neofetch tail

添加ubuntu源之后就可以正常安装了

效果图

效果图

更新后

更新后

安装Gnome后

安装Gnome后



这还说不是100%复制粘贴ubuntu系统谁信啊

0x08 卸载ukui

sudo apt-get purge \
libqt5-ukui-style1 \
libukui-common0 \
libukui-log4qt-dev \
libukui-log4qt1 \
libukui-search0 \
qml-module-org-ukui-qqc2desktopstyle \
qml-module-org-ukui-stylehelper  \
qt5-gesture-extensions:amd64 \
qt5-styles-ukui \
qt5-ukui-platformtheme \
ukui-biometric-manager \
ukui-bluetooth \
ukui-clock \
ukui-control-center \
ukui-desktop-environment-core \
ukui-globaltheme-common \
ukui-globaltheme-heyin \
ukui-globaltheme-light-seeking \
ukui-greeter \
ukui-input-gather \
ukui-media \
ukui-media-common \
ukui-menu \
ukui-notification-daemon \
ukui-panel \
ukui-polkit \
ukui-power-manager \
ukui-screensaver \
ukui-search \
ukui-search-systemdbus \
ukui-session-manager \
ukui-session-wayland \
ukui-settings-daemon \
ukui-settings-daemon-common \
ukui-sidebar ukui-system-monitor \
ukui-touch-settings-plugin \
ukui-window-switch
# 如果不需要lightdm也可以卸载,反正已经有gdm3了

0x09 彩蛋

更换了ubuntu 22.04 LTS 的源

1141个更新

更换为Jammy

更换为Jammy


0 comments

Be the first person to leave a comment!


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK