AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-257269

Leonardo Saracini's questions

Martin Hope
Leonardo Saracini
Asked: 2023-01-24 04:43:19 +0800 CST

如何更正 wpa_supplicant Ubuntu 的错误自动网络计划配置 20:04

  • 6

我在 Raspberry Pi 4 上使用 Ubuntu 20.04 桌面,我正在尝试配置netplan. 我已经看到如何在 Ubuntu 服务器 20.04 中配置 wpa_supplicant。我配置netplan为连接到wlan0并且它有效。我也/etc/default/crda通过放置进行配置REGDOMAIN=IT,
但在wpa_supplicant日志中我看到:

wpa_supplicant[910]: wlan0: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=DE

所以 Wi-Fi 连接不稳定。

我使用NetworkManager并且如果我在设置正确的值后重新启动它:

sudo iw reg set IT

wpa_supplicant将其设置回错误的DE值。

如何避免netplan设置错误的国家?

20.04
  • 3 个回答
  • 61 Views
Martin Hope
Leonardo Saracini
Asked: 2021-02-26 08:48:13 +0800 CST

升级后停止从 SSD 在树莓派 4 上启动 ubuntu 20.04

  • 0

我在树莓派 4 上有一个 ubuntu 桌面 20.04.2 64 位,
我已经在 USB ssd 上没有 sd 卡的情况下启动了很多时间。
内核 vmlinuz-5.4.0-1028-raspi 是我最后一次启动。
当我更新到 vmlinuz-5.4.0-1029-raspi 时,我用来解压内核的实用程序失败了。

所以我将ssd安装在其他电脑上并手动解压它,但不起作用。
我在 /boot 和 /boot/firmware 中查看并没有找到相同的配置:config.txt 有一个新结构。在更新 config.txt 之前,现在不再喜欢 user.txt 等等。

cmdline.txt 由 LABEL 引导,但新的完全不同。

我有 /boot 的备份
我是否要恢复所有 /boot 文件而不关心 /boot 上的现有文件?

有人有同样的灾难吗?

最好的问候,莱昂纳多

更新

@HappyTux 的答案是正确的。
我犯了一个错误:
在我的解压内核脚本中,我使用的是 extract-vmlinux,之前我使用的是 zcat -qf

extract-vmlinux 可能会在没有退出代码 <> 0 的情况下失败,并且确实如此。

# check_vmlinux
...
    readelf -h $1 > /dev/null 2>&1 || return 1

    cat $1
    exit 0
...

此功能位由以下人员调用:

...
# Finally check for uncompressed images or objects:
check_vmlinux $img

# Bail out:
echo "$me: Cannot find vmlinux." >&2

并且rerurn 1不使用。

所以我将我的usb ssd安装在其他电脑上并通过zcat解压缩。

我的错误是不记得 /boot/firmware 是可引导分区的挂载点:
我使用此路径解压缩 /boot/firmware 但是,在我的支持 PC 上,未挂载
引导分区, 因此我的更改在 rpi 的引导时隐藏.

我必须使用引导分区解压缩 kermel 并恢复正确的 config.txt。这使得sub ssd 再次启动。

不知道为什么没有挂载引导分区的/boot/firmware不为空!这有助于我犯错误。

现在在新的 Ubuntu 20.04.2 上不再需要内核解压:
在 config.txt 上,您可以直接使用 kernel=vmlinuz
而无需解压。

最好的问候,
莱昂纳多

boot
  • 1 个回答
  • 1187 Views
Martin Hope
Leonardo Saracini
Asked: 2021-01-30 09:43:58 +0800 CST

手动解压内核的最佳方法

  • 0

我正在使用 Raspberry Pi 4 USB 启动 ssd。
操作系统:Ubuntu 桌面 20.04.2 64bit arm64

要在没有 sd 卡的 USB 上启动,我将启动配置为在解压缩的 vmlinux 上启动。

这是由于缺少使用压缩内核 vmlinu z在 USB 上启动的能力

所以我使用脚本绑定到 apt 事件,在更新后解压缩内核。
我的脚本是这样的:

#... controls 
zcat vmlinuz > vmlinux
#... 

