错误:" ... Z新用户的Shell配置功能,zsh-newuser-install(...)"

时间:2018-03-29 14:18:07

标签: ubuntu zsh oh-my-zsh

我正常使用命令行,如我们所见:

enter image description here

然后突然我打开的所有其他终端显示了这个奇怪的消息:

enter image description here

This is the Z Shell configuration function for new users,
zsh-newuser-install.
You are seeing this message because you have no zsh startup files
(the files .zshenv, .zprofile, .zshrc, .zlogin in the directory
~).  This function can help you with a few settings that should
make your use of the shell easier.

You can:

(q)  Quit and do nothing.  The function will be run again next time.

(0)  Exit, creating the file ~/.zshrc containing just a comment.
     That will prevent this function being run again.

(1)  Continue to the main menu.

(2)  Populate your ~/.zshrc with the configuration recommended
     by the system administrator and exit (you will need to edit
     the file by hand, if so desired).

--- Type one of the keys in parentheses --- 

主要问题是安装了一些命令(rails framework包不再有效,但git和其他人仍然存在),主题从终端消失了。我重新启动了系统,它是一样的......

当我运行命令时:

sudo apt-get update

给我带来了这条错误消息:

(...)
 404  Not Found [IP: 91.189.91.26 80]
Ign:67 http://us.archive.ubuntu.com/ubuntu zesty-updates/restricted Sources
Ign:68 http://us.archive.ubuntu.com/ubuntu zesty-updates/main Sources
Ign:69 http://us.archive.ubuntu.com/ubuntu zesty-updates/multiverse Sources
Ign:70 http://us.archive.ubuntu.com/ubuntu zesty-updates/main all Packages
Ign:71 http://us.archive.ubuntu.com/ubuntu zesty-updates/main i386 Packages
Ign:72 http://us.archive.ubuntu.com/ubuntu zesty-updates/main amd64 Packages
Ign:73 http://us.archive.ubuntu.com/ubuntu zesty-updates/main Translation-en
Ign:74 http://us.archive.ubuntu.com/ubuntu zesty-updates/main Translation-en_US
Ign:75 http://us.archive.ubuntu.com/ubuntu zesty-updates/main amd64 DEP-11 Metadata
Ign:76 http://us.archive.ubuntu.com/ubuntu zesty-updates/main all DEP-11 Metadata
Err:102 http://us.archive.ubuntu.com/ubuntu zesty-backports/universe Sources
  404  Not Found [IP: 91.189.91.26 80]
Ign:103 http://us.archive.ubuntu.com/ubuntu zesty-backports/multiverse Sources
Ign:104 http://us.archive.ubuntu.com/ubuntu zesty-backports/main Sources
Ign:105 http://us.archive.ubuntu.com/ubuntu zesty-backports/restricted Sources
Ign:106 http://us.archive.ubuntu.com/ubuntu zesty-backports/main i386 Packages
Ign:107 http://us.archive.ubuntu.com/ubuntu zesty-backports/main amd64 Packages
Ign:108 http://us.archive.ubuntu.com/ubuntu zesty-backports/main all Packages
Ign:109 http://us.archive.ubuntu.com/ubuntu zesty-backports/main Translation-en_US
Ign:110 http://us.archive.ubuntu.com/ubuntu zesty-backports/main Translation-en
Ign:111 http://us.archive.ubuntu.com/ubuntu zesty-backports/main all DEP-11 Metadata
Ign:112 http://us.archive.ubuntu.com/ubuntu zesty-backports/main amd64 DEP-11 Metadata
Err:138 http://us.archive.ubuntu.com/ubuntu zesty-security/restricted Sources
  404  Not Found [IP: 91.189.91.26 80]
Ign:139 http://us.archive.ubuntu.com/ubuntu zesty-security/main Sources
Ign:140 http://us.archive.ubuntu.com/ubuntu zesty-security/universe Sources
Ign:141 http://us.archive.ubuntu.com/ubuntu zesty-security/multiverse Sources
Ign:142 http://us.archive.ubuntu.com/ubuntu zesty-security/main all Packages
Ign:143 http://us.archive.ubuntu.com/ubuntu zesty-security/main amd64 Packages
Ign:144 http://us.archive.ubuntu.com/ubuntu zesty-security/main i386 Packages
Ign:145 http://us.archive.ubuntu.com/ubuntu zesty-security/main Translation-en
Ign:146 http://us.archive.ubuntu.com/ubuntu zesty-security/main Translation-en_US
Ign:147 http://us.archive.ubuntu.com/ubuntu zesty-security/main all DEP-11 Metadata
Ign:148 http://us.archive.ubuntu.com/ubuntu zesty-security/main amd64 DEP-11 Metadata
Reading package lists... Done
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google-chrome.list:4
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google-chrome.list:4
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google-chrome.list:4
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google-chrome.list:4
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google-chrome.list:4
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google-chrome.list:4
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google-chrome.list:4
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://dl.google.com/linux/chrome/deb stable InRelease' doesn't support architecture 'i386'
W: The repository 'http://us.archive.ubuntu.com/ubuntu zesty Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://ppa.launchpad.net/webupd8team/gthumb/ubuntu zesty Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://us.archive.ubuntu.com/ubuntu zesty-updates Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://us.archive.ubuntu.com/ubuntu zesty-backports Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://us.archive.ubuntu.com/ubuntu zesty-security Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/zesty/universe/source/Sources  404  Not Found [IP: 91.189.91.26 80]
E: Failed to fetch http://ppa.launchpad.net/webupd8team/gthumb/ubuntu/dists/zesty/main/binary-i386/Packages  404  Not Found
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/zesty-updates/universe/source/Sources  404  Not Found [IP: 91.189.91.26 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/zesty-backports/universe/source/Sources  404  Not Found [IP: 91.189.91.26 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/zesty-security/restricted/source/Sources  404  Not Found [IP: 91.189.91.26 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google-chrome.list:4
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google-chrome.list:4
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google-chrome.list:4
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google-chrome.list:4
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google-chrome.list:4
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google-chrome.list:4
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google-chrome.list:4

1 个答案:

答案 0 :(得分:0)

解决此问题的唯一方法是运行此命令

sudo apt-get install update-manager-core; do-release-upgrade

我来自this字体。