我用的是朋友的笔记本电脑和Ubuntu 16操作系统。我被要求清理历史文件,在浏览了几个网站后,我用:
cat /dev/null > ~/.bash_history 命令似乎不起作用(没有要求我输入任何密码)。然后,我相信我使用了下面的命令,它要求我插入笔记本电脑的密码:
sudo gedit .bash_history 我一按enter键,互联网连接就中断了。我试着把互联网连接回去,但是电脑找不到任何无线信号。
我很感激你能帮我解决这个问题。谢谢。
非常感谢你能帮我这个忙。请查找您所要求的代码如下:
X:~$ service network-manager restart
X:~$ dmesg | tail -n100
[ 6.129998] systemd[1]: Listening on udev Control Socket.
[ 6.130035] systemd[1]: Listening on fsck to fsckd communication Socket.
[ 6.130088] systemd[1]: Started Trigger resolvconf update for networkd DNS.
[ 6.130222] systemd[1]: Created slice System Slice.
[ 6.130325] systemd[1]: Created slice User and Session Slice.
[ 6.130340] systemd[1]: Reached target Slices.
[ 6.130352] systemd[1]: Reached target User and Group Name Lookups.
[ 6.130413] systemd[1]: Listening on Journal Socket.
[ 6.148183] systemd[1]: Mounting Huge Pages File System...
[ 6.148858] systemd[1]: Started Braille Device Support.
[ 6.149766] systemd[1]: Mounting Debug File System...
[ 6.150627] systemd[1]: Mounting POSIX Message Queue File System...
[ 6.151304] systemd[1]: Starting Set console keymap...
[ 6.152068] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[ 6.232277] systemd[1]: Starting Load Kernel Modules...
[ 6.233014] systemd[1]: Started Read required files in advance.
[ 6.316281] systemd[1]: Starting Uncomplicated firewall...
[ 6.316430] systemd[1]: Listening on Journal Audit Socket.
[ 6.317254] systemd[1]: Starting Journal Service...
[ 6.780172] intel ips 0000:00:1f.6: i915 driver attached, reenabling gpu turbo
[ 6.808348] systemd[1]: Started Uncomplicated firewall.
[ 6.842875] systemd[1]: Started Create list of required static device nodes for the current kernel.
[ 6.856450] systemd[1]: Starting Create Static Device Nodes in /dev...
[ 7.002969] systemd[1]: Mounted Huge Pages File System.
[ 7.003043] systemd[1]: Mounted Debug File System.
[ 7.003944] systemd[1]: Mounted POSIX Message Queue File System.
[ 7.053278] lp: driver loaded but no devices found
[ 7.097062] ppdev: user-space parallel port driver
[ 7.301544] systemd[1]: Started Load Kernel Modules.
[ 7.316156] systemd[1]: Mounting FUSE Control File System...
[ 7.317113] systemd[1]: Starting Apply Kernel Variables...
[ 7.320741] systemd[1]: Mounted FUSE Control File System.
[ 7.346084] systemd[1]: Started Journal Service.
[ 12.482972] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ 12.865049] systemd-journald[249]: Received request to flush runtime journal from PID 1
[ 13.509733] ACPI Warning: SystemIO range 0x0000000000000428-0x000000000000042F conflicts with OpRegion 0x0000000000000400-0x000000000000047F (\PMIO) (20150930/utaddress-254)
[ 13.509745] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 13.509751] ACPI Warning: SystemIO range 0x00000000000011C0-0x00000000000011CF conflicts with OpRegion 0x0000000000001180-0x00000000000011E3 (\GPIO) (20150930/utaddress-254)
[ 13.509758] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 13.509761] ACPI Warning: SystemIO range 0x00000000000011B0-0x00000000000011BF conflicts with OpRegion 0x0000000000001180-0x00000000000011E3 (\GPIO) (20150930/utaddress-254)
[ 13.509768] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 13.509770] ACPI Warning: SystemIO range 0x0000000000001180-0x00000000000011AF conflicts with OpRegion 0x0000000000001180-0x00000000000011E3 (\GPIO) (20150930/utaddress-254)
[ 13.509777] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 13.509779] lpc_ich: Resource conflict(s) found affecting gpio_ich
[ 13.959587] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[ 14.183140] kvm: VM_EXIT_LOAD_IA32_PERF_GLOBAL_CTRL does not work properly. Using workaround
[ 14.703372] dcdbas dcdbas: Dell Systems Management Base Driver (version 5.6.0-3.2)
[ 15.554781] input: Dell WMI hotkeys as /devices/virtual/input/input9
[ 15.905234] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC269: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[ 15.905240] snd_hda_codec_realtek hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 15.905243] snd_hda_codec_realtek hdaudioC0D0: hp_outs=1 (0x15/0x0/0x0/0x0/0x0)
[ 15.905245] snd_hda_codec_realtek hdaudioC0D0: mono: mono_out=0x0
[ 15.905247] snd_hda_codec_realtek hdaudioC0D0: inputs:
[ 15.905251] snd_hda_codec_realtek hdaudioC0D0: Internal Mic=0x19
[ 15.905253] snd_hda_codec_realtek hdaudioC0D0: Mic=0x18
[ 15.952201] input: HDA Intel MID Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input10
[ 15.952300] input: HDA Intel MID Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input11
[ 15.952675] input: HDA Intel MID HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input12
[ 16.369490] media: Linux media interface: v0.10
[ 16.509082] Linux video capture interface: v2.00
[ 17.254476] uvcvideo: Found UVC 1.00 device Laptop_Integrated_Webcam_1.3M (0c45:6480)
[ 17.273387] wl: loading out-of-tree module taints kernel.
[ 17.273393] wl: module license 'MIXED/Proprietary' taints kernel.
[ 17.273395] Disabling lock debugging due to kernel taint
[ 17.276690] input: Laptop_Integrated_Webcam_1.3M as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.0/input/input13
[ 17.276871] usbcore: registered new interface driver uvcvideo
[ 17.276874] USB Video Class driver (1.1.1)
[ 17.278501] wl: module verification failed: signature and/or required key missing - tainting kernel
[ 17.330064] wlan0: Broadcom BCM4315 802.11 Hybrid Wireless Controller 6.30.223.248 (r487574)
[ 17.332446] wl 0000:03:00.0 wlp3s0: renamed from wlan0
[ 17.556832] cfg80211: World regulatory domain updated:
[ 17.556837] cfg80211: DFS Master region: unset
[ 17.556839] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[ 17.556842] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 17.556845] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 17.556847] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[ 17.556850] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[ 17.556853] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[ 17.556855] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[ 17.556858] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[ 17.556860] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[ 21.308688] audit: type=1400 audit(1528470507.538:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/ubuntu-core-launcher" pid=625 comm="apparmor_parser"
[ 21.623559] audit: type=1400 audit(1528470507.854:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/lightdm/lightdm-guest-session" pid=621 comm="apparmor_parser"
[ 21.623571] audit: type=1400 audit(1528470507.854:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/lightdm/lightdm-guest-session//chromium" pid=621 comm="apparmor_parser"
[ 21.680192] audit: type=1400 audit(1528470507.910:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/sbin/dhclient" pid=622 comm="apparmor_parser"
[ 21.680202] audit: type=1400 audit(1528470507.910:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=622 comm="apparmor_parser"
[ 21.680208] audit: type=1400 audit(1528470507.910:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-helper" pid=622 comm="apparmor_parser"
[ 21.680215] audit: type=1400 audit(1528470507.910:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/connman/scripts/dhclient-script" pid=622 comm="apparmor_parser"
[ 21.731800] audit: type=1400 audit(1528470507.962:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/cups-browsed" pid=629 comm="apparmor_parser"
[ 21.827568] audit: type=1400 audit(1528470508.054:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/ippusbxd" pid=631 comm="apparmor_parser"
[ 21.847444] audit: type=1400 audit(1528470508.074:11): apparmor="STATUS" operation="profile_load" profile="unconfined" name="webbrowser-app" pid=628 comm="apparmor_parser"
[ 22.344116] Adding 3001340k swap on /dev/sda5. Priority:-1 extents:1 across:3001340k FS
[ 36.321164] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[ 36.324656] IPv6: ADDRCONF(NETDEV_UP): enp4s0: link is not ready
[ 36.333007] r8169 0000:04:00.0 enp4s0: link down
[ 36.333052] IPv6: ADDRCONF(NETDEV_UP): enp4s0: link is not ready
[ 241.448933] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[ 241.453582] IPv6: ADDRCONF(NETDEV_UP): enp4s0: link is not ready
[ 241.462678] r8169 0000:04:00.0 enp4s0: link down
[ 241.462732] IPv6: ADDRCONF(NETDEV_UP): enp4s0: link is not ready
X:~$ /var/log/messages
bash: /var/log/messages: No such file or directory
X:~$ /var/log/messages
bash: /var/log/messages: No such file or directory更新:2018年10月6日,谢谢乔治的回答和编辑我以前的条目。请在下面找到所要求的代码。
X:~$ is -la~/..bash_history
-rw
我很感谢任何进一步的帮助来解决这个问题。
发布于 2018-05-29 07:51:37
首先,您需要检查network-manager是否运行良好?请使用下面的命令并查看状态。
service network-manager status如果一切正常,它应该显示running(active)状态,否则,您可能会在这里看到一些错误。
如果network-manager未运行,请使用以下命令重新启动网络管理器:
service network-manager restart(运行此命令可能需要sudo访问权限。)
发布于 2018-06-02 06:13:02
谢谢你的回答。我昨天听从了您的建议,网络经理确实在运行(活动)。当我运行“the manager状态”命令:“未能枚举oFono设备: GDBUS.Error:org.freedesktop.DBus.Error.Serv”时,有一行代码表示"failed“。
不确定这是否会为悬而未决的问题带来任何清晰,但希望它可以帮助,因为计算机表明无线连接是“超出范围”。我确实试图通过一个幻灯片按钮启用Wifi,但是系统不允许我这样做。
不幸的是,我真的不知道如何解决这个问题。如有任何进一步的建议/建议,我将不胜感激。谢谢。
https://askubuntu.com/questions/1041459
复制相似问题