它可以工作,但现在,我发现,与更新的内核版本有关,这个脚本:
/usr/src/linux-raspi-headers-5.4.0-1028/scripts/extract-vmlinux

在我看来,这个脚本也解压缩了内核。

我的问题是:最好使用这个脚本,除非zcat?

像这个命令:# extract-vmlinux vmlinuz > vmlinux
这个命令正确吗?

kernel
  • 2 个回答
  • 1700 Views
Martin Hope
Leonardo Saracini
Asked: 2020-12-11 08:54:41 +0800 CST

RPi4 Ubuntu 20.04 鼠标冲突 FIDECO M.2 PCIe NVME 机箱和三星 Memorie MZ-V7S1T0 970 EVO Plus SSD

  • 1

我在 RPi4 Ubuntu 20.04 桌面上,并且任何鼠标与 Samsung Memorie MZ-V7S1T0 970 EVO Plus SSD da 1 TB、FIDECO M.2 PCIe NVME 外壳 USB 3 内的 PCIe NVMe M.2 之间存在鼠标冲突。

如果我插入 Fideco,我的整个系统会冻结并且鼠标会隐藏(如果已插入)

如果没有插入鼠标,则没有问题。

有人可以帮忙吗?

mouse usb raspberrypi 20.04
  • 1 个回答
  • 55 Views
Martin Hope
Leonardo Saracini
Asked: 2020-11-27 01:13:38 +0800 CST

渲染器网络上的 netplan 开关连接

  • 0

我已经在 rpi4 8Gb 上安装了 rpi4 64Bit 的 ubuntu 20.04 服务器映像

然后我已经安装了ubuntu-desktop

我在 wifi 上遇到问题并设置此错误

我已经禁用 NetworkManager 认为这个包有一些错误

我必须留在 LTS 版本 20.04,所以如果它在 20.10 上工作,我必须等待一个反向移植

我将 netplan 配置为使用网络作为渲染器。

我将来必须配置vpn。

我还没有找到关于如何更改连接的 maual/help/google。
例如,在 NetworkManager 上,我可以设置 4 个连接

  1. conn1 使用 dhcp
  2. conn2 使用固定 IP 进行测试
  3. conn3使用wifi
  4. con4 使用 vpn

然后我可以选择要使用的连接。
关闭连接 1 和打开连接 2 等等。

如何使用 netplan、systemd-networkd 在我的配置上执行此操作?

最好的问候,
莱昂纳多

networking vpn netplan systemd-networkd
  • 1 个回答
  • 583 Views
Martin Hope
Leonardo Saracini
Asked: 2020-04-11 08:01:01 +0800 CST

supertuxkart 1.0-3 是轨道锁定还是解锁?

  • 1

我在 Ubuntu 19.10 上玩过supertuxkart 1.0-3并玩了一段时间的 单人游戏。

现在要去头我必须解锁轨道(地图)

要做到这一点,我必须赢得所有以前的赛道

如何查看我是否赢得了曲目?

在屏幕上都有相同的方面。

更新

我忘了告诉我我已经阅读了我发现的所有常见问题解答和问题。
这是我的player.xml:

<players version="1" >
    <current player="leonardo"/>
    <player name="leonardo" guest="false" use-frequency="21"
            icon-filename="1.png"
            unique-id="1" saved-session="true"
            saved-user="123310" saved-token="8496cf4ce7b708e8c336ab4a"
            last-online-name="lesar" last-was-online="false"
            remember-password="true"
            default-kart-color="0">
      <story-mode first-time="true">
        <abyss solved="none" best_while_slower="false"/>
        <candela_city solved="none" best_while_slower="false"/>
        <cocoa_temple solved="none" best_while_slower="false"/>
        <cornfield_crossing solved="none" best_while_slower="false"/>
        <fortmagma solved="none" best_while_slower="false"/>
        <gp1 solved="none" best_while_slower="false"/>
        <gp2 solved="none" best_while_slower="false"/>
        <gp3 solved="none" best_while_slower="false"/>
        <gp4 solved="none" best_while_slower="false"/>
        <granparadiso_island solved="none" best_while_slower="false"/>
        <green_valley solved="none" best_while_slower="false"/>
        <hacienda solved="none" best_while_slower="false"/>
        <lighthouse solved="none" best_while_slower="false"/>
        <mansion solved="none" best_while_slower="false"/>
        <mines solved="none" best_while_slower="false"/>
        <minigolf solved="none" best_while_slower="false"/>
        <olivermath solved="none" best_while_slower="false"/>
        <sandtrack solved="none" best_while_slower="false"/>
        <scotland solved="none" best_while_slower="false"/>
        <snowmountain solved="none" best_while_slower="false"/>
        <snowpeak solved="none" best_while_slower="false"/>
        <stk_enterprise solved="none" best_while_slower="false"/>
        <unlock_bonus_kart1 solved="none" best_while_slower="false"/>
        <unlock_bonus_kart2 solved="none" best_while_slower="false"/>
        <unlock_supertux solved="none" best_while_slower="false"/>
        <volcano_island solved="none" best_while_slower="false"/>
        <xr591 solved="none" best_while_slower="false"/>
        <zengarden solved="none" best_while_slower="false"/>
      </story-mode>
      <achievements online="true"> 
    ...

