Top Menu

解决Timeout was reached报错

解决apt install最后出现Timeout was reached错误

表现

root@jp:~# apt install php Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libapache2-mod-php7.3 php7.3 The following NEW packages will be installed: libapache2-mod-php7.3 php php7.3 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 1414 kB of archives. After this operation, 4824 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://mirrors.linode.com/debian buster/main amd64 libapache2-mod-php7.3 amd64 7.3.27-1~deb10u1 [1362 kB] Get:2 http://mirrors.linode.com/debian buster/main amd64 php7.3 all 7.3.27-1~deb10u1 [46.8 kB] Get:3 http://mirrors.linode.com/debian buster/main amd64 php all 2:7.3+69 [5964 B] Fetched 1414 kB in 1s (1525 kB/s) Selecting previously unselected package libapache2-mod-php7.3. (Reading database ... 82602 files and directories currently installed.) Preparing to unpack .../libapache2-mod-php7.3_7.3.27-1~deb10u1_amd64.deb ... Unpacking libapache2-mod-php7.3 (7.3.27-1~deb10u1) ... Selecting previously unselected package php7.3. Preparing to unpack .../php7.3_7.3.27-1~deb10u1_all.deb ... Unpacking php7.3 (7.3.27-1~deb10u1) ... Selecting previously unselected package php. Preparing to unpack .../php_2%3a7.3+69_all.deb ... Unpacking php (2:7.3+69) ... Setting up libapache2-mod-php7.3 (7.3.27-1~deb10u1) ... Creating config file /etc/php/7.3/apache2/php.ini with new version apache2_invoke: Enable module php7.3 Setting up php7.3 (7.3.27-1~deb10u1) ... Setting up php (2:7.3+69) ... apt install apache2 Error: Timeout was reached

Continue Reading 0

如何在一个TAG内实现创建多架构镜像

使用默认的docker buildx只能创建对应架构的多架构镜像,例如在Intel平台只能创建linux/amd64,linux/386架构镜像,在ARM平台只能创建linux/arm64,linux/arm/v7,linux/arm/v6,无法实现在同一个build内创建跨平台架构,只能使用tag来区分架构,但是使用起来非常不方便。使用multiarch/qemu-user-static则可以在一个平台内实现创建多架构镜像的功能。

使用multiarch/qemu-user-static创建多架构环境

docker run --rm --privileged multiarch/qemu-user-static --reset -p yes

Continue Reading 0

关于docker镜像的基础镜像没有固定版本导致的运行出错

关于docker镜像的基础镜像没有固定版本导致的运行出错

出现问题

root@sha:~# docker run -it --rm --privileged minirplus/speedtest-cli:latest --no-upload --server 3633 Retrieving speedtest.net configuration... Traceback (most recent call last): File "/usr/local/bin/speedtest-cli", line 8, in <module> sys.exit(main()) File "/usr/local/lib/python3.10/site-packages/speedtest.py", line 1986, in main shell() File "/usr/local/lib/python3.10/site-packages/speedtest.py", line 1872, in shell speedtest = Speedtest( File "/usr/local/lib/python3.10/site-packages/speedtest.py", line 1091, in __init__ self.get_config() File "/usr/local/lib/python3.10/site-packages/speedtest.py", line 1173, in get_config ignore_servers = list( ValueError: invalid literal for int() with base 10: ''

Continue Reading 0

Powered by WordPress. Designed by WooThemes