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

Hossein's questions

Martin Hope
Hossein
Asked: 2022-06-08 18:26:37 +0800 CST

华硕 rog strix z690-a 游戏 wifi d4 在 ubuntu 20.04 中没有声音

  • 0

安装 Ubuntu 20.04 后,我注意到我根本没有声音。我还安装了 22.04 认为可能较新的版本已经解决了这个问题,结果证明是错误的。22.04 也存在这个问题。
这是lspci -v重要的情况下的输出:

hossein@hossein-pc:~$ sudo lspci -v
00:00.0 Host bridge: Intel Corporation Device 4668 (rev 02)
    DeviceName: Onboard - Other
    Subsystem: ASUSTeK Computer Inc. Device 8694
    Flags: bus master, fast devsel, latency 0
    Memory at <ignored> (32-bit, non-prefetchable)

00:01.0 PCI bridge: Intel Corporation Device 460d (rev 02) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 121
    Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
    I/O behind bridge: 00006000-00006fff [size=4K]
    Memory behind bridge: 84000000-850fffff [size=17M]
    Prefetchable memory behind bridge: 0000004000000000-0000004011ffffff [size=288M]
    Capabilities: [40] Express Root Port (Slot+), MSI 00
    Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Capabilities: [98] Subsystem: ASUSTeK Computer Inc. Device 8694
    Capabilities: [a0] Power Management version 3
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [220] Access Control Services
    Capabilities: [150] Precision Time Measurement
    Capabilities: [a30] Secondary PCI Express
    Capabilities: [a90] Data Link Feature <?>
    Capabilities: [a9c] Physical Layer 16.0 GT/s <?>
    Capabilities: [edc] Lane Margining at the Receiver <?>
    Capabilities: [adc] Extended Capability ID 0x2a
    Capabilities: [b0c] Extended Capability ID 0x2b
    Kernel driver in use: pcieport

00:0a.0 Signal processing controller: Intel Corporation Device 467d (rev 01)
    DeviceName: Onboard - Other
    Subsystem: ASUSTeK Computer Inc. Device 8694
    Flags: fast devsel
    Memory at 4014210000 (64-bit, non-prefetchable) [size=32K]
    Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
    Capabilities: [d0] Power Management version 3
    Capabilities: [100] Designated Vendor-Specific <?>
    Capabilities: [110] Designated Vendor-Specific <?>
    Capabilities: [120] Designated Vendor-Specific <?>
    Kernel driver in use: intel-pmt
    Kernel modules: intel_pmt

00:0e.0 RAID bus controller: Intel Corporation Volume Management Device NVMe RAID Controller
    DeviceName: Onboard - Other
    Subsystem: ASUSTeK Computer Inc. Volume Management Device NVMe RAID Controller
    Flags: bus master, fast devsel, latency 0
    Memory at 4012000000 (64-bit, non-prefetchable) [size=32M]
    Memory at 82000000 (32-bit, non-prefetchable) [size=32M]
    Memory at 4014100000 (64-bit, non-prefetchable) [size=1M]
    Capabilities: [80] MSI-X: Enable+ Count=19 Masked-
    Capabilities: [90] Express Root Complex Integrated Endpoint, MSI 00
    Capabilities: [e0] Power Management version 3
    Kernel driver in use: vmd
    Kernel modules: vmd

00:14.0 USB controller: Intel Corporation Device 7ae0 (rev 11) (prog-if 30 [XHCI])
    DeviceName: Onboard - Other
    Subsystem: ASUSTeK Computer Inc. Device 8694
    Flags: bus master, medium devsel, latency 0, IRQ 147
    Memory at 4014200000 (64-bit, non-prefetchable) [size=64K]
    Capabilities: [70] Power Management version 2
    Capabilities: [80] MSI: Enable+ Count=1/8 Maskable- 64bit+
    Capabilities: [90] Vendor Specific Information: Len=14 <?>
    Capabilities: [b0] Vendor Specific Information: Len=00 <?>
    Kernel driver in use: xhci_hcd
    Kernel modules: xhci_pci

00:14.2 RAM memory: Intel Corporation Device 7aa7 (rev 11)
    DeviceName: Onboard - Other
    Subsystem: ASUSTeK Computer Inc. Device 8694
    Flags: fast devsel
    Memory at 4014220000 (64-bit, non-prefetchable) [disabled] [size=16K]
    Memory at 4014229000 (64-bit, non-prefetchable) [disabled] [size=4K]
    Capabilities: [80] Power Management version 3

00:14.3 Network controller: Intel Corporation Device 7af0 (rev 11)
    DeviceName: Onboard - Ethernet
    Subsystem: Intel Corporation Device 0074
    Flags: fast devsel, IRQ 18
    Memory at 401421c000 (64-bit, non-prefetchable) [size=16K]
    Capabilities: [c8] Power Management version 3
    Capabilities: [d0] MSI: Enable- Count=1/1 Maskable- 64bit+
    Capabilities: [40] Express Root Complex Integrated Endpoint, MSI 00
    Capabilities: [80] MSI-X: Enable- Count=16 Masked-
    Capabilities: [100] Latency Tolerance Reporting
    Capabilities: [164] Vendor Specific Information: ID=0010 Rev=0 Len=014 <?>
    Kernel modules: iwlwifi

00:15.0 Serial bus controller [0c80]: Intel Corporation Device 7acc (rev 11)
    DeviceName: Onboard - Other
    Subsystem: ASUSTeK Computer Inc. Device 8694
    Flags: bus master, fast devsel, latency 0, IRQ 27
    Memory at 4014226000 (64-bit, non-prefetchable) [virtual] [size=4K]
    Capabilities: [80] Power Management version 3
    Capabilities: [90] Vendor Specific Information: Len=14 <?>
    Kernel driver in use: intel-lpss
    Kernel modules: intel_lpss_pci

00:15.1 Serial bus controller [0c80]: Intel Corporation Device 7acd (rev 11)
    DeviceName: Onboard - Other
    Subsystem: ASUSTeK Computer Inc. Device 8694
    Flags: bus master, fast devsel, latency 0, IRQ 40
    Memory at 4014227000 (64-bit, non-prefetchable) [virtual] [size=4K]
    Capabilities: [80] Power Management version 3
    Capabilities: [90] Vendor Specific Information: Len=14 <?>
    Kernel driver in use: intel-lpss
    Kernel modules: intel_lpss_pci

00:15.2 Serial bus controller [0c80]: Intel Corporation Device 7ace (rev 11)
    DeviceName: Onboard - Other
    Subsystem: ASUSTeK Computer Inc. Device 8694
    Flags: bus master, fast devsel, latency 0, IRQ 29
    Memory at 4014228000 (64-bit, non-prefetchable) [virtual] [size=4K]
    Capabilities: [80] Power Management version 3
    Capabilities: [90] Vendor Specific Information: Len=14 <?>
    Kernel driver in use: intel-lpss
    Kernel modules: intel_lpss_pci

00:16.0 Communication controller: Intel Corporation Device 7ae8 (rev 11)
    DeviceName: Onboard - Other
    Subsystem: ASUSTeK Computer Inc. Device 8694
    Flags: bus master, fast devsel, latency 0, IRQ 167
    Memory at 4014225000 (64-bit, non-prefetchable) [size=4K]
    Capabilities: [50] Power Management version 3
    Capabilities: [8c] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Capabilities: [a4] Vendor Specific Information: Len=14 <?>
    Kernel driver in use: mei_me
    Kernel modules: mei_me

00:17.0 SATA controller: Intel Corporation Device 7ae2 (rev 11) (prog-if 01 [AHCI 1.0])
    DeviceName: Onboard - SATA
    Subsystem: ASUSTeK Computer Inc. Device 8694
    Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 146
    Memory at 86900000 (32-bit, non-prefetchable) [size=8K]
    Memory at 86903000 (32-bit, non-prefetchable) [size=256]
    I/O ports at 7050 [size=8]
    I/O ports at 7040 [size=4]
    I/O ports at 7020 [size=32]
    Memory at 86902000 (32-bit, non-prefetchable) [size=2K]
    Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
    Capabilities: [70] Power Management version 3
    Capabilities: [a8] SATA HBA v1.0
    Kernel driver in use: ahci
    Kernel modules: ahci

00:1a.0 PCI bridge: Intel Corporation Device 7ac8 (rev 11) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 122
    Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
    I/O behind bridge: 00005000-00005fff [size=4K]
    Memory behind bridge: 85b00000-864fffff [size=10M]
    Prefetchable memory behind bridge: 0000004014300000-00000040144fffff [size=2M]
    Capabilities: [40] Express Root Port (Slot+), MSI 00
    Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Capabilities: [98] Subsystem: ASUSTeK Computer Inc. Device 8694
    Capabilities: [a0] Power Management version 3
    Kernel driver in use: pcieport

00:1c.0 PCI bridge: Intel Corporation Device 7ab8 (rev 11) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 123
    Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
    I/O behind bridge: 00004000-00004fff [size=4K]
    Memory behind bridge: 85100000-85afffff [size=10M]
    Prefetchable memory behind bridge: 0000004014500000-00000040146fffff [size=2M]
    Capabilities: [40] Express Root Port (Slot+), MSI 00
    Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Capabilities: [98] Subsystem: ASUSTeK Computer Inc. Device 8694
    Capabilities: [a0] Power Management version 3
    Kernel driver in use: pcieport

00:1c.1 PCI bridge: Intel Corporation Device 7ab9 (rev 11) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 124
    Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
    I/O behind bridge: 00003000-00003fff [size=4K]
    Memory behind bridge: 86800000-868fffff [size=1M]
    Prefetchable memory behind bridge: [disabled]
    Capabilities: [40] Express Root Port (Slot+), MSI 00
    Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Capabilities: [98] Subsystem: ASUSTeK Computer Inc. Device 8694
    Capabilities: [a0] Power Management version 3
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [220] Access Control Services
    Capabilities: [150] Precision Time Measurement
    Capabilities: [a30] Secondary PCI Express
    Capabilities: [a90] Data Link Feature <?>
    Kernel driver in use: pcieport

00:1c.3 PCI bridge: Intel Corporation Device 7abb (rev 11) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 125
    Bus: primary=00, secondary=05, subordinate=05, sec-latency=0
    I/O behind bridge: [disabled]
    Memory behind bridge: 86500000-866fffff [size=2M]
    Prefetchable memory behind bridge: [disabled]
    Capabilities: [40] Express Root Port (Slot+), MSI 00
    Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Capabilities: [98] Subsystem: ASUSTeK Computer Inc. Device 8694
    Capabilities: [a0] Power Management version 3
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [220] Access Control Services
    Capabilities: [150] Precision Time Measurement
    Capabilities: [a30] Secondary PCI Express
    Capabilities: [a90] Data Link Feature <?>
    Kernel driver in use: pcieport

00:1d.0 PCI bridge: Intel Corporation Device 7ab4 (rev 11) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 126
    Bus: primary=00, secondary=06, subordinate=06, sec-latency=0
    I/O behind bridge: [disabled]
    Memory behind bridge: 86700000-867fffff [size=1M]
    Prefetchable memory behind bridge: [disabled]
    Capabilities: [40] Express Root Port (Slot+), MSI 00
    Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Capabilities: [98] Subsystem: ASUSTeK Computer Inc. Device 8694
    Capabilities: [a0] Power Management version 3
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [220] Access Control Services
    Capabilities: [150] Precision Time Measurement
    Capabilities: [a30] Secondary PCI Express
    Capabilities: [a90] Data Link Feature <?>
    Capabilities: [a9c] Physical Layer 16.0 GT/s <?>
    Capabilities: [edc] Lane Margining at the Receiver <?>
    Kernel driver in use: pcieport

00:1f.0 ISA bridge: Intel Corporation Device 7a84 (rev 11)
    DeviceName: Onboard - Other
    Subsystem: ASUSTeK Computer Inc. Device 8694
    Flags: bus master, fast devsel, latency 0

