部分答案...正在進行...

部分答案...正在進行...

這裡是顯示正在發生的情況的影片連結。我用手機拍攝的,所以對於低品質我深表歉意。

當我打開筆記型電腦時,我輸入密碼來設定驅動器,登入畫面出現,我輸入密碼,螢幕變黑,出現的下一個畫面是登入畫面。我再次輸入密碼,按下回車鍵,同樣的事情發生了。

當我在終端機中輸入時,

ls -al .*thority
pwd

首先,輸出是

-rw------- 1 amolith amolith 14000 Jun 19 11:21 .ICEauthority
-rw------- 1 amolith amolith    59 Jun 19 14:19 .Xauthority

然後

/home/amolith

ls -al當我在目錄中運行命令時home,輸出如下。

total 24
drwxr-xr-x  4 root    root     4096 Jun  3 11:28 .
drwxr-xr-x 24 root    root     4096 Jun  8 09:30 ..
drwr------ 41 amolith amolith 12288 Jun 19 14:19 amolith
drwxrwxr-x  3 root    root     4096 Jun  3 11:28 .encryptfs

當命令df運行時,

Filesystem                  1K-blocks     Used Available Use% Mounted on
udev                           932664        0   9326764   0% /dev
tempfs                         191324     6164    185160   4% /run
/dev/mapper/ubuntu--vg-root  12831848 12234968         0 100% /
tmpfs                          956604       12    956592   1% /dev.shm
tmpfs                            5120        4      5116   1% /run/lock
tmpfs                          956604        0    956604   0% /sys/fs/cgroup
/dev/loopo                      81408    81408         0 100% /snap/core/1689
/dev/loop1                     366336   366336         0 100% /snap/libreoffice/19
/dev/loop2                     187008   187008         0 100% /snap/atom/8
/dev/loop3                     187008   187008         0 100% /snap/atom/9
/dev/sda1                      474712   123440    322242  28% /boot
tmpfs                          191320        8    191312   1% /run/user/112
tmpfs                          191320        0    191320   0% /run/user/1000
/home/amolith/.Private       12831848 12831848         0 100% /home/amolith

當我以 root 身分登入時:

Error found when loading /root/.profile:
mesg: ttyname failed: Inappropriate ioctl for device

當我輸入“ls -alt |”時更多-7

total 133596
-rw-------  1 amolith amolith   18585 Jun 20 13:19 .bash_history
drwxr-xr-x 41 amolith amolith   12288 Jun 20 13:03 .
-rw-------  1 amolith amolith      59 Jun 20 13:03 .Xauthority
drwxr-xr-x 38 amolith amolith   12288 Jun 20 09:17 .cache
drwx------  3 amolith amolith    4096 Jun 19 14:16 .gnupg

當我跑步時grep mesg .profile

mesg n || true

當我跑步時ls -l / | more 在此輸入影像描述

dpkg -l *nvidia*輸出:

Desired=Unknown/Install/Remove/Purge/Hole
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name          Version    Architecture Description
++-==============-==========-============-=================================================
un nvidia-common  <none>     <none>       (no description available)
un nvidia-legacy- <none>     <none>       (no description available)
un nvidia-prime   <none>     <none>       (no description available)
un nvidia-vdpau-d <none>     <none>       (no description available)

我對 Ubuntu 很陌生;我一周半前開始在 ChromeOS 上使用它,所以一切對我來說都是非常陌生和新鮮的。任何幫助將不勝感激!

答案1

部分答案...正在進行...

步驟1:(重新編輯新增內容,然後重新啟動)

sudo pico /etc/lightdm/lightdm.conf

[LightDM]
[SeatDefaults]
greeter-show-manual-login=true
allow-guest=true
[XDMCPServer]
[VNCServer]

第2步:

  • 以一般使用者登入文字終端
  • 類型ls -al .*thority*
  • 您應該至少看到兩個 .old 文件,如果重新建立的話可能會更多
  • 如果您只看到兩個 .old 文件
    • mv .ICEauthority.old .ICEauthority
    • mv .Xauthority.old .Xauthority

步驟#3:

  • 輸入ls -alt | more -7並顯示前五行(請複製/貼上到您的問題中,而不是註釋中)

步驟4:

  • 類型sudo passwd root
  • 輸入您的管理員密碼
  • 輸入 root 的新密碼兩次
  • 輸入exit,然後 control-alt-f7 返回正常登入畫面
  • 嘗試使用新密碼登入 root

步驟#5:

  • 在正常登入畫面上,使用向上/向下箭頭查看訪客是否出現,以及是否可以登入訪客

步驟#6:

  • 在根帳戶中
  • terminal從破折號開始
  • 編輯個人資料
    • pico .profile或者gedit .profile
  • mesg n || true改成tty -s && mesg n || true
  • 儲存檔案並退出 pico/gedit
  • 登出,重新登入 root 並確認沒有錯誤

相關內容