curl: (7) Failed to connect to r

2020-02-27  本文已影响0人  Seurat_Satija

Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: lxwang
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Installation successful!
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

lxwang@NANO:~$ bash
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

lxwang@NANO:~cd /etc/apt lxwang@NANO:/etc/apt sudo mv sources.list sources.list.bak
[sudo] password for lxwang:
lxwang@NANO:/etc/aptsudo vim sources.list lxwang@NANO:/etc/apt sudo apt-get update
E: Type 'pt' is not known on line 1 in source list /etc/apt/sources.list
E: The list of sources could not be read.
lxwang@NANO:/etc/aptsudo apt-get update E: Type 'pt' is not known on line 1 in source list /etc/apt/sources.list E: The list of sources could not be read. lxwang@NANO:/etc/apt cat /etc/apt/sources.list
pt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse

deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse

deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse

deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse

deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse

预发布软件源,不建议启用

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

lxwang@NANO:/etc/aptsudo apt-get update E: Type 'pt' is not known on line 1 in source list /etc/apt/sources.list E: The list of sources could not be read. lxwang@NANO:/etc/apt Q
Q: command not found
lxwang@NANO:/etc/aptsudo apt-get update E: Type 'pt' is not known on line 1 in source list /etc/apt/sources.list E: The list of sources could not be read. lxwang@NANO:/etc/apt
lxwang@NANO:/etc/aptsudo vim sources.list lxwang@NANO:/etc/apt cat /etc/apt/sources.list

默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse

deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse

deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse

deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse

deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse

预发布软件源,不建议启用

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

lxwang@NANO:/etc/aptsudo apt-get update Get:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic InRelease [242 kB] Get:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-updates InRelease [88.7 kB] Get:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-backports InRelease [74.6 kB] Get:4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-security InRelease [88.7 kB] Get:5 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic/main amd64 Packages [1019 kB] Get:6 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic/main Translation-en [516 kB] Get:7 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic/restricted amd64 Packages [9184 B] Get:8 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic/restricted Translation-en [3584 B] Get:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic/universe amd64 Packages [8570 kB] Get:10 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic/universe Translation-en [4941 kB] Get:11 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic/multiverse amd64 Packages [151 kB] Get:12 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic/multiverse Translation-en [108 kB] Get:13 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-updates/main amd64 Packages [871 kB] Get:14 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-updates/main Translation-en [303 kB] Get:15 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-updates/restricted amd64 Packages [32.9 kB] Get:16 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-updates/restricted Translation-en [8468 B] Get:17 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-updates/universe amd64 Packages [1054 kB] Get:18 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-updates/universe Translation-en [326 kB] Get:19 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-updates/multiverse amd64 Packages [10.1 kB] Get:20 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-updates/multiverse Translation-en [4636 B] Get:21 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-backports/main amd64 Packages [2512 B] Get:22 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-backports/main Translation-en [1644 B] Get:23 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-backports/universe amd64 Packages [4028 B] Get:24 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-backports/universe Translation-en [1900 B] Get:25 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-security/main amd64 Packages [651 kB] Get:26 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-security/main Translation-en [211 kB] Get:27 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-security/restricted amd64 Packages [23.8 kB] Get:28 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-security/restricted Translation-en [6528 B] Get:29 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-security/universe amd64 Packages [649 kB] Get:30 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-security/universe Translation-en [218 kB] Get:31 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-security/multiverse amd64 Packages [6760 B] Get:32 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-security/multiverse Translation-en [2700 B] Fetched 20.2 MB in 1min 11s (285 kB/s) Reading package lists... Done lxwang@NANO:/etc/apt bash
lxwang@NANO:/etc/aptcd lxwang@NANO:~ sudo apt-get install zsh
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libfreetype6
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
zsh-common
Suggested packages:
zsh-doc
The following NEW packages will be installed:
zsh zsh-common
0 upgraded, 2 newly installed, 0 to remove and 143 not upgraded.
Need to get 4066 kB of archives.
After this operation, 15.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-updates/main amd64 zsh-common all 5.4.2-3ubuntu3.1 [3376 kB]
Get:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-updates/main amd64 zsh amd64 5.4.2-3ubuntu3.1 [690 kB]
Fetched 4066 kB in 23s (177 kB/s)
Selecting previously unselected package zsh-common.
(Reading database ... 28645 files and directories currently installed.)
Preparing to unpack .../zsh-common_5.4.2-3ubuntu3.1_all.deb ...
Unpacking zsh-common (5.4.2-3ubuntu3.1) ...
Selecting previously unselected package zsh.
Preparing to unpack .../zsh_5.4.2-3ubuntu3.1_amd64.deb ...
Unpacking zsh (5.4.2-3ubuntu3.1) ...
Setting up zsh-common (5.4.2-3ubuntu3.1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Setting up zsh (5.4.2-3ubuntu3.1) ...
lxwang@NANO:~which zsh /usr/bin/zsh lxwang@NANO:~ sh -c "(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused lxwang@NANO:~ sh -c "(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused lxwang@NANO:~ sh -c "(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)" --2020-02-27 13:58:59-- https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh Resolving raw.github.com (raw.github.com)... 151.101.108.133 Connecting to raw.github.com (raw.github.com)|151.101.108.133|:443... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh [following] --2020-02-27 13:59:01-- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.228.133 Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.228.133|:443... failed: Connection refused. lxwang@NANO:~ curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
bash: syntax error near unexpected token `7'
lxwang@NANO:~sh -c "(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
lxwang@NANO:~sh -c "(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Cloning Oh My Zsh...
Cloning into '/home/lxwang/.oh-my-zsh'...
remote: Enumerating objects: 1135, done.
remote: Counting objects: 100% (1135/1135), done.
remote: Compressing objects: 100% (1100/1100), done.
remote: Total 1135 (delta 22), reused 943 (delta 17), pack-reused 0
Receiving objects: 100% (1135/1135), 738.47 KiB | 27.00 KiB/s, done.
Resolving deltas: 100% (22/22), done.
Checking out files: 100% (844/844), done.

Looking for an existing zsh config...
Using the Oh My Zsh template file and adding it to ~/.zshrc.

Time to change your default shell to zsh:
Do you want to change your default shell to zsh? [Y/n] y
Changing the shell...
Password:
Shell successfully changed to '/usr/bin/zsh'.

     __                                     __

____ / /_ ____ ___ __ __ ____ _____/ /_
/ __ / __ \ / __ `__ / / / / /_ / / / __
/ /
/ / / / / / / / / / / /
/ / / /
(__ ) / / /
_// // // // //_, / //____// //
/____/ ....is now installed!

Please look over the ~/.zshrc file to select plugins, themes, and options.

p.s. Follow us on https://twitter.com/ohmyzsh

p.p.s. Get stickers, shirts, and coffee mugs at https://shop.planetargon.com/collections/oh-my-zsh

➜ ~ ls
➜ ~ ls
➜ ~ ls
➜ ~
➜ ~

上一篇下一篇

猜你喜欢

热点阅读