00:1f.3 Audio device: Intel Corporation Device 7ad0 (rev 11)
    DeviceName: Onboard - Sound
    Subsystem: ASUSTeK Computer Inc. Device 8694
    Flags: bus master, fast devsel, latency 32, IRQ 168
    Memory at 4014218000 (64-bit, non-prefetchable) [size=16K]
    Memory at 4014000000 (64-bit, non-prefetchable) [size=1M]
    Capabilities: [50] Power Management version 3
    Capabilities: [80] Vendor Specific Information: Len=14 <?>
    Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl

00:1f.4 SMBus: Intel Corporation Device 7aa3 (rev 11)
    DeviceName: Onboard - Other
    Subsystem: ASUSTeK Computer Inc. Device 8694
    Flags: medium devsel, IRQ 18
    Memory at 4014224000 (64-bit, non-prefetchable) [size=256]
    I/O ports at efa0 [size=32]
    Kernel driver in use: i801_smbus
    Kernel modules: i2c_i801

00:1f.5 Serial bus controller [0c80]: Intel Corporation Device 7aa4 (rev 11)
    DeviceName: Onboard - Other
    Subsystem: ASUSTeK Computer Inc. Device 8694
    Flags: fast devsel
    Memory at 80800000 (32-bit, non-prefetchable) [size=4K]

01:00.0 VGA compatible controller: NVIDIA Corporation Device 2206 (rev a1) (prog-if 00 [VGA controller])
    Subsystem: Gigabyte Technology Co., Ltd Device 403f
    Flags: bus master, fast devsel, latency 0, IRQ 169
    Memory at 84000000 (32-bit, non-prefetchable) [size=16M]
    Memory at 4000000000 (64-bit, prefetchable) [size=256M]
    Memory at 4010000000 (64-bit, prefetchable) [size=32M]
    I/O ports at 6000 [size=128]
    Expansion ROM at 85000000 [virtual] [disabled] [size=512K]
    Capabilities: [60] Power Management version 3
    Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Capabilities: [78] Express Legacy Endpoint, MSI 00
    Capabilities: [b4] Vendor Specific Information: Len=14 <?>
    Capabilities: [100] Virtual Channel
    Capabilities: [250] Latency Tolerance Reporting
    Capabilities: [258] L1 PM Substates
    Capabilities: [128] Power Budgeting <?>
    Capabilities: [420] Advanced Error Reporting
    Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
    Capabilities: [900] Secondary PCI Express
    Capabilities: [bb0] Resizable BAR <?>
    Capabilities: [c1c] Physical Layer 16.0 GT/s <?>
    Capabilities: [d00] Lane Margining at the Receiver <?>
    Capabilities: [e00] Data Link Feature <?>
    Kernel driver in use: nvidia
    Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia

01:00.1 Audio device: NVIDIA Corporation Device 1aef (rev a1)
    Subsystem: Gigabyte Technology Co., Ltd Device 403f
    Flags: bus master, fast devsel, latency 0, IRQ 17
    Memory at 85080000 (32-bit, non-prefetchable) [size=16K]
    Capabilities: [60] Power Management version 3
    Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
    Capabilities: [78] Express Endpoint, MSI 00
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [160] Data Link Feature <?>
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel

04:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 02) (prog-if 01 [AHCI 1.0])
    Subsystem: ASUSTeK Computer Inc. ASM1062 Serial ATA Controller
    Flags: bus master, fast devsel, latency 0, IRQ 154
    I/O ports at 3050 [size=8]
    I/O ports at 3040 [size=4]
    I/O ports at 3030 [size=8]
    I/O ports at 3020 [size=4]
    I/O ports at 3000 [size=32]
    Memory at 86800000 (32-bit, non-prefetchable) [size=512]
    Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit-
    Capabilities: [78] Power Management version 3
    Capabilities: [80] Express Legacy Endpoint, MSI 00
    Capabilities: [100] Virtual Channel
    Kernel driver in use: ahci
    Kernel modules: ahci

