openSUSE Leap 15.0 zypper ref 出现 Can't open /var/run/zypp.pid

[ 5.207088] [drm] size 7299072
[ 5.207088] [drm] fb depth is 24
[ 5.207089] [drm] pitch is 6912
[ 5.207191] fbcon: amdgpudrmfb (fb0) is primary device
[ 5.548141] raid6: sse2x1 gen() 11861 MB/s
[ 5.556584] Console: switching to colour frame buffer device 200x56
[ 5.560426] amdgpu 0000:01:00.0: fb0: amdgpudrmfb frame buffer device
[ 5.566227] PM: Starting manual resume from disk
[ 5.566229] PM: Hibernation image partition 8:21 present
[ 5.566229] PM: Looking for hibernation image.
[ 5.582472] PM: Image not found (code -22)
[ 5.582473] PM: Hibernation image not present or could not be loaded.
[ 5.616162] raid6: sse2x1 xor() 7904 MB/s
[ 5.684162] raid6: sse2x2 gen() 14521 MB/s
[ 5.752163] raid6: sse2x2 xor() 9252 MB/s
[ 5.820162] raid6: sse2x4 gen() 16933 MB/s
[ 5.888162] raid6: sse2x4 xor() 10510 MB/s
[ 5.956161] raid6: avx2x1 gen() 23286 MB/s
[ 6.024161] raid6: avx2x1 xor() 15888 MB/s
[ 6.092143] raid6: avx2x2 gen() 27419 MB/s
[ 6.160142] raid6: avx2x2 xor() 15947 MB/s
[ 6.228141] raid6: avx2x4 gen() 29598 MB/s
[ 6.296142] raid6: avx2x4 xor() 18773 MB/s
[ 6.296142] raid6: using algorithm avx2x4 gen() 29598 MB/s
[ 6.296143] raid6: … xor() 18773 MB/s, rmw enabled
[ 6.296144] raid6: using avx2x2 recovery algorithm
[ 6.296167] clocksource: Switched to clocksource tsc
[ 6.296605] xor: automatically using best checksumming function avx
[ 6.314015] Btrfs loaded, crc32c=crc32c-intel, assert=on
[ 6.314307] BTRFS: device fsid e892b8fc-5a5d-4889-a899-f79d30b57fc0 devid 1 transid 93370 /dev/sdb2
[ 6.338407] BTRFS info (device sdb2): disk space caching is enabled
[ 6.338408] BTRFS info (device sdb2): has skinny extents
[ 6.796799] [drm] Initialized amdgpu 3.31.0 20150101 for 0000:01:00.0 on minor 1
[ 6.798303] [drm] Initialized i915 1.6.0 20171222 for 0000:00:02.0 on minor 0
[ 6.811918] [drm] Cannot find any crtc or sizes
[ 6.815998] [drm] Cannot find any crtc or sizes
[ 6.819822] [drm] Cannot find any crtc or sizes
[ 7.039279] systemd-journald[152]: Received SIGTERM from PID 1 (systemd).
[ 7.144157] systemd: 16 output lines suppressed due to ratelimiting
[ 8.324252] systemd[1]: RTC configured in localtime, applying delta of 480 minutes to system time.
[ 10.665670] BTRFS info (device sdb2): disk space caching is enabled
[ 11.626552] ACPI Warning: SystemIO range 0x0000000000001828-0x000000000000182F conflicts with OpRegion 0x0000000000001800-0x000000000000187F (\PMIO) (20170303/utaddress-247)
[ 11.626557] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 11.626559] ACPI Warning: SystemIO range 0x0000000000001C40-0x0000000000001C4F conflicts with OpRegion 0x0000000000001C00-0x0000000000001FFF (\GPR) (20170303/utaddress-247)
[ 11.626561] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 11.626562] ACPI Warning: SystemIO range 0x0000000000001C30-0x0000000000001C3F conflicts with OpRegion 0x0000000000001C00-0x0000000000001C3F (\GPRL) (20170303/utaddress-247)
[ 11.626564] ACPI Warning: SystemIO range 0x0000000000001C30-0x0000000000001C3F conflicts with OpRegion 0x0000000000001C00-0x0000000000001FFF (\GPR) (20170303/utaddress-247)
[ 11.626566] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 11.626566] ACPI Warning: SystemIO range 0x0000000000001C00-0x0000000000001C2F conflicts with OpRegion 0x0000000000001C00-0x0000000000001C3F (\GPRL) (20170303/utaddress-247)
[ 11.626568] ACPI Warning: SystemIO range 0x0000000000001C00-0x0000000000001C2F conflicts with OpRegion 0x0000000000001C00-0x0000000000001FFF (\GPR) (20170303/utaddress-247)
[ 11.626571] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 11.626571] lpc_ich: Resource conflict(s) found affecting gpio_ich
[ 11.627711] wmi: Mapper loaded
[ 11.637445] input: PC Speaker as /devices/platform/pcspkr/input/input3
[ 11.713107] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[ 11.713308] parport_pc 00:06: reported by Plug and Play ACPI
[ 11.713362] parport0: PC-style at 0x378, irq 5 [PCSPP]
[ 11.782773] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input4
[ 11.783230] ACPI: Power Button [PWRB]
[ 11.783268] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input5
[ 11.783485] ACPI: Power Button [PWRF]
[ 11.828925] thermal LNXTHERM:00: registered as thermal_zone0
[ 11.828927] ACPI: Thermal Zone [TZ00] (28 C)
[ 11.829150] thermal LNXTHERM:01: registered as thermal_zone1
[ 11.829151] ACPI: Thermal Zone [TZ01] (30 C)
[ 11.880183] AVX2 version of gcm_enc/dec engaged.
[ 11.880183] AES CTR mode by8 optimization enabled
[ 11.958451] ppdev: user-space parallel port driver
[ 11.973882] iTCO_vendor_support: vendor-support=0
[ 12.012345] iTCO_wdt: Intel TCO WatchDog Timer Driver v1.11
[ 12.012381] iTCO_wdt: Found a Lynx Point TCO device (Version=2, TCOBASE=0x1860)
[ 12.012430] iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
[ 12.194271] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[ 12.194278] r8169 0000:02:00.0: can’t disable ASPM; OS doesn’t have ASPM control
[ 12.209111] r8169 0000:02:00.0 eth0: RTL8168g/8111g at 0xffffc90001975000, 44:8a:5b:d7:d0:aa, XID 0c000800 IRQ 31
[ 12.209115] r8169 0000:02:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[ 12.281602] i801_smbus 0000:00:1f.3: SPD Write Disable is set
[ 12.281624] i801_smbus 0000:00:1f.3: SMBus using PCI interrupt
[ 12.402969] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
[ 12.402970] snd_hda_intel 0000:01:00.1: Force to non-snoop mode
[ 12.403192] snd_hda_intel 0000:00:03.0: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[ 12.436100] input: HDA ATI HDMI HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1c.0/0000:01:00.1/sound/card2/input6
[ 12.436136] input: HDA ATI HDMI HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1c.0/0000:01:00.1/sound/card2/input7
[ 12.436247] input: HDA ATI HDMI HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1c.0/0000:01:00.1/sound/card2/input8
[ 12.436274] input: HDA ATI HDMI HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:1c.0/0000:01:00.1/sound/card2/input9
[ 12.436303] input: HDA ATI HDMI HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:1c.0/0000:01:00.1/sound/card2/input10
[ 12.438853] input: HDA ATI HDMI HDMI/DP,pcm=11 as /devices/pci0000:00/0000:00:1c.0/0000:01:00.1/sound/card2/input11
[ 12.452394] input: HDA Intel HDMI HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:03.0/sound/card0/input12
[ 12.452435] input: HDA Intel HDMI HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:03.0/sound/card0/input13
[ 12.452472] input: HDA Intel HDMI HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:03.0/sound/card0/input14
[ 12.452510] input: HDA Intel HDMI HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:03.0/sound/card0/input15
[ 12.452538] input: HDA Intel HDMI HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:03.0/sound/card0/input16
[ 12.594896] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC887-VD: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:line
[ 12.594898] snd_hda_codec_realtek hdaudioC1D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 12.594899] snd_hda_codec_realtek hdaudioC1D0: hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[ 12.594900] snd_hda_codec_realtek hdaudioC1D0: mono: mono_out=0x0
[ 12.594901] snd_hda_codec_realtek hdaudioC1D0: inputs:
[ 12.594902] snd_hda_codec_realtek hdaudioC1D0: Front Mic=0x19
[ 12.594903] snd_hda_codec_realtek hdaudioC1D0: Rear Mic=0x18
[ 12.594904] snd_hda_codec_realtek hdaudioC1D0: Line=0x1a
[ 12.606834] input: HDA Intel PCH Front Mic as /devices/pci0000:00/0000:00:1b.0/sound/card1/input17
[ 12.606868] input: HDA Intel PCH Rear Mic as /devices/pci0000:00/0000:00:1b.0/sound/card1/input18
[ 12.606896] input: HDA Intel PCH Line as /devices/pci0000:00/0000:00:1b.0/sound/card1/input19
[ 12.606926] input: HDA Intel PCH Line Out as /devices/pci0000:00/0000:00:1b.0/sound/card1/input20
[ 12.606955] input: HDA Intel PCH Front Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card1/input21
[ 13.292205] intel_rapl: Found RAPL domain package
[ 13.292206] intel_rapl: Found RAPL domain core
[ 13.292207] intel_rapl: Found RAPL domain uncore
[ 13.292207] intel_rapl: Found RAPL domain dram
[ 13.351470] Adding 16782016k swap on /dev/sdb5. Priority:-1 extents:1 across:16782016k FS
[ 13.514858] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 13.655513] systemd-journald[411]: Received request to flush runtime journal from PID 1
[ 13.716061] SGI XFS with ACLs, security attributes, no debug enabled
[ 13.719757] XFS (sdb3): Mounting V5 Filesystem
[ 13.719963] XFS (sdb4): Mounting V5 Filesystem
[ 14.200167] audit: type=1400 audit(1570493821.851:2): apparmor=“STATUS” operation=“profile_load” profile=“unconfined” name=“ping” pid=730 comm=“apparmor_parser”
[ 14.204828] XFS (sdb3): Ending clean mount
[ 14.238502] XFS (sdb4): Ending clean mount
[ 14.560511] audit: type=1400 audit(1570493822.211:3): apparmor=“STATUS” operation=“profile_load” profile=“unconfined” name=“klogd” pid=738 comm=“apparmor_parser”
[ 14.671992] audit: type=1400 audit(1570493822.323:4): apparmor=“STATUS” operation=“profile_load” profile=“unconfined” name=“syslogd” pid=744 comm=“apparmor_parser”
[ 14.889203] audit: type=1400 audit(1570493822.539:5): apparmor=“STATUS” operation=“profile_load” profile=“unconfined” name=“syslog-ng” pid=753 comm=“apparmor_parser”
[ 14.981385] audit: type=1400 audit(1570493822.635:6): apparmor=“STATUS” operation=“profile_load” profile=“unconfined” name="/usr/bin/lessopen.sh" pid=759 comm=“apparmor_parser”
[ 15.091070] audit: type=1400 audit(1570493822.743:7): apparmor=“STATUS” operation=“profile_load” profile=“unconfined” name="/usr/bin/locate" pid=769 comm=“apparmor_parser”
[ 15.167658] audit: type=1400 audit(1570493822.819:8): apparmor=“STATUS” operation=“profile_load” profile=“unconfined” name="/usr/bin/updatedb" pid=774 comm=“apparmor_parser”
[ 23.256877] ip_tables: © 2000-2006 Netfilter Core Team
[ 23.416290] ip6_tables: © 2000-2006 Netfilter Core Team
[ 23.899003] Ebtables v2.0 registered
[ 24.051827] Loading iSCSI transport class v2.0-870.
[ 24.843050] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 24.978275] r8169 0000:02:00.0 eth0: link down
[ 24.978328] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 24.978338] r8169 0000:02:00.0 eth0: link down
[ 25.035422] /dev/vmmon[1313]: Module vmmon: registered with major=10 minor=165
[ 25.035424] /dev/vmmon[1313]: Using tsc_khz as TSC frequency: 3199997
[ 25.035425] /dev/vmmon[1313]: Module vmmon: initialized
[ 25.065672] nf_conntrack version 0.5.0 (65536 buckets, 262144 max)
[ 25.150764] Guest personality initialized and is inactive
[ 25.150794] VMCI host device registered (name=vmci, major=10, minor=57)
[ 25.150794] Initialized host personality
[ 25.219380] NET: Registered protocol family 40
[ 25.340129] fuse init (API version 7.26)
[ 25.496549] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 25.567791] Bridge firewalling registered
[ 25.829876] Netfilter messages via NETLINK v0.30.
[ 25.868047] ip_set: protocol 6
[ 26.580762] r8169 0000:02:00.0 eth0: link up
[ 26.580768] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 26.670236] r8169 0000:02:00.0 eth0: link down
[ 26.670272] r8169 0000:02:00.0 eth0: link down
[ 26.670292] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 27.081238] userif-4: sent link down event.
[ 27.081240] userif-4: sent link up event.
[ 27.812250] userif-4: sent link down event.
[ 27.812252] userif-4: sent link up event.
[ 28.282565] r8169 0000:02:00.0 eth0: link up
[ 28.282571] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 28.482917] userif-4: sent link down event.
[ 28.482918] userif-4: sent link up event.
[ 29.415094] NET: Registered protocol family 17
[ 29.512800] userif-4: sent link down event.
[ 29.512802] userif-4: sent link up event.
[ 32.094624] userif-4: sent link down event.
[ 32.094626] userif-4: sent link up event.
[ 43.641648] BTRFS info (device sdb2): relocating block group 42644537344 flags system|dup
[ 45.826637] BTRFS info (device sdb2): relocating block group 42678091776 flags system|dup
[ 47.268422] BTRFS info (device sdb2): relocating block group 42711646208 flags system|dup
[ 48.651545] BTRFS info (device sdb2): relocating block group 42745200640 flags system|dup
[ 50.949742] BTRFS info (device sdb2): relocating block group 42778755072 flags system|dup

这也太扯了,直接touch那个pid文件呢

sudo zypper ref
Cant open /var/run/zypp.pid
touch /var/run/zypp.pid
touch: 无法创建’/var/run/zypp.pid’: 权限不够
sudo touch /var/run/zypp.pid
sudo zypper ref
Cant open /var/run/zypp.pid
ls /var/run/zypp.pid
/var/run/zypp.pid

好长时间没用yast2,结果yast2进去后,能更新。还有那个系统中的“发现者”也能更新,
就是终端下的zypper不好用。简直见鬼了。

重装zypper吧…
哦对了,apparmor停一下,有可能是这个

也不是apparmor的问题。
终于不用忍受了。
重新安装15.1了。:joy:

一了百了……不过失去一个学习(这辈子可能再也用不上的)技能的大好机会

谢谢各位,不过我是用opensuse安装虚拟机,做windows开发,所以没有很大的精力投入linux。没办法。:smile: