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

Soheil Paper's questions

Martin Hope
Soheil Paper
Asked: 2021-09-16 08:56:23 +0800 CST

双引导和“锁定”硬盘驱动器(GParted 修复失败,Windows chdsk 在启动时挂起!)

  • 0

我的电脑上有两个 Ubuntu(18.04 和 20.04)和一个 windows8,所以我在大约一年没有使用它之后运行了我的 windows,我的一个硬盘驱动器已被锁定,我无法在其上写入文件,所以我无法通过以下过程在我的 Ubuntu 中通过 GParted 修复磁盘:

在此处输入图像描述

所以我在我的windows中尝试了这个chkdsk命令,但没有成功,所以我让windows自行重启并在它的启动页面上尝试磁盘修复,现在它挂在35%的磁盘修复上,类似于下图的Windows差异版本和修复百分比(搜索链接):

在此处输入图像描述

如果可能的话,我希望有一些评论或答案来解决我的电脑中的这个问题。

更新1:

我有这台电脑几乎是 2016 年的,我猜硬盘驱动器不是太旧,关于硬盘驱动器及其内容文件的更多信息,可以在下面看到:

在此处输入图像描述

so@so-Lenovo-ideapad-310-15IKB:~$ sudo hdparm -I /dev/sda  
[sudo] password for so: 

/dev/sda:

ATA device, with non-removable media
    Model Number:       ST2000LM003 HN-M201RAD                  
    Serial Number:      S379J9EH703494      
    Firmware Revision:  2BE10001
    Transport:          Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
Standards:
    Used: unknown (minor revision code 0x0028) 
    Supported: 8 7 6 5 
    Likely used: 8
Configuration:
    Logical     max current
    cylinders   16383   0
    heads       15  0
    sectors/track   63  0
    --
    LBA    user addressable sectors:   268435455
    LBA48  user addressable sectors:  3907029168
    Logical  Sector size:                   512 bytes
    Physical Sector size:                  4096 bytes
    Logical Sector-0 offset:                  0 bytes
    device size with M = 1024*1024:     1907729 MBytes
    device size with M = 1000*1000:     2000398 MBytes (2000 GB)
    cache/buffer size  = unknown
    Form Factor: 2.5 inch
    Nominal Media Rotation Rate: 5400
Capabilities:
    LBA, IORDY(can be disabled)
    Queue depth: 32
    Standby timer values: spec'd by Standard, no device specific minimum
    R/W multiple sector transfer: Max = 16  Current = ?
    Advanced power management level: 254
    Recommended acoustic management value: 254, current value: 0
    DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5 
         Cycle time: min=120ns recommended=120ns
    PIO: pio0 pio1 pio2 pio3 pio4 
         Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
    Enabled Supported:
       *    SMART feature set
            Security Mode feature set
       *    Power Management feature set
       *    Write cache
       *    Look-ahead
       *    Host Protected Area feature set
       *    WRITE_BUFFER command
       *    READ_BUFFER command
       *    NOP cmd
       *    DOWNLOAD_MICROCODE
       *    Advanced Power Management feature set
            Power-Up In Standby feature set
            SET_MAX security extension
            Automatic Acoustic Management feature set
       *    48-bit Address feature set
       *    Device Configuration Overlay feature set
       *    Mandatory FLUSH_CACHE
       *    FLUSH_CACHE_EXT
       *    SMART error logging
       *    SMART self-test
       *    General Purpose Logging feature set
       *    64-bit World wide name
       *    IDLE_IMMEDIATE with UNLOAD
       *    WRITE_UNCORRECTABLE_EXT command
       *    {READ,WRITE}_DMA_EXT_GPL commands
       *    Segmented DOWNLOAD_MICROCODE
       *    Gen1 signaling speed (1.5Gb/s)
       *    Gen2 signaling speed (3.0Gb/s)
       *    Gen3 signaling speed (6.0Gb/s)
       *    Native Command Queueing (NCQ)
       *    Host-initiated interface power management
       *    Phy event counters
       *    Idle-Unload when NCQ is active
       *    Device-initiated interface power management
       *    Software settings preservation
       *    SMART Command Transport (SCT) feature set
       *    SCT Read/Write Long (AC1), obsolete
       *    SCT Write Same (AC2)
       *    SCT Error Recovery Control (AC3)
       *    SCT Features Control (AC4)
       *    SCT Data Tables (AC5)
       *    DOWNLOAD MICROCODE DMA command
Security: 
    Master password revision code = 65534
        supported
    not enabled
    not locked
        frozen
    not expired: security count
        supported: enhanced erase
    352min for SECURITY ERASE UNIT. 352min for ENHANCED SECURITY ERASE UNIT.
Logical Unit WWN Device Identifier: 50004cf2126633e7
    NAA     : 5
    IEEE OUI    : 0004cf
    Unique ID   : 2126633e7
Checksum: correct

更新 2:

我已经尝试了 commnets 写的Curtis Gedak并得到了 belwo reprot: 在此处输入图像描述

sudo smartctl -a /dev/sda
[sudo] password for so: 
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-5.4.0-74-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Samsung SpinPoint M9T
Device Model:     ST2000LM003 HN-M201RAD
Serial Number:    S379J9EH703494
LU WWN Device Id: 5 0004cf 2126633e7
Firmware Version: 2BE10001
User Capacity:    2,000,398,934,016 bytes [2.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      2.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 6
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Wed Sep 22 09:05:07 2021 +0330
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
                    was never started.
                    Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0) The previous self-test routine completed
                    without error or no self-test has ever 
                    been run.
Total time to complete Offline 
data collection:        (22020) seconds.
Offline data collection
capabilities:            (0x5b) SMART execute Offline immediate.
                    Auto Offline data collection on/off support.
                    Suspend Offline collection upon new
                    command.
                    Offline surface scan supported.
                    Self-test supported.
                    No Conveyance Self-test supported.
                    Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                    power-saving mode.
                    Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                    General Purpose Logging supported.
Short self-test routine 
recommended polling time:    (   1) minutes.
Extended self-test routine
recommended polling time:    ( 367) minutes.
SCT capabilities:          (0x003f) SCT Status supported.
                    SCT Error Recovery Control supported.
                    SCT Feature Control supported.
                    SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   100   100   051    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0026   252   252   000    Old_age   Always       -       0
  3 Spin_Up_Time            0x0023   092   083   025    Pre-fail  Always       -       2574
  4 Start_Stop_Count        0x0032   096   096   000    Old_age   Always       -       4099
  5 Reallocated_Sector_Ct   0x0033   252   252   010    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002e   252   252   051    Old_age   Always       -       0
  8 Seek_Time_Performance   0x0024   252   252   015    Old_age   Offline      -       0
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       13352
 10 Spin_Retry_Count        0x0032   252   252   051    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   096   096   000    Old_age   Always       -       4155
191 G-Sense_Error_Rate      0x0022   252   252   000    Old_age   Always       -       0
192 Power-Off_Retract_Count 0x0022   252   252   000    Old_age   Always       -       0
194 Temperature_Celsius     0x0002   062   023   000    Old_age   Always       -       38 (Min/Max 12/77)
195 Hardware_ECC_Recovered  0x003a   100   100   000    Old_age   Always       -       0
196 Reallocated_Event_Count 0x0032   252   252   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   252   252   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   252   252   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0036   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x002a   100   100   000    Old_age   Always       -       1732
223 Load_Retry_Count        0x0032   100   100   000    Old_age   Always       -       285
225 Load_Cycle_Count        0x0032   097   097   000    Old_age   Always       -       37098
241 Total_LBAs_Written      0x0032   091   087   000    Old_age   Always       -       12729601
242 Total_LBAs_Read         0x0032   089   086   000    Old_age   Always       -       15326794

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%      5780         -

SMART Selective self-test log data structure revision number 0
Note: revision number not 1 implies that no selective self-test has ever been run
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Completed [00% left] (0-65535)
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

同样通过看到这篇文章,我尝试了 ubuntu 的磁盘实用程序应用程序并得到以下报告:

file system ntfs on ST2000LM003 HN-M201RAD is damaged

在此处输入图像描述 谢谢。

dual-boot
  • 1 个回答
  • 80 Views
Martin Hope
Soheil Paper
Asked: 2021-06-30 04:17:45 +0800 CST

关于无需 IP 即可从 Ubuntu 远程控制另一个 Ubuntu 桌面

  • 0

我需要远程控制一台 PC(Ubuntu OS),所以现在我正在使用AnyDesk应用程序,但要控制 PC 需要确认新请求。

所以我通过这个帖子指令尝试了 Remmina:

如何从 Ubuntu 远程控制另一个 Ubuntu 桌面?

但是随着目标PC的IP发生变化(动态IP),我很难得到目标PC IP并添加到Remmina应用程序上。

所以我在这里要求找到一些远程控制Ubuntu PC的方法,不需要有它的IP,也不需要每次都确认请求。

谢谢。

networking
  • 1 个回答
  • 46 Views
Martin Hope
Soheil Paper
Asked: 2020-11-11 12:32:23 +0800 CST

chrome://flags/ 处没有 ignore-gpu-blacklist(Chrome 会导致奇怪的闪烁)

  • 3

我有类似的帖子问题:

在 Ubuntu 20.04 上挂起计算机后 Chrome 浏览器出现问题

在此处输入图像描述

所以我改变了这个帖子指令vulkan的基础,如下所示:

In my case, I go to chrome://flags/

Then enable:

#ignore-gpu-blacklist
#enable-vulkan

但我找不到ignore-gpu-blacklist通过我的 chrome 设置,如下所示:

在此处输入图像描述

关于我的操作系统的一些信息:

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.5 LTS
Release:    18.04
Codename:   bionic

在此处输入图像描述

About Chrome
Chrome logo
Google Chrome
Version 86.0.4240.183 (Official Build) (64-bit)

谢谢。

nvidia suspend google-chrome
  • 1 个回答
  • 3901 Views
Martin Hope
Soheil Paper
Asked: 2020-05-17 23:10:01 +0800 CST

启动 pomodoro gnome 任务后自动播放音乐

  • 2

我已经安装了gnome pomodoro插件,因此它对每个任务都具有操作能力,如下所示:

在此处输入图像描述

所以我喜欢在番茄钟期间随机选择随机播放从一个保存的播放列表中播放音乐。我有这样的 VLC 播放列表:

在此处输入图像描述

我怎样才能完成这项工作?

谢谢

gnome music vlc
  • 1 个回答
  • 197 Views
Martin Hope
Soheil Paper
Asked: 2020-04-29 09:53:56 +0800 CST

手动关机后wifi驱动丢失

  • 0

我的 Ubuntu 在运行 Android 的 VirtualBox 版本时停止,所以我关闭了系统。

根据this previous question,现在ti可以登录到Ubuntu OS,但是获取WiFi驱动程序的问题并且当我运行ifconfig它时显示WiFi数据,

所以我尝试通过以下代码从 live USB Ubuntu 安装 WiFi 驱动程序:

sudo apt remove broadcom-sta-dkms bcmwl-kernel-source
sudo add-apt-repository restricted
sudo apt update
sudo apt-get install bcmwl-kernel-source
sudo apt-get install linux-generic
sudo apt autoremove

并通过现场 USB 环境显示它已安装:


root@ubuntu:/# ifconfig
enp1s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether c8:5b:76:8b:3e:ae  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 4589  bytes 386757 (386.7 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4589  bytes 386757 (386.7 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.100  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::1153:1820:27de:5a87  prefixlen 64  scopeid 0x20<link>
        ether c8:3d:d4:3c:23:63  txqueuelen 1000  (Ethernet)
        RX packets 32549  bytes 35889892 (35.8 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 25157  bytes 3314860 (3.3 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


现在它通过 Ubuntu live CD 显示 WiFi,sudo chroot /mnt/如下所示:

root@ubuntu:/# lspci
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 02)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02)
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1)
00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #6 (rev f1)
00:1d.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #9 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-LP LPC Controller (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10)
02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821AE 802.11ac PCIe Wireless Network Adapter
03:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 920MX] (rev a2)
root@ubuntu:/# iwconfig
lo        no wireless extensions.

wlp2s0    IEEE 802.11  ESSID:"TP-LINK_4AD2"  
          Mode:Managed  Frequency:2.447 GHz  Access Point: D4:6E:0E:45:4A:D2   
          Bit Rate=72.2 Mb/s   Tx-Power=20 dBm   
          Retry short limit:7   RTS thr=2347 B   Fragment thr:off
          Encryption key:off
          Power Management:on
          Link Quality=48/70  Signal level=-62 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:303   Missed beacon:0

enp1s0    no wireless extensions.

但不通过我电脑中的主 Ubuntu 显示此设置,并且无法在那里连接到互联网?

主 Ubuntu 从 live USB 获取的版本是这样的:

ubuntu@ubuntu:~$  cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.3 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.3 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

更新: 还可以通过 live USB Ubuntu 版本获取此输出:

root@ubuntu:/etc/modprobe.d# sudo ifup wlp2s0
Unknown interface wlp2s0

root@ubuntu:/etc/modprobe.d# sudo modprobe rtl8821ae
modprobe: FATAL: Module rtl8821ae not found in directory /lib/modules/5.0.0-23-generic

根据这篇文章检查我是否安装了驱动程序:

root@ubuntu:/etc/modprobe.d# modinfo rtl8821ae
modinfo: ERROR: Module rtl8821ae not found.
root@ubuntu:/etc/modprobe.d# find /lib/modules/$(uname -r)/kernel/drivers/net/wireless -name '*.ko'
find: ‘/lib/modules/5.0.0-23-generic/kernel/drivers/net/wireless’: No such file or directory

并形成这篇文章:

root@ubuntu:~/rtlwifi_new#     sudo modprobe rtl8821ae
modprobe: FATAL: Module rtl8821ae not found in directory /lib/modules/5.0.0-23-generic
root@ubuntu:~/rtlwifi_new# dmesg | tail
\[ 2975.493281] nouveau 0000:03:00.0: fifo: fault 01 [WRITE] at 0000000000100000 engine 04 [BAR1] client 08 [HUB/HOST_CPU_NB] reason cc [] on channel -1 [007fce7000 unknown]
[ 2981.742904] nouveau 0000:03:00.0: fifo: fault 01 [WRITE] at 0000000000000000 engine 04 [BAR1] client 08 [HUB/HOST_CPU_NB] reason cc [] on channel -1 [007fce7000 unknown]
[ 2981.743002] nouveau 0000:03:00.0: fifo: fault 00 [READ] at 0000000000100000 engine 04 [BAR1] client 07 [HUB/HOST_CPU] reason 4c [] on channel -1 [007fce7000 unknown]
[ 2981.743029] nouveau 0000:03:00.0: fifo: DROPPED_MMU_FAULT 00000000
[ 2996.797871] nouveau 0000:03:00.0: fifo: fault 01 [WRITE] at 0000000000050000 engine 05 [BAR2] client 08 [HUB/HOST_CPU_NB] reason ca [] on channel -1 [007fd38000 unknown]
[ 2996.803470] nouveau 0000:03:00.0: fifo: fault 01 [WRITE] at 0000000000100000 engine 04 [BAR1] client 08 [HUB/HOST_CPU_NB] reason cc [] on channel -1 [007fce7000 unknown]
[ 3003.054698] nouveau 0000:03:00.0: fifo: fault 01 [WRITE] at 0000000000000000 engine 04 [BAR1] client 08 [HUB/HOST_CPU_NB] reason cc [] on channel -1 [007fce7000 unknown]
[ 3003.054924] nouveau 0000:03:00.0: fifo: fault 00 [READ] at 0000000000100000 engine 04 [BAR1] client 07 [HUB/HOST_CPU] reason 4c [] on channel -1 [007fce7000 unknown]
[ 3003.054966] nouveau 0000:03:00.0: fifo: DROPPED_MMU_FAULT 00000000
[ 3513.772212] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)

谢谢。

networking wireless drivers
  • 1 个回答
  • 68 Views
Martin Hope
Soheil Paper
Asked: 2020-04-16 08:15:04 +0800 CST

如何在 Ubuntu 中删除和安装新版本的 Easyeda

  • 1

我遇到了 Easy Easyeda的问题,就像我打开它时只显示这样的白屏:

在此处输入图像描述

所以我喜欢通过这个命令安装新版本的Easyeda,我喜欢删除它,所以我尝试了:

so@so-notebook:~$ sudo easyeda
[sudo] password for so: 
sudo: easyeda: command not found
so@so-notebook:~$ sudo easyeda
sudo: easyeda: command not found
so@so-notebook:~$ sudo apt-get purge easyeda
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package easyeda

ant is 现在位于软件中心和突触应用程序中,如下所示:

在此处输入图像描述

所以想知道我必须从哪里删除它?

更新:

我下载了文件,发现 readme.txt 给了我这样的安装和卸载说明:


Install:

1.Excute the Terminal at the decompress folder, normally hotkey CTRL+ALT+T. 
You don't need to decompress the easyeda-linux-x64.zip file.

2.Input a command at the terminal
sudo bash install.sh

3.Enter, and input the login password of your operation system, enter.

4.Waiting for installing finish. After finish, you can find it on your system


Uninstall:

1.Input a command at the terminal
sudo bash uninstall.sh

2.Enter, and input the login password of your operation system, enter.

3.Waiting for uninstalling finish.



----------------- update record -------------

v2.0.0

First release

所以它就像我这样工作: 在此处输入图像描述 但我想知道我是否不知道这个文件,也不知道它是主要下载的 zip 文件的位置,如何卸载它?

谢谢。

package-management software-center apt
  • 1 个回答
  • 895 Views
Martin Hope
Soheil Paper
Asked: 2020-03-18 12:54:59 +0800 CST

在 Ubuntu tty2 登录模式下更改语言

  • 1

我有这种登录问题:

启动作业正在运行,直到启动过程完成(Xmin Xs/无限制)

当我按Alt+ Shift+F2时,它会进入登录页面,问题是我无法将语言从波斯语更改为英语以插入我的用户并通过。

我已经通过按Ctrl++在ShiftUbuntu上更改了语言Alt,但它在这里不起作用。

那么如何在这种模式下更改语言?

更新: 我有这个问题提前启动选项(安全模式),grub ...

我还尝试通过按住(如果我没记错的话)“小键盘上的Alt+ 122”在 dpkg 修复选项中键入英语是来切换语言。

login tty system-language
  • 1 个回答
  • 1388 Views
Martin Hope
Soheil Paper
Asked: 2020-02-02 08:05:09 +0800 CST

/bin/sh: 1: 语法错误:未终止的带引号的字符串 <builtin>:目标“wfdbinit.o”的配方在 WFDB 八度工具箱安装中失败

  • 0

我需要通过 EEG 信号工作,并尝试使用来自 physionet站点的WFDB,因此根据它的readme.MD文件,我尝试执行以下操作:

$ sudo apt-get install gcc libcurl4-openssl-dev perl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gcc is already the newest version (4:7.4.0-1ubuntu2.3).
libcurl4-openssl-dev is already the newest version (7.58.0-2ubuntu3.8).
perl is already the newest version (5.26.1-6ubuntu0.3).
0 upgraded, 0 newly installed, 0 to remove and 99 not upgraded.

当我尝试时sudo make,我得到这个输出:

$ sudo ./configure
Checking the operating system type ...
Configuring the WFDB software package for Linux-64.
Checking the echo command ...

Looking for the C compiler ... gcc
Looking for the command to strip debugging metadata ... strip
The WFDB software will be installed in '/usr/local'.
The manual pages will be installed in '/usr/local/share/man'.

Looking for libcurl ... found
The WFDB software will be compiled with NETFILES access
using libcurl.

Creating Makefile in lib ...
Creating Makefile in app ...
Creating Makefile in checkpkg ...
Creating Makefile in convert ...
Creating Makefile in data ...
Creating Makefile in doc ...
Creating Makefile in doc/wag-src ...
Creating Makefile in doc/wpg-src ...
Creating Makefile in doc/wug-src ...
Creating Makefile in examples ...
Creating Makefile in fortran ...
Creating Makefile in psd ...
Creating Makefile in wave ...
Creating Makefile in waverc ...
Creating Makefile in xml ...
Creating Makefile in . ...
rm conf/site.def conf/site-slib.def

IMPORTANT: You have chosen to build a dynamic (shared) WFDB library in
a directory, /usr/local/lib, that is not normally searched for such
libraries.  In order to use the applications that will be compiled
with this library, it may be necessary to add this directory to your
LD_LIBRARY_PATH.  If your shell is csh or a variant, do this by
typing:
  setenv LD_LIBRARY_PATH /usr/local/lib
Otherwise, do this by typing:
  LD_LIBRARY_PATH=/usr/local/lib
  export LD_LIBRARY_PATH

Summary:

wfdb-10.6.2-Linux-64 is now ready to be compiled using 'gcc'.
The WFDB library will be compiled as a dynamic library with NETFILES
 access via libcurl, and it will be installed in '/usr/local/lib'.
The WFDB library .h files will be installed in '/usr/local/include/wfdb'.
The WFDB applications will be linked to dynamic system libraries, and
 they will be installed in '/usr/local/bin'.
WAVE will not be compiled.
Manual pages will be installed in subdirectories of '/usr/local/share/man'.
Sample data files will be installed in '/usr/local/database', which
 will be included in the default WFDB path.

If you need to compile a different WFDB library type, or install into different
directories, rerun this script with its "-i" (interactive) option:
      ./configure -i
Other options can be viewed by rerunning this script with its "-h" option:
      ./configure -h

WFDB software configuration is complete.
Now run 'make' to compile and test, followed by 'make install' to recompile
and install the software, man pages, and example data.  Finally, run
'make check' to verify that the installation is complete and successful.

so@so-notebook:/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2$ sudo make 
make WFDBROOT=`pwd`/build LIBDIR=`pwd`/build/lib install
make[1]: Entering directory '/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2'
cd lib;      make clean; make install
make[2]: Entering directory '/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2/lib'
rm -f wfdbinit.o annot.o signal.o calib.o wfdbio.o libwfdb.* *.dll *~
make[2]: Leaving directory '/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2/lib'
make[2]: Entering directory '/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2/lib'
make clean      # force recompilation since config may have changed
make[3]: Entering directory '/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2/lib'
rm -f wfdbinit.o annot.o signal.o calib.o wfdbio.o libwfdb.* *.dll *~
make[3]: Leaving directory '/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2/lib'
make all
make[3]: Entering directory '/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2/lib'
make setup
make[4]: Entering directory '/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2/lib'
sed "s+DBDIR+/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2/build/database+" <wfdblib.h0 >wfdblib.h
make[4]: Leaving directory '/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2/lib'
make wfdbinit.o annot.o signal.o calib.o wfdbio.o
make[4]: Entering directory '/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2/lib'
gcc -Wno-implicit -Wformat  -fpic -g -O -DWFDB_MAJOR=10 -DWFDB_MINOR=6 -DWFDB_RELEASE=2 `curl-config --cflags` -I/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2/build/include   -c -o wfdbinit.o wfdbinit.c
/bin/sh: 1: Syntax error: Unterminated quoted string
<builtin>: recipe for target 'wfdbinit.o' failed
make[4]: *** [wfdbinit.o] Error 2
make[4]: Leaving directory '/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2/lib'
Makefile:224: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2/lib'
Makefile:230: recipe for target 'install' failed
make[2]: *** [install] Error 2
make[2]: Leaving directory '/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2/lib'
Makefile:268: recipe for target 'install' failed
make[1]: *** [install] Error 2
make[1]: Leaving directory '/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2'
Makefile:263: recipe for target 'all' failed
make: *** [all] Error 2

基于此的更多信息:

安装 gcc、libcurl 和 perl(需要 root 权限)。使用命令检查它们是否已安装

gcc --version 
curl-config --version
perl --version

如果这些命令有效,请跳到下一步。否则,在 Fedora 和其他基于 RPM 的 GNU/Linux 发行版上,命令

$ gcc --version
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

so@so-notebook:/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2$ curl-config --version
libcurl 7.58.0
so@so-notebook:/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2$ perl --version

This is perl 5, version 26, subversion 1 (v5.26.1) built for x86_64-linux-gnu-thread-multi
(with 67 registered patches, see perl -V for more detail)

Copyright 1987-2017, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

所以在这里问这个问题。

谢谢。

software-installation octave 18.04
  • 1 个回答
  • 3019 Views
Martin Hope
Soheil Paper
Asked: 2019-12-27 03:10:01 +0800 CST

向下滚动工具栏图标时,Ubuntu 打印屏幕不起作用

  • -2

当 UGet 下载管理器工具栏图标向下滚动时,我无法获取屏幕截图,如下所示:

