gpt4 book ai didi

ubuntu - 错误 : "...Z Shell configuration function for new users, zsh-newuser-install(...)"

转载 作者:太空宇宙 更新时间:2023-11-03 17:07:16 26 4
gpt4 key购买 nike

我通常使用命令行,就像我们看到的那样:

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 框架包不再工作,但 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

最佳答案

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

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

我来自 this字体。

关于ubuntu - 错误 : "...Z Shell configuration function for new users, zsh-newuser-install(...)",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49558470/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com