所有值都是假的,但我已经播放并赢得了所有曲目,除非我发现那个被阻止了。

该文件是为我的用户读写的。

games
  • 2 个回答
  • 471 Views
Martin Hope
Leonardo Saracini
Asked: 2019-11-08 04:10:15 +0800 CST

在 VM 上使用 ssh 连接调整 ext4 /boot 分区的大小

  • 0

我有一个 Ubuntu 19.04 虚拟机,我通过 ssh 连接到它。

我必须调整引导分区的大小。

# fdisk -l
Disk /dev/sda: 300 GiB, 322122547200 bytes, 629145600 sectors
Disk model: QEMU HARDDISK   
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xc59d8598

Device     Boot  Start       End   Sectors   Size Id Type
/dev/sda1  *      2048    487423    485376   237M 83 Linux
/dev/sda2       487424 629143551 628656128 299.8G 83 Linux

我喜欢将 sda1 调整为 1024M 并且不能使用 live cd。
在我的虚拟机上,我是 root 用户。

我想我必须调整根分区 sda2 的大小并将其向前移动,然后调整 sda1 的大小。

需要一点帮助来执行此操作。

我没有找到像我这样的问题:仅在一个根分区(sda2)上的示例,并且无需通过腾出空间来移动它来引导分区(sda1)

你能帮我吗?

最好的问候,
莱昂纳多

PS我没有丢失分区上的数据:-)

更新

我发现我的提供商让我在我的 vm 上启动一个system-rescue-cd,所以我卸载了所有 vm 分区,但我在命令行中。

我现在可以做这份工作吗?

resize partitioning
  • 1 个回答
  • 2229 Views
Martin Hope
Leonardo Saracini
Asked: 2019-10-24 07:30:29 +0800 CST

VS Code 在 Ubuntu 19.10 中打开目录而不是系统文件管理器

  • 3

升级到 Ubuntu 19.10 后,我注意到代码中有一个奇怪的行为:如果我双击一个目录或一个单元或右键单击一个目录并尝试打开该目录是由代码打开的,除非 nemo 或 nautilus。

将 repo添加到 apt 后,我​​通过microsoft repo安装代码

我不知道是microsoft还是gnome还是ubuntu问题。

但这种行为并不友好。

mime-type visual-studio-code
  • 2 个回答
  • 3771 Views
Martin Hope
Leonardo Saracini
Asked: 2019-10-20 06:55:24 +0800 CST

无法通过 nvidia 驱动程序噩梦从 18.04 升级到 19.04

  • 1

我已阅读所有 nvidia 问题并尝试遵循所有解决方案,但它们不起作用。所以我开始一个新的问题来重新开始。

我有一个运行良好的 ubuntu 18.04 和 nvidia 435 驱动程序(在 gtx 750 Ti 上)。

在我尝试升级到 19.04 之后,它会在启动时冻结,然后再启动 grub 选项。
所以我不能继续 Ctrl-Alt-F2 来调查或更改 grub 选项。

我已经升级到 19.04,然后在重新启动之前我已经做了所有 ubuntu 问题中看到的所有解决方法,然后重新启动,但没有任何效果。

我通过使用以前的 clonezilla 图像返回到 18.04

