背景 使用ubuntu镜像一般apt-get源地址都是在国外导致在构建时因为源地址问题导致下载速度极其得慢 在构建中应事先修改apt-get源地址来避免因下载速度过慢导致的构建缓慢问题 方案 在Dockerfile文件中前方添加如下两句代码: RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list RUN apt-get clean RUN apt-get update
安装软件遇到情况,一直等待: root@test-xxx:/opt# apt-get install vsftpdReading package lists... DoneBuilding dependency treeReading state information... DoneThe following extra packages will be installed: ssl-certSuggested packages: openssl-blacklistThe following
先说一个问题 首先记录一个问题,今天在用 Jenkins 构建项目的时候突然出现包源的错误: /usr/share/dotnet/sdk/2.2.104/NuGet.targets(114,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [/....csproj] /usr/share/dotnet/sdk/2.2.104/NuGet.targets(114,
在lib/main.sh当中 ) == main.sh ]]; then echo "Please use compile.sh to start the build process" exit - fi # so parent directories won't be group writeable without this # this is used instead of making the chmod in prepare_host() recursive umask # d
1.apt指令集:是ubuntu中最强大的命令行软件管理工具,用于获取.安装.编译.卸载和查询软件包.还可以检查软件包的依赖关系.在ubunt中下载是根据/etc/apt/sources.list这个文件所包含的源地址来下载的 apt get :用来管理软件包.包括安装.卸载.升级等操作 apt get update :升级软件包 apt get install :下载软件包并完成安装配置 apt get remove :卸载软件包 apt get source : 下载源码包 apt cach