Linux装机及后续整理

(作者 海丁香)

说来惭愧,安装Linux系统竟然花费了两天的时间,因在网络上找不到合适的启动盘制作软件及镜像文件故。现在结论初整如下,供各位与偶一样需要在空白电脑上安装Linux的小白参考:

一、制作启动盘

制作Linux启动盘和Windows启动盘其实方法差不多,但是用于安于Windows的启动盘不能直接用来安装Linux(应该可以在启动盘的Windows系统中用解压后的镜像文件安装Linux)。Linux使用的硬盘格式是Fat32,而Windows一般安装在NFTS格式的硬盘中,是不能通用的。

启动盘制作软件:

1.Ultraiso

这个是最出名的一款启动盘制作软件,使用只需要文件-打开iso文件,然后硬盘-写入硬盘映像...,写入方式选择USB-HDD+或者HDD,点击便捷启动,写入新的驱动盘引导分区,选择syslinux,成功之后点击写入即可。如果提示无法写入,则先将U盘格式化为Fat32格式。

第一次下载的是绿色版本,安装Linux系统Bios报错,所以使用Ultraiso必须注意的是:必须使用最新的安装版本。

2.Rufus

简洁大方。

3.Unetbootin

这个是很坑的启动盘制作软件,因为它自带了一个引导软件所以还是比较期待的,但是每次解压镜像文件到最后一步就卡死了,无解。

4.Win32DiskImager

在使用Ultraiso安装Debian10.2-amd64-xfce-cd1的时候,出现了无法读取U盘文件的问题:

There was a problem reading data from the CD-ROM. Please make sure it is in the drive. If retrying does not work, you should check the integrity of your CD-ROM.

Failed to copy file from CD-ROM. Retry?

最后找到这个新的启动盘制作软件才避开了问题。使用时将iso文件后缀改成img,然后直接点击write,上面的MD5 Hash可勾可不勾,不明白就直接勾选。100%就成功,没有其他花样了。

二、apt安装源问题

su -

edit /etc/apt/sources.list

上下移动用箭头,按i进入编辑模式,在deb cd-rom前输入#并添加源,注意进入后不能再使用箭头移动,按delete后必须重新进入编辑模式。修改完按esc退出,输入

:wq!

修改后示例文本内容如下,注意修改自己的系统和版本:

#

# deb cdrom:[Debian GNU/Linux 10.2.0 _Buster_ - Official amd64 xfce-CD Binary-1 20191116-09:57]/ buster main

# deb cdrom:[Debian GNU/Linux 10.2.0 _Buster_ - Official amd64 xfce-CD Binary-1 20191116-09:57]/ buster main

deb https://mirrors.ustc.edu.cn/debian/ unstable main contrib non-free

deb https://mirrors.ustc.edu.cn/debian/ experimental main contrib non-free

deb https://mirrors.ustc.edu.cn/debian/ buster main contrib non-free

deb https://mirrors.ustc.edu.cn/debian/ buster-updates main contrib non-free

deb https://mirrors.ustc.edu.cn/debian/ buster-proposed-updates main contrib non-free

deb https://mirrors.ustc.edu.cn/debian-security/ buster/updates main contrib non-free

deb https://mirrors.ustc.edu.cn/debiancn/ buster main

deb https://mirrors.ustc.edu.cn/deb-multimedia/ buster main non-free

deb http://security.debian.org/debian-security buster/updates main

deb-src http://security.debian.org/debian-security buster/updates main

# buster-updates, previously known as 'volatile'

# A network mirror was not selected during install.  The following entries

# are provided as examples, but you should amend them as appropriate

# for your mirror of choice.

#

# deb http://deb.debian.org/debian/ buster-updates main

# deb-src http://deb.debian.org/debian/ buster-updates main

# This system was installed using small removable media

# (e.g. netinst, live or single CD). The matching "deb cdrom"

# entries were disabled at the end of the installation process.

# For information about how to configure apt package sources,

# see the sources.list(5) manual.

改完记得apt-get update。

三、(待更)

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 有很多软件源都已经失效了请自己测试 替换/etc/apt/sources.list里面的内容(选其一即可) 一、...
    UncleDavid阅读 2,405评论 0 2
  • 它介于不稳定版和稳定版之间,顺便提一下,我就是从稳定版追过来的,用了挺长的时间了,没发现不稳定,因此,推荐使用。u...
    王贼臣阅读 8,423评论 0 3
  • 默认状态下查看更新源 root@kali2019:~# cat /etc/apt/sources.list 更改K...
    Jackey_song阅读 2,674评论 0 0
  • kali 是基于Debian的发行版,兼容性和软件支持都很好,默认使用Gnome桌面,如果不喜欢这个桌面环境,可以...
    Borcol阅读 912评论 0 1
  • 首先,下载自己所需的kali镜像。 附官网地址: https://www.kali.org/downloads/ ...
    牧码人65535阅读 2,730评论 0 3