05:00.0 Ethernet controller: Intel Corporation Device 15f3 (rev 03)
    Subsystem: ASUSTeK Computer Inc. Device 87d2
    Flags: bus master, fast devsel, latency 0, IRQ 19
    Memory at 86500000 (32-bit, non-prefetchable) [size=1M]
    Memory at 86600000 (32-bit, non-prefetchable) [size=16K]
    Capabilities: [40] Power Management version 3
    Capabilities: [50] MSI: Enable- Count=1/1 Maskable+ 64bit+
    Capabilities: [70] MSI-X: Enable+ Count=5 Masked-
    Capabilities: [a0] Express Endpoint, MSI 00
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [140] Device Serial Number 04-42-1a-ff-ff-31-84-6b
    Capabilities: [1c0] Latency Tolerance Reporting
    Capabilities: [1f0] Precision Time Measurement
    Capabilities: [1e0] L1 PM Substates
    Kernel driver in use: igc
    Kernel modules: igc

06:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd Device a809 (prog-if 02 [NVM Express])
    Subsystem: Samsung Electronics Co Ltd Device a801
    Flags: bus master, fast devsel, latency 0, IRQ 16, NUMA node 0
    Memory at 86700000 (64-bit, non-prefetchable) [size=16K]
    Capabilities: [40] Power Management version 3
    Capabilities: [50] MSI: Enable- Count=1/32 Maskable- 64bit+
    Capabilities: [70] Express Endpoint, MSI 00
    Capabilities: [b0] MSI-X: Enable+ Count=13 Masked-
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [148] Device Serial Number 00-00-00-00-00-00-00-00
    Capabilities: [158] Power Budgeting <?>
    Capabilities: [168] Secondary PCI Express
    Capabilities: [188] Latency Tolerance Reporting
    Capabilities: [190] L1 PM Substates
    Kernel driver in use: nvme
    Kernel modules: nvme

如您所见,似乎检测到了音频设备,但仍然没有任何声音!
我该如何解决这个问题?

更新1:

我注意到后面板的声音似乎还可以,但前面板没有声音。我检查了前面板和后面板在windows下都有声音,但前面板仅在ubuntu中不起作用!这怎么可能?这仍然是驱动程序问题吗?

20.04
  • 2 个回答
  • 321 Views
Martin Hope
Hossein
Asked: 2018-04-18 12:29:23 +0800 CST

为什么我得到“/sbin/ldconfig.real: /usr/local/cuda/lib64/libcudnn.so.7 不是符号链接”?

  • 26

安装CUDA工具包并cuDNN成功安装后没有任何问题,每当我这样做时:

sudo ldconfig 

我得到:

/sbin/ldconfig.real: /usr/local/cuda/lib64/libcudnn.so.7 is not a symbolic link

错误信息。
是什么原因,我该如何解决?

顺便说一句,我是这样安装cuDNN的:

 # cuDNN, extracts to a folder named cuda
 tar xvf cudnn*.tgz  
 cd cuda  
 sudo cp lib64/* /usr/local/cuda/lib64
 sudo cp include/* /usr/local/cuda/include

ls -lha libcudnn*in的输出/usr/local/cuda/lib64如下:

breeze@breeze:/usr/local/cuda/lib64$ ls -lha libcudnn*
-rwxr-xr-x 1 root root 275M آوریل 15 12:03 libcudnn.so
-rwxr-xr-x 1 root root 275M آوریل 15 12:03 libcudnn.so.7
-rwxr-xr-x 1 root root 275M آوریل 15 12:03 libcudnn.so.7.0.5
-rw-r--r-- 1 root root 268M آوریل 15 12:03 libcudnn_static.a
nvidia cuda 16.04
  • 2 个回答
  • 38973 Views
Martin Hope
Hossein
Asked: 2018-04-12 09:00:16 +0800 CST

如何以文本模式录制屏幕(或截屏)?

  • 5

基本上我想捕捉在 Ubuntu 中安装驱动程序的过程,以便稍后观看。

有诸如 SimpleScreenRecorder 之类的屏幕捕获应用程序,但它们无法在文本模式下工作,因为当我停止 LightDM 时没有显示驱动程序。

还有一个可以让我们在文本模式下截屏,但我想知道当我切换到+ +fbcat时,是否有什么可以用来截屏的?CtrlAltF2

virtual-console screencast
  • 3 个回答
  • 1361 Views
Martin Hope
Hossein
Asked: 2016-11-29 08:02:19 +0800 CST

我可以安装两个 Cuda 工具包并同时使用它们吗?

  • 5

我想知道我是否可以轻松安装多个 Cuda 工具包并使用它们。
原因是,我有两个应用程序,需要两个不同的版本。
现在如果我创建两个用户帐户,并在每个帐户中安装每个版本,可以吗?
我的意思是它们不会影响整个系统并因此影响其他帐户吗?
我可以在一个帐户中执行此操作吗?

提前致谢

14.04
  • 1 个回答
  • 2480 Views
Martin Hope
Hossein
Asked: 2016-10-30 10:29:37 +0800 CST

运行简单的 bash 脚本失败并出现语法错误:单词意外(期望“)”)

  • 0

我正在尝试像这样在 ubuntu14.04 中安装 Anaconda3:

seyyedhossein@hossein:~$ sh Anaconda3-4.2.0-Linux-x86_64.sh 

我得到:

Anaconda3-4.2.0-Linux-x86_64.sh: 16: Anaconda3-4.2.0-Linux-x86_64.sh: 0: not found
Anaconda3-4.2.0-Linux-x86_64.sh: 61: Anaconda3-4.2.0-Linux-x86_64.sh: 0: not found
Anaconda3-4.2.0-Linux-x86_64.sh: 75: Anaconda3-4.2.0-Linux-x86_64.sh: Syntax error: word unexpected (expecting ")")

这里有什么问题?
我已成功将其安装在另一个帐户(最初是从该帐户下载的)上。但是当我登录到我的新帐户时,它就无法运行!

更新:
cat 命令的输出:

#!/bin/bash
# Copyright (c) 2012-2016 Continuum Analytics, Inc.
# All rights reserved.
#
# Name: Anaconda3
# Version: 4.2.0
# Packages: 195
# PLAT:  linux-64
# DESCR: 4.1.1-889-g7ce9b7f
# BYTES: 478051940
# LINES: 558
# MD5:   1ee1f5cb1d92a230e59cc5fce0dca5ba

unset LD_LIBRARY_PATH
echo "$0" | grep '\.sh$' >/dev/null
if (( $? )); then
    echo 'Please run using "bash" or "sh", but not "." or "source"' >&2
    return 1
fi

THIS_DIR=$(cd $(dirname $0); pwd)
THIS_FILE=$(basename $0)
THIS_PATH="$THIS_DIR/$THIS_FILE"
PREFIX=$HOME/anaconda3
BATCH=0
FORCE=0

while getopts "bfhp:" x; do
    case "$x" in
        h)
            echo "usage: $0 [options]

Installs Anaconda3 4.2.0

    -b           run install in batch mode (without manual intervention),
                 it is expected the license terms are agreed upon
    -f           no error if install prefix already exists (force)
    -h           print this help message and exit
    -p PREFIX    install prefix, defaults to $PREFIX
"
            exit 2
            ;;
        b)
            BATCH=1
            ;;
        f)
            FORCE=1
            ;;
        p)
            PREFIX="$OPTARG"
            ;;
        ?)
            echo "Error: did not recognize option, please try -h"
            exit 1
            ;;
    esac
done

# verify the size of the installer
wc -c "$THIS_PATH" | grep 478051940 >/dev/null
if (( $? )); then
    echo "ERROR: size of $THIS_FILE should be 478051940 bytes" >&2
    exit 1
fi

if [[ $BATCH == 0 ]] # interactive mode
then
    if [[ `uname -m` != 'x86_64' ]]; then
        echo -n "WARNING:
    Your operating system appears not to be 64-bit, but you are trying to
    install a 64-bit version of Anaconda3.
    Are sure you want to continue the installation? [yes|no]
[no] >>> "
        read ans
        if [[ ($ans != "yes") && ($ans != "Yes") && ($ans != "YES") &&
              ($ans != "y") && ($ans != "Y") ]]
14.04
  • 3 个回答
  • 22870 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