我有几个用户输入语句,例如:
read -r -p "Do u want to include this step (y) or not (n) (y/N)"? answer
if [[ "$answer" =~ ^[Yy]$ ]]; then
...
fi
我正在寻找一种方法来自动回答所有这些问题。想象一个非交互式会话,用户使用--yes
选项调用脚本。没有进一步stdin
的输入。
我现在能想到的唯一方法是在每个if 语句上添加另一个条件。
有什么想法吗?
我有几个用户输入语句,例如:
read -r -p "Do u want to include this step (y) or not (n) (y/N)"? answer
if [[ "$answer" =~ ^[Yy]$ ]]; then
...
fi
我正在寻找一种方法来自动回答所有这些问题。想象一个非交互式会话,用户使用--yes
选项调用脚本。没有进一步stdin
的输入。
我现在能想到的唯一方法是在每个if 语句上添加另一个条件。
有什么想法吗?
我的 ubuntu 桌面充满了导致失败/boot/
的旧内核,导致文件充满。update-initramfs
/var
/var/tmp/mkinitramfs*
问题是/boot
,/var
都是单独的分区,所以 apt
,满dpkg
时无法工作/var
,因此我无法释放空间。
filesystem Size Used Avail Use% Mounted on
udev 7,8G 0 7,8G 0% /dev
tmpfs 1,6G 18M 1,6G 2% /run
/dev/nvme0n1p1 19G 2,3G 16G 13% /
/dev/nvme0n1p3 92G 9,0G 78G 11% /usr
tmpfs 7,9G 34M 7,8G 1% /dev/shm
tmpfs 5,0M 4,0K 5,0M 1% /run/lock
tmpfs 7,9G 0 7,9G 0% /sys/fs/cgroup
/dev/nvme0n1p2 369M 353M 0 100% /boot
/dev/nvme0n1p4 189M 3,4M 185M 2% /boot/efi
/dev/sda1 9,1G 9,1G 0 100% /var
/dev/sda3 1,8T 72G 1,7T 5% /home
/dev/loop0 87M 87M 0 100% /snap/core/4486
/dev/loop1 87M 87M 0 100% /snap/core/4571
/dev/loop2 175M 175M 0 100% /snap/atomify/153
tmpfs 1,6G 80K 1,6G 1% /run/user/1000
/home/kg/.Private 1,8T 72G 1,7T 5% /home/kg
/dev/sdb1 932G 489G 444G 53% /media/kg/Elements
/dev/sdc1 7,4G 7,0G 400M 95% /media/kg/ZOTACWINUSB
我正在考虑/var
与/
. 它们位于单独的磁盘上,我实际上有兴趣将/var
其作为分区删除,我不在乎剩余的未使用空间。您认为以下程序安全吗?
sudo mkdir /var2
sudo cp -a /var/* /var2/
sudo umount /var
sudo rm -r /var
sudo mv /var2 /var
reboot
如果没有,你能想到一个更安全的解决方案吗?
我正在使用:Debian Sid (kernel 4.15.0-2-amd64)
,我可以使用我的板载设备完美地连接到我的 wifi 网络Intel 7265
,iwlwifi
即使信号很弱(例如 -80dBm)。
但是,我最近得到了ALFA AWUS036NHA (Atheros 9271)
,尽管信号质量很好(-68dBm),但我还是无法 ping 通我的路由器。我已经尝试了firmware-atheros
debian 包和开源替代方案,结果与下面描述的相同:
通常我的路由表如下所示:
:~$ sudo route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default speedport-entry 0.0.0.0 UG 0 0 0 wlan1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan1
192.168.71.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet8
192.168.154.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet1
在随机时刻,路由表变为
:~$ sudo route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default _gateway 0.0.0.0 UG 0 0 0 wlan1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan1
192.168.71.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet8
192.168.154.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet1
在这种情况下,ping 网关(192.168.1.1)和任何其他 IP(例如 8.8.8.8)会无限期挂起。然而, arp在这种情况下工作,显示其余连接的设备,并且天线灯按预期闪烁。
区别在于网关列( _gateway
vs speedport-entry
)。当它发生时,我无法观察到任何其他特殊性。它保留 IP、网络掩码等:
$ ifconfig wlan1
wlan1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.68 netmask 255.255.255.0 broadcast 192.168.1.255
ether 00:c0:ca:97:32:3e txqueuelen 1000 (Ethernet)
RX packets 4102532 bytes 3990894721 (3.7 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3198872 bytes 1012818336 (965.8 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
解决方案:
解决方案是 1)断开连接并重新连接,使用 Wicd(因为 gnome 网络管理器的Select Network无限加载),或 2)等待(1-5 分钟),它会自动修复。
一些信息:
$ lsmod | grep ath9k
ath9k_htc 81920 0
ath9k_common 20480 1 ath9k_htc
ath9k_hw 487424 2 ath9k_htc,ath9k_common
ath 32768 3 ath9k_htc,ath9k_hw,ath9k_common
mac80211 798720 2 iwlmvm,ath9k_htc
cfg80211 720896 6 iwlmvm,ath9k_htc,iwlwifi,mac80211,ath,ath9k_common
usbcore 290816 11 ath9k_htc,usbhid,snd_usb_audio,usb_storage,ehci_hcd,xhci_pci,snd_usbmidi_lib,btusb,uas,xhci_hcd,ehci_pci
$ sudo lshw -c network
*-network
description: Ethernet interface
product: Ethernet Connection (3) I218-LM
vendor: Intel Corporation
physical id: 19
bus info: pci@0000:00:19.0
logical name: eth0
version: 03
serial: f8:ca:b8:37:ec:75
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k firmware=0.2-3 latency=0 link=no multicast=yes port=twisted pair
resources: irq:52 memory:f7200000-f721ffff memory:f7243000-f7243fff ioport:f080(size=32)
*-network
description: Wireless interface
product: Wireless 7265
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:02:00.0
logical name: wlan0
version: 59
serial: 18:5e:0f:9f:2c:61
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=4.15.0-2-amd64 firmware=29.541020.0 latency=0 link=no multicast=yes wireless=IEEE 802.11
resources: irq:49 memory:f7000000-f7001fff
*-network
description: Wireless interface
physical id: 2
bus info: usb@1:1
logical name: wlan1
serial: 00:c0:ca:97:32:3e
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=ath9k_htc driverversion=4.15.0-2-amd64 firmware=1.4 ip=192.168.1.68 link=yes multicast=yes wireless=IEEE 802.11
在事件期间我找不到任何有用的信息,只有以前/较旧的日志:
:~$ sudo dmesg -T | grep -i ath9k
[Thu Apr 12 20:57:43 2018] usb 1-1: ath9k_htc: Firmware ath9k_htc/htc_9271-1.4.0.fw requested
[Thu Apr 12 20:57:43 2018] usbcore: registered new interface driver ath9k_htc
[Thu Apr 12 20:57:43 2018] usb 1-1: firmware: failed to load ath9k_htc/htc_9271-1.4.0.fw (-2)
[Thu Apr 12 20:57:43 2018] usb 1-1: Direct firmware load for ath9k_htc/htc_9271-1.4.0.fw failed with error -2
[Thu Apr 12 20:57:43 2018] usb 1-1: ath9k_htc: Firmware htc_9271.fw requested
[Thu Apr 12 20:57:44 2018] usb 1-1: ath9k_htc: Transferred FW: htc_9271.fw, size: 51008
[Thu Apr 12 20:57:44 2018] ath9k_htc 1-1:1.0: ath9k_htc: HTC initialized with 33 credits
[Thu Apr 12 20:57:44 2018] ath9k_htc 1-1:1.0: ath9k_htc: FW Version: 1.4
[Thu Apr 12 20:57:44 2018] ath9k_htc 1-1:1.0: FW RMW support: On
[Fri Apr 13 00:38:49 2018] usb 1-1: ath9k_htc: Transferred FW: htc_9271.fw, size: 51008
[Fri Apr 13 00:38:49 2018] ath9k_htc 1-1:1.0: ath9k_htc: HTC initialized with 33 credits
我发现的唯一相关错误(最后三行)〜这些日志是以前的,而不是在我调查过的“断开连接”处重复。
:~$ sudo dmesg -T | grep -i error
[Thu Apr 12 20:57:38 2018] Error parsing PCC subspaces from PCCT
[Thu Apr 12 20:57:39 2018] i801_smbus: probe of 0000:00:1f.3 failed with error -16
[Thu Apr 12 20:57:42 2018] EXT4-fs (sdb3): re-mounted. Opts: errors=remount-ro
[Thu Apr 12 20:57:42 2018] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[Thu Apr 12 20:57:43 2018] usb 1-1: Direct firmware load for ath9k_htc/htc_9271-1.4.0.fw failed with error -2
[Fri Apr 13 00:38:48 2018] usb 1-1: device descriptor read/64, error -110
任何想法我该如何进一步调试?
当我插入/拔出(挂载/卸载)任何 USB 闪存驱动器时,每个 GUI 应用程序都会被杀死,然后我会返回 gnome 登录页面。另一方面,非 gui 应用程序继续工作(例如那些通过 ctrl-alt-f2 执行的应用程序)
我跑了 rkhunter,它没有报告任何可疑的东西。
我正在运行(debian sid):
Linux mypc 4.14.0-3-rt-amd64 #1 SMP PREEMPT RT Debian 4.14.13-1 (2018-01-14) x86_64 GNU/Linux
GNOME Shell 3.26.2
似乎受到影响的日志文件是:
* dmesg:
< [ 1022.224350] NOHZ: local_softirq_pending 80
< [ 1022.224612] NOHZ: local_softirq_pending 80
< [ 1081.212308] usb 2-1: new high-speed USB device number 6 using xhci_hcd
< [ 1081.368128] usb 2-1: New USB device found, idVendor=058f, idProduct=6387
< [ 1081.368133] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
< [ 1081.368203] usb 2-1: Product: Intenso Rainbow Line
< [ 1081.368206] usb 2-1: Manufacturer: Alcor
< [ 1081.368210] usb 2-1: SerialNumber: 12345678
< [ 1081.369361] usb-storage 2-1:1.0: USB Mass Storage device detected
< [ 1081.369584] scsi host3: usb-storage 2-1:1.0
< [ 1082.390361] scsi 3:0:0:0: Direct-Access Intenso Rainbow Line 8.07 PQ: 0 ANSI: 4
< [ 1082.391791] sd 3:0:0:0: Attached scsi generic sg2 type 0
< [ 1082.392270] sd 3:0:0:0: [sdc] 62410752 512-byte logical blocks: (32.0 GB/29.8 GiB)
< [ 1082.392944] sd 3:0:0:0: [sdc] Write Protect is off
< [ 1082.392946] sd 3:0:0:0: [sdc] Mode Sense: 23 00 00 00
< [ 1082.393623] sd 3:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
< [ 1082.397401] sdc: sdc1
< [ 1082.400993] sd 3:0:0:0: [sdc] Attached SCSI removable disk
< [ 1082.827871] EXT4-fs (sdc1): recovery complete
< [ 1082.835572] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null)
< [ 1083.084008] rfkill: input handler enabled
< [ 1089.711837] usb 2-1: USB disconnect, device number 6
< [ 1089.761233] blk_partition_remap: fail for partition 1
< [ 1089.761241] Buffer I/O error on dev sdc1, logical block 3702784, lost sync page write
< [ 1089.761249] JBD2: Error -5 detected when updating journal superblock for sdc1-8.
< [ 1089.761253] Aborting journal on device sdc1-8.
< [ 1089.761259] blk_partition_remap: fail for partition 1
< [ 1089.761261] Buffer I/O error on dev sdc1, logical block 3702784, lost sync page write
< [ 1089.761265] JBD2: Error -5 detected when updating journal superblock for sdc1-8.
< [ 1089.761469] EXT4-fs (sdc1): previous I/O error to superblock detected
< [ 1089.761476] blk_partition_remap: fail for partition 1
< [ 1097.258447] rfkill: input handler disabled
* /var/log/系统日志:
< Jan 26 15:54:59 mypc gnome-shell[6947]: Some code accessed the property 'EmailAccount' on the module 'EmailAccount'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'. The property access will work as previously for the time being, but please fix your code anyway.
< Jan 26 15:54:59 mypc gnome-shell[6947]: [Email Message Tray] Init version 9
< Jan 26 15:54:59 mypc gnome-shell[6947]: [Email Message Tray] Enabling 9
< Jan 26 15:54:59 mypc gnome-shell[6947]: error: No email accounts found
< Jan 26 15:54:59 mypc gsd-rfkill[7071]: g_object_notify: object class 'CcRfkillGlib' has no property named 'kernel-noinput'
< Jan 26 15:54:59 mypc kernel: [ 1097.258447] rfkill: input handler disabled
< Jan 26 15:54:59 mypc gnome-shell[6947]: [Email Message Tray] No email accounts found,Extension<._getGoaAccounts@/home/stelarov/.local/share/gnome-shell/extensions/[email protected]/extension.js:97:19#012wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22#012Extension<._init@/home/stelarov/.local/share/gnome-shell/extensions/[email protected]/extension.js:65:28#012wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22#012_Base.prototype._construct@resource:///org/gnome/gjs/modules/_legacy.js:18:5#012Class.prototype._construct/newClass@resource:///org/gnome/gjs/modules/_legacy.js:114:32#012enable@/home/stelarov/.local/share/gnome-shell/extensions/[email protected]/extension.js:128:21#012enableExtension@resource:///org/gnome/shell/ui/extensionSystem.js:129:9#012loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:171:17#012_loadExtensions/<@resource:///org/gnome/shell/ui/extensionSystem.js:318:9#012_emit@resource:///org/gnome/gjs/modules/signals.js:126:27#012ExtensionFinder<._loadExtension@resource:///org/gnome/shell/misc/extensionUtils.js:184:9#012wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22#012bind/<@resource:///org/gnome/gjs/modules/lang.js:97:16#012collectFromDatadirs@resource:///org/gnome/shell/misc/fileUtils.js:27:17#012ExtensionFinder<.scanExtensions@resource:///org/gnome/shell/misc/extensionUtils.js:189:9#012wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22#012_loadExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:320:5#012enableAllExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:328:9#012_sessionUpdated@resource:///org/gnome/shell/ui/extensionSystem.js:359:9#012init@resource:///org/gnome/shell/ui/extensionSystem.js:367:5#012_initializeUI@resource:///org/gnome/shell/ui/main.js:217:5#012start@resource:///org/gnome/shell/ui/main.js:126:5#012@<main>:1:31
< Jan 26 15:54:59 mypc gsd-sharing[7083]: Failed to StopUnit service: GDBus.Error:org.freedesktop.systemd1.NoSuchUnit: Unit gnome-remote-desktop.service not loaded.
< Jan 26 15:54:59 mypc gnome-shell[6947]: System monitor applet init from /home/stelarov/.local/share/gnome-shell/extensions/[email protected]
< Jan 26 15:54:59 mypc gnome-shell[6947]: System monitor applet enabling
< Jan 26 15:54:59 mypc gnome-shell[6947]: JS WARNING: [/home/stelarov/.local/share/gnome-shell/extensions/[email protected]/extension.js 1507]: reference to undefined property "Client"
< Jan 26 15:54:59 mypc gnome-shell[6947]: Extension "[email protected]" had error: TypeError: NMClient.Client is undefined
< Jan 26 15:54:59 mypc gnome-shell[6947]: Some code accessed the property 'PlacesManager' on the module 'placeDisplay'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'. The property access will work as previously for the time being, but please fix your code anyway.
< Jan 26 15:54:59 mypc gnome-shell[6947]: Extension [email protected] already installed in /home/stelarov/.local/share/gnome-shell/extensions/[email protected]. /usr/share/gnome-shell/extensions/[email protected] will not be loaded
< Jan 26 15:54:59 mypc gnome-shell[6947]: Extension [email protected] already installed in /home/stelarov/.local/share/gnome-shell/extensions/[email protected]. /usr/share/gnome-shell/extensions/[email protected] will not be loaded
< Jan 26 15:54:59 mypc gnome-shell[6947]: Extension [email protected] already installed in /home/stelarov/.local/share/gnome-shell/extensions/[email protected]. /usr/share/gnome-shell/extensions/[email protected] will not be loaded
< Jan 26 15:54:59 mypc gnome-shell[6947]: Extension [email protected] already installed in /home/stelarov/.local/share/gnome-shell/extensions/[email protected]. /usr/share/gnome-shell/extensions/[email protected] will not be loaded
< Jan 26 15:54:59 mypc gnome-shell[6947]: Extension screenshot-window-sizer@gnome-shell-extensions.gcampax.github.com already installed in /home/stelarov/.local/share/gnome-shell/extensions/screenshot-window-sizer@gnome-shell-extensions.gcampax.github.com. /usr/share/gnome-shell/extensions/screenshot-window-sizer@gnome-shell-extensions.gcampax.github.com will not be loaded
< Jan 26 15:54:59 mypc gnome-shell[6947]: Extension [email protected] already installed in /home/stelarov/.local/share/gnome-shell/extensions/[email protected]. /usr/share/gnome-shell/extensions/[email protected] will not be loaded
< Jan 26 15:54:59 mypc gnome-shell[6947]: Extension [email protected] already installed in /home/stelarov/.local/share/gnome-shell/extensions/[email protected]. /usr/share/gnome-shell/extensions/[email protected] will not be loaded
< Jan 26 15:54:59 mypc gnome-shell[6947]: Extension [email protected] already installed in /home/stelarov/.local/share/gnome-shell/extensions/[email protected]. /usr/share/gnome-shell/extensions/[email protected] will not be loaded
< Jan 26 15:54:59 mypc dbus-daemon[6889]: [session uid=1000 pid=6889] Activating via systemd: service name='org.gnome.evolution.dataserver.Calendar7' unit='evolution-calendar-factory.service' requested by ':1.17' (uid=1000 pid=7000 comm="/usr/lib/gnome-shell/gnome-shell-calendar-server ")
< Jan 26 15:54:59 mypc systemd[6869]: Starting Evolution calendar service...
< Jan 26 15:54:59 mypc bluetoothd[680]: Failed to set mode: Blocked through rfkill (0x12)
< Jan 26 15:55:00 mypc gnome-shell[6947]: Error looking up permission: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.impl.portal.PermissionStore was not provided by any .service files
< Jan 26 15:55:00 mypc dbus-daemon[6889]: [session uid=1000 pid=6889] Successfully activated service 'org.gnome.evolution.dataserver.Calendar7'
< Jan 26 15:55:00 mypc systemd[6869]: Started Evolution calendar service.
< Jan 26 15:55:00 mypc dbus-daemon[6889]: [session uid=1000 pid=6889] Activating via systemd: service name='org.freedesktop.Tracker1' unit='tracker-store.service' requested by ':1.51' (uid=1000 pid=7178 comm="gdbus call -e -d org.freedesktop.DBus -o /org/free")
< Jan 26 15:55:00 mypc systemd[6869]: Starting Tracker metadata database store and lookup manager...
< Jan 26 15:55:00 mypc dbus-daemon[673]: [system] Activating via systemd: service name='org.freedesktop.locale1' unit='dbus-org.freedesktop.locale1.service' requested by ':1.153' (uid=1000 pid=7105 comm="/usr/lib/gnome-settings-daemon/gsd-keyboard ")
< Jan 26 15:55:00 mypc systemd[1]: Starting Locale Service...
< Jan 26 15:55:00 mypc dbus-daemon[6889]: [session uid=1000 pid=6889] Successfully activated service 'org.freedesktop.Tracker1'
< Jan 26 15:55:00 mypc systemd[6869]: Started Tracker metadata database store and lookup manager.
< Jan 26 15:55:00 mypc tracker-store.desktop[7178]: (uint32 1,)
< Jan 26 15:55:00 mypc gnome-session-binary[6891]: Entering running state
< Jan 26 15:55:00 mypc gsd-power[7067]: gsd_power_backlight_abs_to_percentage: assertion 'max > min' failed
< Jan 26 15:55:00 mypc dbus-daemon[673]: [system] Successfully activated service 'org.freedesktop.locale1'
< Jan 26 15:55:00 mypc systemd[1]: Started Locale Service.
< Jan 26 15:55:01 mypc dbus-daemon[6889]: [session uid=1000 pid=6889] Activating via systemd: service name='org.gnome.evolution.dataserver.AddressBook9' unit='evolution-addressbook-factory.service' requested by ':1.61' (uid=1000 pid=7146 comm="/usr/lib/evolution/evolution-calendar-factory-subp")
< Jan 26 15:55:01 mypc systemd[6869]: Starting Evolution address book service...
< Jan 26 15:55:01 mypc dbus-daemon[6889]: [session uid=1000 pid=6889] Successfully activated service 'org.gnome.evolution.dataserver.AddressBook9'
< Jan 26 15:55:01 mypc systemd[6869]: Started Evolution address book service.
< Jan 26 15:55:01 mypc gnome-shell[6947]: GNOME Shell started at Fri Jan 26 2018 15:54:59 GMT+0200 (EET)
< Jan 26 15:55:01 mypc CRON[7291]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
< Jan 26 15:55:01 mypc dbus-daemon[6889]: [session uid=1000 pid=6889] Activating via systemd: service name='org.gtk.vfs.Metadata' unit='gvfs-metadata.service' requested by ':1.56' (uid=1000 pid=7188 comm="/usr/lib/tracker/tracker-extract ")
< Jan 26 15:55:01 mypc systemd[6869]: Starting Virtual filesystem metadata service...
< Jan 26 15:55:01 mypc dbus-daemon[6889]: [session uid=1000 pid=6889] Successfully activated service 'org.gtk.vfs.Metadata'
< Jan 26 15:55:01 mypc systemd[6869]: Started Virtual filesystem metadata service.
< Jan 26 15:55:01 mypc tracker-extract.desktop[7188]: Duplicate property or field node
< Jan 26 15:55:01 mypc tracker-extract.desktop[7188]: Duplicate property or field node
< Jan 26 15:55:01 mypc tracker-extract.desktop[7188]: Duplicate property or field node
< Jan 26 15:55:01 mypc tracker-extract.desktop[7188]: Duplicate property or field node
< Jan 26 15:55:01 mypc tracker-extract.desktop[7188]: Duplicate property or field node
< Jan 26 15:55:01 mypc tracker-extract[7188]: Could not insert metadata for item "file:///home/stelarov/Documents/mine/afm.jpg": Unable to insert multiple values for subject `urn:uuid:1a502c34-2d90-58a6-205b-cbd30009334d' and single valued property `nie:contentCreated' (old_value: '<untransformable>', new value: '<untransformable>')
< Jan 26 15:55:01 mypc tracker-extract[7188]: If the error above is recurrent for the same item/ID, consider running "tracker-extract" in the terminal with the TRACKER_VERBOSITY=3 environment variable, and filing a bug with the additional information
< Jan 26 15:55:01 mypc tracker-extract[7188]: Could not insert metadata for item "file:///home/stelarov/Documents/mine/sbarberakis_driv_licence1.jpg": Unable to insert multiple values for subject `urn:uuid:457d564e-b265-2729-e171-7c4a41bbcf97' and single valued property `nmm:exposureTime' (old_value: '0.030303', new value: '0.071429')
< Jan 26 15:55:01 mypc tracker-extract[7188]: If the error above is recurrent for the same item/ID, consider running "tracker-extract" in the terminal with the TRACKER_VERBOSITY=3 environment variable, and filing a bug with the additional information
< Jan 26 15:55:01 mypc tracker-extract[7188]: Could not insert metadata for item "file:///home/stelarov/Documents/mine/sbarberakis_driv_licence1.jpg": Unable to insert multiple values for subject `urn:uuid:457d564e-b265-2729-e171-7c4a41bbcf97' and single valued property `nmm:exposureTime' (old_value: '0.030303', new value: '0.071429')
< Jan 26 15:55:01 mypc tracker-extract[7188]: If the error above is recurrent for the same item/ID, consider running "tracker-extract" in the terminal with the TRACKER_VERBOSITY=3 environment variable, and filing a bug with the additional information
< Jan 26 15:55:01 mypc tracker-extract[7188]: Could not insert metadata for item "file:///home/stelarov/Documents/mine/sbarberakis_licence_2.jpg": Unable to insert multiple values for subject `urn:uuid:8f82b450-5524-b79f-98af-04032937a833' and single valued property `nie:contentCreated' (old_value: '<untransformable>', new value: '<untransformable>')
< Jan 26 15:55:01 mypc tracker-extract[7188]: If the error above is recurrent for the same item/ID, consider running "tracker-extract" in the terminal with the TRACKER_VERBOSITY=3 environment variable, and filing a bug with the additional information
< Jan 26 15:55:01 mypc tracker-extract[7188]: Could not insert metadata for item "file:///home/stelarov/Documents/mine/sbarberakis_licence_2.jpg": Unable to insert multiple values for subject `urn:uuid:8f82b450-5524-b79f-98af-04032937a833' and single valued property `nie:contentCreated' (old_value: '<untransformable>', new value: '<untransformable>')
< Jan 26 15:55:01 mypc tracker-extract[7188]: If the error above is recurrent for the same item/ID, consider running "tracker-extract" in the terminal with the TRACKER_VERBOSITY=3 environment variable, and filing a bug with the additional information
< Jan 26 15:55:02 mypc gnome-software[7179]: plugin appstream took 1.8 seconds to do setup
< Jan 26 15:55:02 mypc gnome-software[7179]: enabled plugins: packagekit-refresh, packagekit-proxy, shell-extensions, os-release, packagekit-offline, fwupd, packagekit-local, desktop-categories, systemd-updates, packagekit, packagekit-upgrade, appstream, hardcoded-featured, odrs, desktop-menu-path, hardcoded-popular, generic-updates, packagekit-refine, modalias, rewrite-resource, hardcoded-blacklist, steam, packagekit-history, provenance, icons, provenance-license, key-colors, key-colors-metadata
< Jan 26 15:55:02 mypc gnome-software[7179]: disabled plugins: dummy, dpkg, repos, epiphany
< Jan 26 15:55:02 mypc gnome-software[7179]: failed to call gs_plugin_add_updates_historical on fwupd: The name org.freedesktop.fwupd was not provided by any .service files
< Jan 26 15:55:07 mypc terminator[7329]: Allocating size to GtkVScrollbar 0x5652b4cb2330 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
< Jan 26 15:55:08 mypc terminator[7329]: Allocating size to GtkVScrollbar 0x5652b4cb2330 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
< Jan 26 15:55:08 mypc terminator[7329]: Allocating size to GtkVScrollbar 0x5652b4cb2330 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
< Jan 26 15:55:08 mypc org.gnome.Shell.desktop[6947]: libinput error: libinput bug: timer event5 debounce: offset negative (-2426)
< Jan 26 15:55:08 mypc org.gnome.Shell.desktop[6947]: libinput error: libinput bug: timer event5 debounce short: offset negative (-15454)
< Jan 26 15:55:10 mypc gnome-shell[6947]: Object St.Widget (0x55e1e53ebc10), has been already finalized. Impossible to get any property from it.
< Jan 26 15:55:10 mypc org.gnome.Shell.desktop[6947]: == Stack trace for context 0x55e1e36ee000 ==
< Jan 26 15:55:10 mypc org.gnome.Shell.desktop[6947]: #0 0x55e1e3a739f8 i resource:///org/gnome/shell/ui/tweener.js:73 (0x7fdeac5ddef0 @ 9)
< Jan 26 15:55:10 mypc org.gnome.Shell.desktop[6947]: #1 0x55e1e3a73978 i resource:///org/gnome/shell/ui/tweener.js:105 (0x7fdeac5df230 @ 36)
< Jan 26 15:55:10 mypc org.gnome.Shell.desktop[6947]: #2 0x55e1e3a738f0 i resource:///org/gnome/shell/ui/tweener.js:92 (0x7fdeac5df098 @ 52)
< Jan 26 15:55:10 mypc org.gnome.Shell.desktop[6947]: #3 0x7ffd299ba3f0 b resource:///org/gnome/gjs/modules/tweener/tweener.js:203 (0x7fdeac5e9cd0 @ 54)
< Jan 26 15:55:10 mypc org.gnome.Shell.desktop[6947]: #4 0x7ffd299ba540 b resource:///org/gnome/gjs/modules/tweener/tweener.js:332 (0x7fdeac5e9d58 @ 1626)
< Jan 26 15:55:10 mypc org.gnome.Shell.desktop[6947]: #5 0x7ffd299ba5f0 b resource:///org/gnome/gjs/modules/tweener/tweener.js:345 (0x7fdeac5e9de0 @ 100)
< Jan 26 15:55:10 mypc org.gnome.Shell.desktop[6947]: #6 0x7ffd299ba680 b resource:///org/gnome/gjs/modules/tweener/tweener.js:360 (0x7fdeac5e9e68 @ 10)
< Jan 26 15:55:10 mypc org.gnome.Shell.desktop[6947]: #7 0x7ffd299ba770 b resource:///org/gnome/gjs/modules/signals.js:126 (0x7fdeac5e2b38 @ 386)
< Jan 26 15:55:10 mypc org.gnome.Shell.desktop[6947]: #8 0x7ffd299ba820 b resource:///org/gnome/shell/ui/tweener.js:208 (0x7fdeac5df808 @ 159)
< Jan 26 15:55:10 mypc org.gnome.Shell.desktop[6947]: #9 0x7ffd299ba880 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7fdeac5c2bc0 @ 71)
< Jan 26 15:55:10 mypc org.gnome.Shell.desktop[6947]: #10 0x7ffd299ba930 b resource:///org/gnome/shell/ui/tweener.js:183 (0x7fdeac5df780 @ 20)
< Jan 26 15:55:10 mypc org.gnome.Shell.desktop[6947]: #11 0x7ffd299baa00 b self-hosted:917 (0x7fdeac5ee5e8 @ 394)
< Jan 26 15:55:10 mypc org.gnome.Shell.desktop[6947]: == Stack trace for context 0x55e1e36ee000 ==
< Jan 26 15:55:10 mypc org.gnome.Shell.desktop[6947]: #0 0x55e1e3a739f8 i resource:///org/gnome/shell/ui/tweener.js:80 (0x7fdeac5ddef0 @ 82)
< Jan 26 15:55:10 mypc org.gnome.Shell.desktop[6947]: #1 0x55e1e3a73978 i resource:///org/gnome/shell/ui/tweener.js:105 (0x7fdeac5df230 @ 36)
< Jan 26 15:55:10 mypc org.gnome.Shell.desktop[6947]: #2 0x55e1e3a738f0 i resource:///org/gnome/shell/ui/tweener.js:92 (0x7fdeac5df098 @ 52)
< Jan 26 15:55:10 mypc org.gnome.Shell.desktop[6947]: #3 0x7ffd299ba3f0 b resource:///org/gnome/gjs/modules/tweener/tweener.js:203 (0x7fdeac5e9cd0 @ 54)
< Jan 26 15:55:10 mypc org.gnome.Shell.desktop[6947]: #4 0x7ffd299ba540 b resource:///org/gnome/gjs/modules/tweener/tweener.js:332 (0x7fdeac5e9d58 @ 1626)
< Jan 26 15:55:10 mypc org.gnome.Shell.desktop[6947]: #5 0x7ffd299ba5f0 b resource:///org/gnome/gjs/modules/tweener/tweener.js:345 (0x7fdeac5e9de0 @ 100)
< Jan 26 15:55:10 mypc org.gnome.Shell.desktop[6947]: #6 0x7ffd299ba680 b resource:///org/gnome/gjs/modules/tweener/tweener.js:360 (0x7fdeac5e9e68 @ 10)
< Jan 26 15:55:10 mypc org.gnome.Shell.desktop[6947]: #7 0x7ffd299ba770 b resource:///org/gnome/gjs/modules/signals.js:126 (0x7fdeac5e2b38 @ 386)
< Jan 26 15:55:10 mypc gnome-shell[6947]: Object St.Widget (0x55e1e53ebc10), has been already finalized. Impossible to set any property to it.
< Jan 26 15:55:10 mypc org.gnome.Shell.desktop[6947]: #8 0x7ffd299ba820 b resource:///org/gnome/shell/ui/tweener.js:208 (0x7fdeac5df808 @ 159)
< Jan 26 15:55:10 mypc org.gnome.Shell.desktop[6947]: #9 0x7ffd299ba880 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7fdeac5c2bc0 @ 71)
< Jan 26 15:55:10 mypc org.gnome.Shell.desktop[6947]: #10 0x7ffd299ba930 b resource:///org/gnome/shell/ui/tweener.js:183 (0x7fdeac5df780 @ 20)
< Jan 26 15:55:10 mypc org.gnome.Shell.desktop[6947]: #11 0x7ffd299baa00 b self-hosted:917 (0x7fdeac5ee5e8 @ 394)
.xsession-errors
并且./local/share/xorg/Xorg.0.log
在崩溃期间没有改变
我应该在哪里寻找任何线索的任何想法?谢谢
:~/$ uname -a
Linux hostname 4.9.0-4-rt-amd64 #1 SMP PREEMPT RT Debian 4.9.51-1 (2017-09-28) x86_64 GNU/Linux
我认为我有一个清晰的依赖树,没有损坏的包。
:~/$ sudo apt-get check
Reading package lists... Done
Building dependency tree
Reading state information... Done
但是,当我尝试安装时npm
,apt-get 想要删除libssl-dev
:
:~$ sudo apt-get install npm
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libldns2 libssl-doc
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
gyp libjs-inherits libjs-node-uuid libssl1.0-dev libuv1-dev node-abbrev node-ansi node-ansi-color-table node-archy node-async node-balanced-match node-block-stream node-brace-expansion node-builtin-modules
node-combined-stream node-concat-map node-cookie-jar node-delayed-stream node-forever-agent node-form-data node-fs.realpath node-fstream node-fstream-ignore node-github-url-from-git node-glob
node-graceful-fs node-gyp node-hosted-git-info node-inflight node-inherits node-ini node-is-builtin-module node-isexe node-json-stringify-safe node-lockfile node-lru-cache node-mime node-minimatch
node-mkdirp node-mute-stream node-node-uuid node-nopt node-normalize-package-data node-npmlog node-once node-osenv node-path-is-absolute node-pseudomap node-qs node-read node-read-package-json node-request
node-retry node-rimraf node-semver node-sha node-slide node-spdx-correct node-spdx-expression-parse node-spdx-license-ids node-tar node-tunnel-agent node-underscore node-validate-npm-package-license
node-which node-wrappy node-yallist nodejs nodejs-dev nodejs-doc
Suggested packages:
node-hawk node-aws-sign node-oauth-sign node-http-signature debhelper
The following packages will be REMOVED:
libldns-dev libssl-dev
The following NEW packages will be installed:
gyp libjs-inherits libjs-node-uuid libssl1.0-dev libuv1-dev node-abbrev node-ansi node-ansi-color-table node-archy node-async node-balanced-match node-block-stream node-brace-expansion node-builtin-modules
node-combined-stream node-concat-map node-cookie-jar node-delayed-stream node-forever-agent node-form-data node-fs.realpath node-fstream node-fstream-ignore node-github-url-from-git node-glob
node-graceful-fs node-gyp node-hosted-git-info node-inflight node-inherits node-ini node-is-builtin-module node-isexe node-json-stringify-safe node-lockfile node-lru-cache node-mime node-minimatch
node-mkdirp node-mute-stream node-node-uuid node-nopt node-normalize-package-data node-npmlog node-once node-osenv node-path-is-absolute node-pseudomap node-qs node-read node-read-package-json node-request
node-retry node-rimraf node-semver node-sha node-slide node-spdx-correct node-spdx-expression-parse node-spdx-license-ids node-tar node-tunnel-agent node-underscore node-validate-npm-package-license
node-which node-wrappy node-yallist nodejs nodejs-dev nodejs-doc npm
0 upgraded, 71 newly installed, 2 to remove and 32 not upgraded.
Need to get 7,517 kB of archives.
After this operation, 25.1 MB of additional disk space will be used.
Do you want to continue? [Y/n]
我的sources.list
:
$ cat /etc/apt/sources.list
deb http://ftp.us.debian.org/debian sid main contrib non-free
deb-src http://ftp.us.debian.org/debian sid main contrib non-free
# 3rd party
# deb http://www.deb-multimedia.org unstable main non-free
deb [arch=amd64] https://download.docker.com/linux/debian stretch stable
# deb-src [arch=amd64] https://download.docker.com/linux/debian stretch stable
deb http://http.us.debian.org/debian/ stretch main non-free contrib
任何想法为什么?你认为我应该报告错误吗?