四川建设网入川备案网站,织梦网站打开慢,怎么下载1688上的视频,番禺市桥做网站公司在 Ubuntu/Debian 系统上 打开终端并运行以下命令#xff1a;
sudo apt update
sudo apt install unzip在 CentOS/RHEL 系统上 打开终端并运行以下命令#xff1a;
sudo yum install unzip在 macOS 上 如果您使用的是 macOS#xff0c;可以使用 Homebrew 安装 unzip#…在 Ubuntu/Debian 系统上 打开终端并运行以下命令
sudo apt update
sudo apt install unzip在 CentOS/RHEL 系统上 打开终端并运行以下命令
sudo yum install unzip在 macOS 上 如果您使用的是 macOS可以使用 Homebrew 安装 unzip通常 macOS 默认已安装
brew install unzip在 Windows 上 如果您在使用 Windows 的 WSLWindows Subsystem for Linux可以按照上述步骤安装。在 Windows 中您可以使用文件资源管理器右键点击 ZIP 文件并选择“解压缩”选项。
安装完成后 安装完成后您可以再次尝试解压文件
后续问题
[rootmaster01 www]# sudo yum install unzip
已加载插件fastestmirror
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release7archx86_64repoosinfrastock error was
14: curl#6 - Could not resolve host: mirrorlist.centos.org; 未知的错误One of the configured repositories failed (未知),and yum doesnt have enough cached data to continue. At this point the onlysafe thing yum can do is fail. There are a few ways to work fix this:1. Contact the upstream for the repository and get them to fix the problem.2. Reconfigure the baseurl/etc. for the repository, to point to a workingupstream. This is most often useful if you are using a newerdistribution release than is supported by the repository (and thepackages for the previous distribution release still work).3. Run the command with the repository temporarily disabledyum --disablereporepoid ...4. Disable the repository permanently, so yum wont use it by default. Yumwill then just ignore the repository until you permanently enable itagain or use --enablerepo for temporary usage:yum-config-manager --disable repoidorsubscription-manager repos --disablerepoid5. Configure the failing repository to be skipped, if it is unavailable.Note that yum will try to contact the repo. when it runs most commands,so will have to try and fail each time (and thus. yum will be be muchslower). If it is a very temporary problem though, this is often a nicecompromise:yum-config-manager --save --setoptrepoid.skip_if_unavailabletrueCannot find a valid baseurl for repo: base/7/x86_64更换 YUM 源 如果问题仍然存在您可以考虑更换 YUM 源。以下是更换为阿里云的 YUM 源的步骤
备份原有的 YUM 源配置
sudo cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak编辑 YUM 源配置文件
sudo nano /etc/yum.repos.d/CentOS-Base.repo将以下内容替换到文件中
[base]
nameCentOS-$releasever - Base
baseurlhttp://mirrors.aliyun.com/centos/$releasever/os/$basearch/
gpgcheck1
gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-centos7[updates]
nameCentOS-$releasever - Updates
baseurlhttp://mirrors.aliyun.com/centos/$releasever/updates/$basearch/
gpgcheck1
gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-centos7[extras]
nameCentOS-$releasever - Extras
baseurlhttp://mirrors.aliyun.com/centos/$releasever/extras/$basearch/
gpgcheck1
gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-centos7
保存并退出然后运行以下命令以清除缓存并更新
sudo yum clean all
sudo yum makecache安装 unzip 在更新了 YUM 源后您可以再次尝试安装 unzip
sudo yum install unzip