我这样做了 100 次。

如果我通过 ISO 映像启动 Ubuntu 19.04 或 Ubuntu 19.10 并尝试它会工作,但它会安装 nouvou 并且此驱动器会看到我的视频屏幕。

我已经更改了 sudo vim /etc/X11/Xwrapper.config 添加到它 needs_root_rights = yes 但没有任何效果。

如果在 19.10 ISO 中 nvidia 驱动程序运行良好,为什么我尝试使用 iso 它不使用 nvidia 驱动程序?

在我的 18.04 上,我安装了 ppa:graphics-drivers/ppa

在重新启动之前升级到 19.04 后,我尝试将其重新添加并删除所有 nvidia*,然后重新安装 435 版本,但它在重新启动时冻结。

我很难进行备份并安装新的全新 ubuntu。太多的重新安装和配置,肯定我忘记了一些东西。

我必须升级。有没有办法从 18.04 升级到 19.40 并使用 nvidia 驱动程序?

在我的 grub 设置中,我添加了 nomodeset

$ cat /etc/X11/Xwrapper.config

# If you have edited this file but would like it to be automatically updated
# again, run the following command as root:
#   dpkg-reconfigure x11-common
allowed_users=console
#per nvidia problem on gdm
needs_root_rights = yes

$ cat /etc/modprobe.d/blacklist.conf

blacklist evbug
blacklist usbmouse
blacklist usbkbd
blacklist eepro100
blacklist de4x5
blacklist eth1394
blacklist snd_intel8x0m
blacklist snd_aw2
blacklist i2c_i801
blacklist bcm43xx
blacklist garmin_gps
blacklist asus_acpi
blacklist snd_pcsp
blacklist pcspkr
blacklist amd76x_edac
# per Nvivia GTX 750ti
blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist nvidiafb
blacklist rivatv 

我尝试从 /etc/gdm3/custom.conf 添加和删除 Wayland=false

没有任何工作。

有人可以帮忙吗?

最好的尊重和原谅我的重复

-
在 ubfan1 回复后,我尝试在启动时冻结。

我的启动日志

更新

ubfan1 解决方案是正确的。
我忘记从我的 ubuntu grub 选项中删除nomodeset 。
所以在live cd上启动后,我chroot并删除了nomodeset end update grub。

在此之后,新司机开始工作。

重新启动后,我使用不带 extern ppa 的 apt 为我的 gpu 安装最佳 nvidia 驱动程序(435)。

所有的工作谢谢非常匹配。

nvidia do-release-upgrade 19.04 19.10
  • 1 个回答
  • 291 Views
Martin Hope
Leonardo Saracini
Asked: 2018-02-13 03:10:21 +0800 CST

squid-deb-proxy 或 archive.ubuntu.com 的问题?

  • 1

你好,我在这 6 次尝试更新我的桌面系统时遇到了一些问题。
抱歉,我不知道是archive.ubuntu.com 服务器临时问题还是我的squid-deb-proxy 包有问题。

观看 /var/log/squid-deb-proxy/access.log 和 apt upgrade 输出我看到:

来自 apt 输出:

Ign:42 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 libudev1 amd64 229-4ubuntu21.1                                                                                                                 
Ign:41 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 libpam-systemd amd64 229-4ubuntu21.1
Ign:44 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 udev amd64 229-4ubuntu21.1
Ign:43 http://archive.ubuntu.com/ubuntu xenial-security/main i386 libudev1 i386 229-4ubuntu21.1
Ign:46 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 libsystemd0 amd64 229-4ubuntu21.1
Ign:45 http://archive.ubuntu.com/ubuntu xenial-security/main i386 libsystemd0 i386 229-4ubuntu21.1
Ign:48 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 systemd-sysv amd64 229-4ubuntu21.1
Ign:47 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 systemd amd64 229-4ubuntu21.1
Ign:50 http://archive.ubuntu.com/ubuntu xenial-security/universe amd64 chromium-codecs-ffmpeg-extra amd64 64.0.3282.140-0ubuntu0.16.04.1
Ign:49 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 libapparmor1 amd64 2.10.95-0ubuntu2.8
Err:52 http://archive.ubuntu.com/ubuntu xenial-proposed/main i386 gcc-5-base i386 5.4.0-6ubuntu1~16.04.9
  Connessione terminata