在此处输入图像描述

但是在这种情况下的 Firefox 中,当我按下 PrtSc 按钮时,它会关闭工具栏图标并像这样运行屏幕截图:

在此处输入图像描述

感谢您的关注。

icons screenshot
  • 1 个回答
  • 52 Views
Martin Hope
Soheil Paper
Asked: 2019-12-15 02:35:15 +0800 CST

我必须从列表中的系统设置>>软件和更新>>其他软件中删除一些重复的条目吗?

  • 0

我有一些这样的重复条目:

在此处输入图像描述

所以必须删除一些与结尾文本重复的条目:... main和... main source Code吗?

感谢您的关注。

duplicate
  • 1 个回答
  • 41 Views
Martin Hope
Soheil Paper
Asked: 2019-12-14 23:33:02 +0800 CST

如何摆脱挂起的 Ubuntu 操作系统?

  • 26

我对 Ubuntu 的一个问题是,当我的 PC 超载时,我的 Ubuntu 系统挂起,我试图通过手动打开 CD-ROM 驱动器来强制中断并访问系统监视器以关闭某些任务来让它响应。

在 Windows 中,当这种情况发生时,我通常可以通过按Ctrl++切换到任务管理器来逃避它,这通常Alt会让Del我摆脱挂起的情况。

所以,我想知道:我可以用 Ubuntu 做些什么来摆脱挂起的情况(就像在 Windows 上按Ctrl++ Alt) ?Del

更新:

根据@Grumpy_Old_Man信息请求:

您使用的是什么处理器以及它的使用年限。早期的 Ryzen CPU 存在一个已知问题,它在低负载下挂起。 bugzilla.kernel.org/show_bug.cgi?id=196683

我的 CPU 信息:

$ cat /proc/cpuinfo
processor   : 0
vendor_id   : GenuineIntel
cpu family  : 6
model       : 142
model name  : Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
stepping    : 9
microcode   : 0xca
cpu MHz     : 3278.317
cache size  : 4096 KB
physical id : 0
siblings    : 4
core id     : 0
cpu cores   : 2
apicid      : 0
initial apicid  : 0
fpu     : yes
fpu_exception   : yes
cpuid level : 22
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d
bugs        : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
bogomips    : 5808.00
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

processor   : 1
vendor_id   : GenuineIntel
cpu family  : 6
model       : 142
model name  : Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
stepping    : 9
microcode   : 0xca
cpu MHz     : 3274.188
cache size  : 4096 KB
physical id : 0
siblings    : 4
core id     : 1
cpu cores   : 2
apicid      : 2
initial apicid  : 2
fpu     : yes
fpu_exception   : yes
cpuid level : 22
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single pti tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp
bugs        : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
bogomips    : 5808.00
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

processor   : 2
vendor_id   : GenuineIntel
cpu family  : 6
model       : 142
model name  : Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
stepping    : 9
microcode   : 0xca
cpu MHz     : 3271.793
cache size  : 4096 KB
physical id : 0
siblings    : 4
core id     : 0
cpu cores   : 2
apicid      : 1
initial apicid  : 1
fpu     : yes
fpu_exception   : yes
cpuid level : 22
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d
bugs        : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
bogomips    : 5808.00
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

processor   : 3
vendor_id   : GenuineIntel
cpu family  : 6
model       : 142
model name  : Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
stepping    : 9
microcode   : 0xca
cpu MHz     : 3285.540
cache size  : 4096 KB
physical id : 0
siblings    : 4
core id     : 1
cpu cores   : 2
apicid      : 3
initial apicid  : 3
fpu     : yes
fpu_exception   : yes
cpuid level : 22
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d
bugs        : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
bogomips    : 5808.00
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

还有我的 Ubuntu 信息:

 hostnamectl
   Static hostname: so-notebook
         Icon name: computer-laptop
           Chassis: laptop
        Machine ID: 34a2eb65afa64d60a60ed02d972e884d
           Boot ID: 9ee34ad4bff84b908e8719ab83029836
  Operating System: Ubuntu 18.04.3 LTS
            Kernel: Linux 5.0.0-37-generic
      Architecture: x86-64

performance cpu
  • 7 个回答
  • 4110 Views

Sidebar

Stats

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

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

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

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve