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-136742

giusti's questions

Martin Hope
giusti
Asked: 2019-09-10 18:23:31 +0800 CST

有没有办法降级 Debian 中的任何单个软件包?

  • 4

我目前正在运行 Debian“测试”,我刚刚将 Gimp 从 version 升级2.10.8-2到 version 2.10.8-2+b1。可悲的是,它对我不起作用。我无法打开任何图像,甚至无法创建新的空白图像,因为它每次都会崩溃。

希望存储库至少有几个版本的包,我尝试降级

apt install gimp=2.10.8-2

并且

apt-get install gimp=2.10.8-2

但两者都失败了Version '2.10.8-2' for 'gimp' was not found。

是否有可靠的方法来降级 Debian 中的任何软件包?升级不满意后可能会出现某种“回滚”?

我有时考虑添加stable存储库并强制降级,可能会阻止有问题的软件包。但我首先想要一个不那么激烈的解决方案,考虑到这可能需要降级太多依赖项。可能导致的问题多于解决的问题。

debian
  • 1 个回答
  • 2578 Views
Martin Hope
giusti
Asked: 2019-08-29 13:49:48 +0800 CST

VirtualBox 6.0.4 和 Linux 5.2 在 Debian“测试”上

  • 1

最近更新后,VirtualBox 将不再启动。这是因为我无法在 Debian“测试”上为 Linux 5.2.0 编译内核模块。

这是尝试重新配置 VirtualBox DKMS 包的输出:

# dpkg-reconfigure virtualbox-dkms

------------------------------
Deleting module version: 6.0.4
completely from the DKMS tree.
------------------------------
Done.
Loading new virtualbox-6.0.4 DKMS files...
Building for 5.2.0-2-amd64
Building initial module for 5.2.0-2-amd64
Error! Bad return status for module build on kernel: 5.2.0-2-amd64 (x86_64)
Consult /var/lib/dkms/virtualbox/6.0.4/build/make.log for more information.

该日志包含以下错误消息:

/var/lib/dkms/virtualbox/6.0.4/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:215:58: error: ‘MAP_SHARED’ undeclared (first use in this function); did you mean ‘VM_SHARED’?
          ulAddr = vm_mmap(NULL, R3PtrFixed, cb, fLnxProt, MAP_SHARED | MAP_ANONYMOUS | MAP_FIXED, 0);
                                                           ^~~~~~~~~~
                                                           VM_SHARED

有解决办法吗?

debian virtualbox
  • 1 个回答
  • 479 Views
Martin Hope
giusti
Asked: 2019-07-07 19:41:26 +0800 CST

无法更新 APT 列表:“存储库不再有发布文件”

  • 64

apt-get update由于遇到以下错误,我无法运行:

# apt-get update
Hit:1 http://ftp.br.debian.org/debian testing InRelease
Ign:2 http://security.debian.org/debian-security testing/updates InRelease
Err:3 http://security.debian.org/debian-security testing/updates Release
  404  Not Found [IP: 151.101.92.204 80]
Reading package lists... Done
E: The repository 'http://security.debian.org/debian-security testing/updates Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Repository 'http://ftp.br.debian.org/debian testing InRelease' changed its 'Codename' value from 'buster' to 'bullseye'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.

所以这里有两条错误信息:

  1. 存储库不再有 Release 文件,这很奇怪。我在http://security-cdn.debian.org/debian-security/zzz-dists/testing/updates/ ant 上检查过,看起来 Release 文件就在那里。我是在找错地方还是发生了其他事情?
  2. 存储库将其名称从更改为buster,bullseye并且“必须明确接受”(我今天看到过一次;当我打开问题时它不存在,并且不再出现)。这并不奇怪,但如果我跟踪存储库testing而不是发布名称,我没想到这会成为问题。

我能做些什么?APT 告诉我阅读apt-secure(8),但它要么没有我需要的信息,要么我无法理解。

debian apt
  • 4 个回答
  • 119083 Views
Martin Hope
giusti
Asked: 2019-02-16 13:28:32 +0800 CST

注册数千个 IPv6 地址的网络管理器

  • 6

我注意到网络管理器和 nm-applet 占用了大量 CPU,在检查它的过程中,我运行了ip a. 我的以太网设备有数千个临时地址。为了给出一个想法,这里是一个字数:

ip a | wc
  23128  120541 1537623

这是一个小(编辑)摘录。我今天拿了这个,输出要短得多(正常运行 3 小时后,ip a大约有 2700 行)。今天使用网络的人并不多。

2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether (MAC) brd ff:ff:ff:ff:ff:ff
    inet 10.*.*.*/16 brd 10.*.255.255 scope global dynamic noprefixroute enp2s0
       valid_lft 6533sec preferred_lft 6533sec
    inet6 fd9d:*******/128 scope global noprefixroute 
       valid_lft forever preferred_lft forever
    inet6 fd6d:*******/64 scope global temporary dynamic 
       valid_lft 7122sec preferred_lft 1722sec
    inet6 fd6d:*******/64 scope global dynamic mngtmpaddr noprefixroute

    (several lines skipped)

    inet6 fd9d:*******/64 scope global temporary deprecated dynamic 
       valid_lft 4593sec preferred_lft 0sec

一旦我插入以太网电缆,网络管理器就会以大约每秒 2 个地址的速度注册临时 IPv6 地址。

daemon.log显示类似于以下的多条消息

Feb 15 17:12:36 pulga nm-dispatcher: req:18 'dhcp6-change' [enp2s0]: new request (1 scripts)
Feb 15 17:12:36 pulga nm-dispatcher: req:18 'dhcp6-change' [enp2s0]: start running ordered scripts...

但他们会在一段时间后停下来。

另一方面,syslog充斥着如下消息:

Feb 15 17:12:51 pulga kernel: [  639.006713] IPv6: ipv6_create_tempaddr: retry temporary address regeneration

messages连接到我们的无线网络时,我也不断收到重复的 IP 警告。这是无关的,还是表明我们的网络配置有问题?

Feb 15 17:13:49 pulga kernel: [  696.702519] IPv6: wlp3s0: IPv6 duplicate address fd9d:*:*::* used by e0:d5:*:*:*:* detected!
Feb 15 17:13:49 pulga NetworkManager[693]: <info>  [1550265229.6930] device (wlp3s0): ipv6: duplicate address check failed for the fd9d:*:*::*/128 lft forever pref forever lifetime 668-0[*****,*****] dev 3 flags permanent,noprefixroute,tentative,0x8 src kernel address
networkmanager ipv6
  • 1 个回答
  • 1451 Views
Martin Hope
giusti
Asked: 2019-02-16 10:42:47 +0800 CST

是否建议删除 Avahi 和 CUPS-browse?

  • 5

有时,Avahi 会占用 100% 的 CPU,CUPS 浏览会延迟系统关闭,并显示消息“正在运行停止作业以使远程杯子打印机在本地可用”。

我知道 Avahi 可以找到打印机,因为 Xfce 向我展示了 16 台打印机。我也知道我不需要 16 台打印机。另一方面,我不确定cups-browsed在做什么。

我确实使用网络打印机。但我知道它的IP和型号。考虑到这一点,我可以用更简单的东西替换 Avahi 和 CUPS-browse 而不是修复它们吗?

debian cups
  • 1 个回答
  • 4828 Views
Martin Hope
giusti
Asked: 2018-08-20 15:58:22 +0800 CST

切换到第二个 X 会话会杀死第一个

  • 4

我在这里遇到了一个奇怪的问题。我有一个具有以下(汇总)配置的 Linux 机器:

  • 戴尔灵越 i5
  • 英伟达 GP108M
  • GNU/Linux Debian“测试”
  • xorg 服务器 2:1.20.0-3

根据我的说法,Xorg.0.log我正在运行的驱动程序是“nouveau”:

[ 30442.522] (II) LoadModule: "nouveau"  
<SNIP>
[ 30442.777] (--) NOUVEAU(G0): Chipset: "NVIDIA NV138"

我的迎宾员是 LightDM,我的 DM 是 Xfce。我尝试user2使用以下过程开始第二个会话:

  1. 切换到 VT-1 ( Ctrl+ Alt+ F1)
  2. 登录user2
  3. 跑startx -- :1

没有迎宾员。user2的 Xfce 会话正在运行。我可以验证两个会话都在运行htop。

但是,当我切换回 VT-7 ( Ctrl++ Alt)时F7,我看到user1的会话已终止。VT-7 回到迎宾员身边。


来自日志的信息

每当我在 VT 之间切换时,在syslog. 然而,这并不意味着任何 X 会话都已被终止。

例如,我user1在 VT-7 上开始我的 Xfce 会话。然后我切换到 VT-1 并返回到 VT-7。以下(汇总)错误在 上出现两次syslog:

kernel: ------------[ cut here ]------------
kernel: nouveau 0000:01:00.0: timeout
kernel: WARNING: CPU: 0 PID: 1783 at /build/linux-0buYvw/linux-4.17.8/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/base.c:86 nvkm_pmu_reset+0x14c/0x160 [nouveau]
---[ cut 4 lines ]---
kernel: Hardware name: Dell Inc. Inspiron 7472/0WFX2M, BIOS 1.1.3 01/25/2018
kernel: RIP: 0010:nvkm_pmu_reset+0x14c/0x160 [nouveau]
---[ cut 9 lines ]---
kernel: Call Trace:
kernel:  nvkm_pmu_init+0x16/0x40 [nouveau]
kernel:  nvkm_subdev_init+0xb2/0x1f0 [nouveau]
kernel:  nvkm_device_init+0x132/0x270 [nouveau]
kernel:  nvkm_udevice_init+0x41/0x60 [nouveau]
kernel:  nvkm_object_init+0x3d/0x180 [nouveau]
kernel:  nvkm_object_init+0xa0/0x180 [nouveau]
kernel:  nvkm_object_init+0xa0/0x180 [nouveau]
kernel:  ? pci_restore_standard_config+0x40/0x40
kernel:  nouveau_do_resume+0x28/0x140 [nouveau]
kernel:  nouveau_pmops_runtime_resume+0x88/0x150 [nouveau]
kernel:  pci_pm_runtime_resume+0x78/0xb0
kernel:  __rpm_callback+0xc7/0x200
kernel:  ? pci_restore_standard_config+0x40/0x40
kernel:  rpm_callback+0x1f/0x70
kernel:  ? pci_restore_standard_config+0x40/0x40
kernel:  rpm_resume+0x4c4/0x790
kernel:  ? do_wp_page+0x154/0x500
kernel:  __pm_runtime_resume+0x47/0x70
kernel:  nouveau_drm_ioctl+0x35/0xc0 [nouveau]
kernel:  do_vfs_ioctl+0xa4/0x630
kernel:  ? handle_mm_fault+0xdc/0x210
kernel:  ksys_ioctl+0x70/0x80
kernel:  __x64_sys_ioctl+0x16/0x20
kernel:  do_syscall_64+0x55/0x110
kernel:  entry_SYSCALL_64_after_hwframe+0x44/0xa9
----[ cut 8 lines ]--- 
kernel: ---[ end trace 81b347516b37c927 ]---

现在我切换到 VT-1,登录user2并运行startx -- :0. 尽管如此,还没有会话被杀死,我可以用htop.

但是,如果我现在从 VT-1 上的 X 会话切换到 VT-7 上的另一个 X 会话,则会出现在syslog

pulseaudio[3372]: XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
pulseaudio[3372]:       after 17 requests (17 known processed) with 0 events remaining.
xfce4-notifyd[3565]: xfce4-notifyd: Fatal IO error 11 (Resource temporarily unavailable) on X server :0. 
at-spi-bus-launcher[1368]: XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
at-spi-bus-launcher[1368]:       after 443 requests (443 known processed) with 0 events remaining.
systemd[1308]: xfce4-notifyd.service: Main process exited, code=exited, status=1/FAILURE
systemd[1308]: xfce4-notifyd.service: Failed with result 'exit-code'.
systemd[1308]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
systemd[1308]: pulseaudio.service: Failed with result 'exit-code'.
systemd[1308]: pulseaudio.service: Service RestartSec=100ms expired, scheduling restart.
systemd[1308]: pulseaudio.service: Scheduled restart job, restart counter is at 3.
systemd[1308]: Stopped Sound Service.
systemd[1308]: Starting Sound Service...
rtkit-daemon[1552]: Successfully made thread 3898 of process 3898 (n/a) owned by '1000' high priority at nice level -11.
rtkit-daemon[1552]: Supervising 4 threads of 2 processes of 2 users.
pulseaudio[3898]: W: [pulseaudio] pid.c: Stale PID file, overwriting.
avahi-daemon[644]: Withdrawing address record for ---[ IPv6 redacted ]--- on enp2s0.
lightdm[3907]: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files

VT-7 回到迎宾员身边。X 服务器已重新启动 (?)。

关于Xorg.0.log,当我从 VT-1 切换到 VT-7 并且会话被终止时,会附加以下行。

[ 15945.806] (II) event7  - Power Button: device removed
[ 15945.832] (II) event10 - Video Bus: device removed
[ 15945.848] (II) event11 - Video Bus: device removed
[ 15945.877] (II) event5  - Power Button: device removed
[ 15945.908] (II) event6  - Sleep Button: device removed
[ 15945.933] (II) event1  - Microsoft Wired Keyboard 600: device removed
[ 15945.953] (II) event20 - PixArt Microsoft USB Optical Mouse: device removed
[ 15945.972] (II) event12 - Integrated Webcam: Integrated W: device removed
[ 15945.988] (II) event8  - DELL0828:00 06CB:7E7E Touchpad: device removed
[ 15946.021] (II) event3  - Intel HID events: device removed
[ 15946.044] (II) event9  - Dell WMI hotkeys: device removed
[ 15946.068] (II) event0  - AT Translated Set 2 keyboard: device removed
[ 15946.084] (II) event21 - PS/2 Generic Mouse: device removed
[ 15946.101] (II) event2  - Microsoft Wired Keyboard 600: device removed
[ 15946.116] (II) AIGLX: Suspending AIGLX clients for VT switch
[ 15946.117] (II) NOUVEAU(G0): NVLeaveVT is called.
xorg nouveau
  • 3 个回答
  • 1086 Views
Martin Hope
giusti
Asked: 2018-04-06 09:08:23 +0800 CST

完全隔离一台 VirtualBox 机器

  • 18

我想使用 VirtualBox 安装一些不应该访问我的主机的软件(反之亦然)。然而,我也设想尝试更多“危险”的东西的可能性,比如尝试运行零日漏洞并看看他们能做什么。

虚拟机与主机的隔离程度如何?我应该(或者我可以吗?)在来宾和主机之间设置防火墙?访客插件是否存在安全风险?共享目录呢?

现在,客户机正在运行 GNU/Linux Debian 测试。

security virtualbox
  • 1 个回答
  • 11282 Views

Sidebar

Stats

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

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

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

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve