apt-cacher和之间究竟有什么区别apt-cacher-ng?我似乎无法找到比较两者的任何地方。我找到了关于它们的教程和手册,从设置的角度来看,它们似乎是相同的。
一个比另一个更好或更可靠吗?一个提供另一个不提供的服务吗?各自的优缺点是什么?
我刚刚在 ThinkPad T450 上安装了 Ubuntu 16.04,由于某种原因,音量和屏幕亮度的媒体键没有提供任何键码或键符号(即 XF86AudioRaiseVolume)。但所有其他媒体键都会给出正确的值。
奇怪的是,媒体键在 unity 和 gnome 中仍然工作正常,这只是我使用 i3 时的问题,因为我无法映射音量键来更改音量。
这是xev音量减小、音量增大和音量静音键返回的内容:
音量减小:
FocusOut event, serial 33, synthetic NO, window 0x1a00001,
mode NotifyUngrab, detail NotifyPointer
FocusIn event, serial 33, synthetic NO, window 0x1a00001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 33, synthetic NO, window 0x0,
keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 …Run Code Online (Sandbox Code Playgroud) 我刚刚开始使用apt-cacher-ng缓存我的 apt-get 下载。每当我启动它时,我都会收到此错误:
WARNING: No URL list file matching file:backends_gentoo found in config or support directories.
Run Code Online (Sandbox Code Playgroud)
看着/etc/apt-cacher-ng/acng.conf我看到这些行:
# Repository remapping. See manual for details.
# In this example, some backends files might be generated during package
# installation using information collected on the system.
# Examples:
Remap-debrep: file:deb_mirror*.gz /debian ; file:backends_debian # Debian Archives
Remap-uburep: file:ubuntu_mirrors /ubuntu ; file:backends_ubuntu # Ubuntu Archives
Remap-debvol: file:debvol_mirror*.gz /debian-volatile ; file:backends_debvol # Debian Volatile Archives
Remap-cygwin: file:cygwin_mirrors /cygwin # ; …Run Code Online (Sandbox Code Playgroud)