Err:51 http://151.99.86.73:80/data/0189f472fb16f092/archive.ubuntu.com/ubuntu xenial-proposed/main amd64 gcc-5-base amd64 5.4.0-6ubuntu1~16.04.9
  403  Forbidden

来自 /var/log/squid-deb-proxy/access.log:

1518428930.420     96 192.168.1.107 TCP_REFRESH_MODIFIED/302 445 GET http://archive.ubuntu.com/ubuntu/pool/main/s/systemd/libudev1_229-4ubuntu21.1_i386.deb - HIER_DIRECT/91.189.88.149 text/html
1518428931.389     32 192.168.1.107 TCP_DENIED/403 4233 GET http://151.99.86.73/data/028979686fecdd00/archive.ubuntu.com/ubuntu/pool/main/s/systemd/libpam-systemd_229-4ubuntu21.1_amd64.deb - HIER_NONE/- text/html
1518429050.519      0 192.168.1.107 TCP_DENIED/403 4212 GET http://151.99.86.73/data/00894e6ad5c1296b/archive.ubuntu.com/ubuntu/pool/main/s/systemd/libudev1_229-4ubuntu21.1_i386.deb - HIER_NONE/- text/html
1518429050.577     57 192.168.1.107 TCP_REFRESH_MODIFIED/302 448 GET http://archive.ubuntu.com/ubuntu/pool/main/s/systemd/libsystemd0_229-4ubuntu21.1_i386.deb - HIER_DIRECT/91.189.88.149 text/html
1518429170.721     68 192.168.1.107 TCP_REFRESH_MODIFIED/302 445 GET http://archive.ubuntu.com/ubuntu/pool/main/s/systemd/systemd_229-4ubuntu21.1_amd64.deb - HIER_DIRECT/91.189.88.152 text/html
1518429176.717     33 192.168.1.107 TCP_DENIED/403 4221 GET http://151.99.86.75/data/0089936cbd9662c9/archive.ubuntu.com/ubuntu/pool/main/s/systemd/libsystemd0_229-4ubuntu21.1_i386.deb - HIER_NONE/- text/html
1518429290.819      0 192.168.1.107 TCP_DENIED/403 4212 GET http://151.99.86.73/data/01891f6e2a6c5119/archive.ubuntu.com/ubuntu/pool/main/s/systemd/systemd_229-4ubuntu21.1_amd64.deb - HIER_NONE/- text/html
1518429290.875     56 192.168.1.107 TCP_REFRESH_MODIFIED/302 454 GET http://archive.ubuntu.com/ubuntu/pool/main/a/apparmor/libapparmor1_2.10.95-0ubuntu2.8_amd64.deb - HIER_DIRECT/91.189.88.152 text/html
1518429410.878      0 192.168.1.107 TCP_DENIED/403 4239 GET http://151.99.86.73/data/0189e8705841ea73/archive.ubuntu.com/ubuntu/pool/main/a/apparmor/libapparmor1_2.10.95-0ubuntu2.8_amd64.deb - HIER_NONE/- text/html
1518429410.969     91 192.168.1.107 TCP_REFRESH_MODIFIED/302 455 GET http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-5/gcc-5-base_5.4.0-6ubuntu1%7e16.04.9_amd64.deb - HIER_DIRECT/91.189.88.152 text/html
1518429531.019      0 192.168.1.107 TCP_DENIED/403 4244 GET http://151.99.86.73/data/0189f472fb16f092/archive.ubuntu.com/ubuntu/pool/main/g/gcc-5/gcc-5-base_5.4.0-6ubuntu1%7e16.04.9_amd64.deb - HIER_NONE/- text/html

系统挂起等待数据。这是一个众所周知的问题吗?

我的配置:来自 /etc/squid-deb-proxy/mirror-dstdomain.acl.d/10-default

.dl.google.com
.ppa.launchpad.net
.downloads-distro.mongodb.org
# tutti questi sono per getdeb
.getdeb.net
.mirror.lagoon.nc
.ftp.heanet.ie
.getdeb.mirror.garr.it
.archive.getdeb.net
.getdeb.megaglest.org
.mirrors.dotsrc.org
.zulu930.server4you.de
.188.138.90.189
.ftp.yzu.edu.tw
# fine getdeb
.apt.puppetlabs.com
.deb.theforeman.org
# postgresql.org
.postgresql.org
#owncloud
.download.owncloud.org
.download.opensuse.org
#tox
.pkg.tox.chat
#variety
.151.99.86.77 

来自 /etc/squid-deb-proxy/squid-deb-proxy.conf

acl allowed_networks src "/etc/squid-deb-proxy/autogenerated/allowed-networks-src.acl"

# this file contains the archive mirrors by default,
# if you use a different mirror, add it there
acl to_archive_mirrors dstdomain "/etc/squid-deb-proxy/autogenerated/mirror-dstdomain.acl"

# this contains the package blacklist
acl blockedpkgs urlpath_regex "/etc/squid-deb-proxy/autogenerated/pkg-blacklist-regexp.acl"

# default to a different port than stock squid
http_port 8000

# -------------------------------------------------
# settings below probably do not need customization

# user visible name
visible_hostname squid-deb-proxy

# we need a big cache, some debs are huge
# maximum_object_size 512 MB
# leonardo
maximum_object_size 2048 MB

# use a different dir than stock squid and default to 40G
# cache_dir aufs /var/cache/squid-deb-proxy 40000 16 256
# leonardo
cache_dir aufs /var/cache/squid-deb-proxy 100000 16 256

# use different logs
cache_access_log /var/log/squid-deb-proxy/access.log
cache_log /var/log/squid-deb-proxy/cache.log
cache_store_log /var/log/squid-deb-proxy/store.log

# tweaks to speed things up
cache_mem 200 MB
maximum_object_size_in_memory 10240 KB

# pid
pid_filename /var/run/squid-deb-proxy.pid

# refresh pattern for debs and udebs
refresh_pattern deb$   129600 100% 129600
refresh_pattern udeb$   129600 100% 129600
refresh_pattern tar.gz$  129600 100% 129600
refresh_pattern tar.xz$  129600 100% 129600
refresh_pattern tar.bz2$  129600 100% 129600

# always refresh Packages and Release files
refresh_pattern \/(Packages|Sources)(|\.bz2|\.gz|\.xz)$ 0 0% 0 refresh-ims
refresh_pattern \/Release(|\.gpg)$ 0 0% 0 refresh-ims
refresh_pattern \/InRelease$ 0 0% 0 refresh-ims
refresh_pattern \/(Translation-.*)(|\.bz2|\.gz|\.xz)$ 0 0% 0 refresh-ims

# handle meta-release and changelogs.ubuntu.com special
# (fine to have this on debian too)
refresh_pattern changelogs.ubuntu.com\/.*  0  1% 1

# only allow connects to ports for http, https
acl Safe_ports port 80
acl Safe_ports port 443 563   

# only allow ports we trust
http_access deny !Safe_ports

# do not allow to download from the pkg blacklist
http_access deny blockedpkgs

# allow access only to official archive mirrors
# uncomment the third and fouth line to permit any unlisted domain
http_access deny !to_archive_mirrors
#http_access allow !to_archive_mirrors

# don't cache domains not listed in the mirrors file
# uncomment the third and fourth line to cache any unlisted domains
cache deny !to_archive_mirrors
#cache allow !to_archive_mirrors

# allow access from our network and localhost
http_access allow allowed_networks

# And finally deny all other access to this proxy
http_access deny all

# we don't want to clash with the squid netdb state file
netdb_filename stdio:/var/log/squid-deb-proxy/netdb.state

来自 squid-deb-proxy/allowed-networks-src.acl:

# private networks
10.0.0.0/8 
172.16.0.0/12
192.168.0.0/16
192.168.1.0/16
127.0.0.1

# IPv6 private addresses
fe80::/64
::1/128

# additional non-private networks can be added to the directory:
#  /etc/squid-deb-proxy/allowed-networks-src.acl.d

来自 /etc/squid-deb-proxy/allowed-networks-src.acl.d/10-default

188.138.90.189/17

我不知道该怎么办。

apt squid-deb-proxy
  • 3 个回答
  • 1448 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve