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

Rick T's questions

Martin Hope
Rick T
Asked: 2023-06-21 02:05:02 +0800 CST

使用 nmcli 在 ubuntu 中切换网络的脚本

  • 7

我正在尝试使用nmcli使用 bash 文件在已填充的网络之间进行切换,但我得到了无意义的数据。

不过废话少说

1) 0
#? 0

代码如下。

#!/bin/bash

# Pre-populated UUID data for network connections
networks=(
    ["tr_5"]="127f3e9e-34dd-444e-aee4-7c2b35c7c307"
    ["VC_HotSpot_6"]="c498aa6a-24d4-4b51-92c7-9b8d84181fc1"
    ["Network_3"]="34567890-3456-3456-3456-345678901234"
)

# List available network connections
echo "Available network connections:"
nmcli connection show

# Prompt the user to choose a network
echo "Select the network to connect to:"
select network_name in "${!networks[@]}"; do
    if [[ -n $network_name ]]; then
        break
    fi
done

# Get the UUID of the selected network
network_uuid=${networks[$network_name]}

# Check if the network UUID exists
if [[ -z $network_uuid ]]; then
    echo "Network '$network_name' UUID not found. Exiting..."
    exit 1
fi

# Disconnect from the current network (if connected)
current_connection=$(nmcli connection show --active | awk 'NR>1{print $1}')
if [[ -n $current_connection ]]; then
    echo "Disconnecting from the current network..."
    nmcli connection down $current_connection
fi

# Connect to the chosen network
echo "Connecting to network '$network_name'..."
nmcli connection up uuid $network_uuid

# Display the connection status
echo "Connection status:"
nmcli connection show --active | grep -E "($network_name|$current_connection)"

echo "Network switch completed successfully!"

我运行脚本 ./network_switch.sh

不过废话少说

1) 0
#? 0
networking
  • 1 个回答
  • 61 Views
Martin Hope
Rick T
Asked: 2021-12-04 08:08:30 +0800 CST

添加到 grub 文件时未加载 intel_pstate 驱动程序

  • 0

我有一个

Processor   Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz
Memory  16305MB (2531MB used)
Machine Type    Laptop
Operating System    Ubuntu 20.04.3 LTS

在我的/etc/default/grub文件中,我有一行

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_pstate=enable"

更改后我做了sudo update-grub但是当我做 cpupower frequency-info 或 cpufreq-info --driver它说使用的驱动程序是intel_cpufreq

rt@sys76:~$ cpufreq-info --driver
intel_cpufreq


rt@sys76:~$ cpupower frequency-info

analyzing CPU 0:
  driver: intel_cpufreq
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 20.0 us
  hardware limits: 800 MHz - 3.40 GHz
  available cpufreq governors: conservative ondemand userspace powersave performance schedutil
  current policy: frequency should be within 1.70 GHz and 3.40 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 798 MHz (asserted by call to kernel)
  boost state support:
    Supported: yes
    Active: yes
rt@sys76:~$ 

如何让cpufreq-info --driver 使用intel_pstate驱动程序?

drivers
  • 1 个回答
  • 1114 Views
Martin Hope
Rick T
Asked: 2021-04-03 04:24:59 +0800 CST

添加软件作为 Ubuntu 20.04 中的预输入选项之一

  • 1

我已经安装了Kalzium,并且希望它在我在 Ubuntu 20.04 中进行预输入时也显示为一个选项。

示例:当我为我做一个预先输入时,periodic我得到了这些选项: 软件应用

我怎样才能得到它,所以 Kalzium 也显示为选项之一?

menu
  • 1 个回答
  • 41 Views
Martin Hope
Rick T
Asked: 2021-03-29 01:16:18 +0800 CST

升级/降级到不同版本的 plex 包

  • 1

如何升级/降级到 plex 的不同软件包版本

我可以通过输入查看可升级的内容。

  1. pi@pistorage:~ $sudo apt list --upgradable
Listing... Done

plexmediaserver/public 1.22.1.4228-724c56e62 armhf [upgradable from: 1.22.0.4163-d8c4875dd]
N: There are **13 additional versions. Please use the '-a'** switch to see them.

我可以通过输入查看版本。

  1. pi@pistorage:~ $sudo apt list --upgradable -a
plexmediaserver/public 1.22.1.4228-724c56e62 armhf [upgradable from: 1.22.0.4163-d8c4875dd]
plexmediaserver/public,now 1.22.0.4163-d8c4875dd armhf [installed,upgradable to: 1.22.1.4228-724c56e62]
plexmediaserver/public 1.21.4.4079-1b7748a7b armhf
plexmediaserver/public 1.21.3.4046-3c1c83ba4 armhf
plexmediaserver/public 1.21.3.4021-5a0a3e4b2 armhf
plexmediaserver/public 1.21.3.4015-a4be9cb8b armhf
plexmediaserver/public 1.21.3.4014-58bd20c02 armhf
plexmediaserver/public 1.21.2.3943-a91458577 armhf
plexmediaserver/public 1.21.2.3939-3945797bd armhf
plexmediaserver/public 1.21.1.3876-3c3adfcb4 armhf
plexmediaserver/public 1.21.1.3842-b0c7a97d9 armhf
plexmediaserver/public 1.21.1.3830-6c22540d5 armhf
plexmediaserver/public 1.21.1.3795-ee64ab56f armhf
plexmediaserver/public 1.21.1.3766-7e23ef53c armhf

如何选择要安装的确切版本?(Plex 升级有在升级过程中破坏事物的趋势)

我知道我可以使用sudo apt --only-upgrade install plexmediaserver

https://www.cyberciti.biz/faq/ubuntu-upgrade-update-single-package-using-apt-get/

我只是不确定如何选择我想要的那个。

apt
  • 1 个回答
  • 1353 Views
Martin Hope
Rick T
Asked: 2020-12-05 23:24:18 +0800 CST

清除缓冲区/缓存的脚本仍然显示权限被拒绝

  • 1

我有一个名为clearcache.sh的脚本来清除我的缓冲区/缓存,但是当我运行它时,它一直说 Permission denied。

脚本中的内容:clearcache.sh

#!/bin/bash
sync && echo 1 | tee /proc/sys/vm/drop_caches

权利:
-rwxr-xr-x 1 rt rt 464 Dec  5 02:10 clearcache.sh

图片


我如何运行它来测试它:

rt@sys76:~/clearcache$ ./clearcache.sh 
tee: /proc/sys/vm/drop_caches: Permission denied
1

我想把它放在一个 chron 工作中,但我需要解决这个权限问题:

更新: 这是drop_caches文件,它的权利归 root 所有,使用脚本从 chron 作业运行它的正确方法是什么?PS:我正在运行 Ubuntu 20.04

图2

scripts permissions bash
  • 1 个回答
  • 687 Views
Martin Hope
Rick T
Asked: 2020-10-01 05:44:52 +0800 CST

dpkg:ubuntu 18.04 到 20.04.1 升级后处理包 linux-firmware (--configure) 出错

  • 0

我从 18.04 升级到 Ubuntu 20.04.1 但出现固件错误,我该如何解决?

我试过: sudo dpkg --configure -a

rt@sys76:~$ sudo dpkg --configure -a

dpkg: error processing package linux-firmware (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-firmware; however:
  Package linux-firmware is not configured yet.

dpkg: error processing package linux-image-generic (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-firmware
 linux-image-generic

我也试过 sudo apt-get install -f

rt@sys76:~$ sudo apt-get install -f


dpkg: error processing package linux-firmware (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-firmware; however:
  Package linux-firmware is not configured yet.

dpkg: error processing package linux-image-generic (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 linux-firmware
 linux-image-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

我也试过 sudo apt-get install -y linux-firmware

rt@sys76:~$ sudo apt-get install -y linux-firmware

    2 not fully installed or removed.
    Need to get 0 B/98.9 MB of archives.
    After this operation, 0 B of additional disk space will be used.
    dpkg: error processing package linux-firmware (--configure):
     package is in a very bad inconsistent state; you should
     reinstall it before attempting configuration
    No apport report written because the error message indicates its a followup error from a previous failure.
                              dpkg: dependency problems prevent configuration of linux-image-generic:
     linux-image-generic depends on linux-firmware; however:
      Package linux-firmware is not configured yet.
    
    dpkg: error processing package linux-image-generic (--configure):
     dependency problems - leaving unconfigured
    Errors were encountered while processing:
     linux-firmware
     linux-image-generic
    E: Sub-process /usr/bin/dpkg returned an error code (1)

还尝试过: sudo apt --fix-broken install

rt@sys76:~$ sudo apt --fix-broken install

Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
Need to get 0 B/98.9 MB of archives.
After this operation, 0 B of additional disk space will be used.
dpkg: error processing package linux-firmware (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
No apport report written because the error message indicates its a followup erro
r from a previous failure.
                          dpkg: dependency problems prevent configuration of lin
ux-image-generic:
 linux-image-generic depends on linux-firmware; however:
  Package linux-firmware is not configured yet.

dpkg: error processing package linux-image-generic (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-firmware
 linux-image-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

还尝试过:sudo apt-get dist-upgrade

rt@sys76:~$ sudo apt-get dist-upgrade

Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/98.9 MB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: error processing package linux-firmware (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
No apport report written because the error message indicates its a followup error from a previous failure.
                          dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-firmware; however:
  Package linux-firmware is not configured yet.

dpkg: error processing package linux-image-generic (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-firmware
 linux-image-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

一些信息:

rt@sys76:~$ uname -a
Linux sys76 5.4.0-48-generic #52-Ubuntu SMP Thu Sep 10 10:58:49 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
rt@sys76:~$




rt@sys76:~$ ls -lh /lib/modules
total 236K
drwxr-xr-x 2 root root 4.0K Jan 23  2018 4.10.0-42-generic
drwxr-xr-x 2 root root 4.0K Jun 29 10:36 4.15.0-101-generic
drwxr-xr-x 2 root root 4.0K Jul  2 00:22 4.15.0-106-generic
drwxr-xr-x 2 root root 4.0K Jul 13 23:18 4.15.0-108-generic
drwxr-xr-x 2 root root 4.0K Jul 23 03:40 4.15.0-109-generic
drwxr-xr-x 2 root root 4.0K Sep  2 12:10 4.15.0-111-generic
drwxr-xr-x 2 root root 4.0K Sep  8 09:50 4.15.0-112-generic
drwxr-xr-x 2 root root 4.0K Sep 21 16:47 4.15.0-115-generic
drwxr-xr-x 2 root root 4.0K Sep 30 09:32 4.15.0-117-generic
drwxr-xr-x 5 root root 4.0K Sep 21 10:27 4.15.0-118-generic
drwxr-xr-x 2 root root 4.0K Jun 11  2018 4.15.0-20-generic
drwxr-xr-x 2 root root 4.0K Jul  2  2018 4.15.0-22-generic
drwxr-xr-x 2 root root 4.0K Jul 21  2018 4.15.0-23-generic
drwxr-xr-x 2 root root 4.0K Aug  7  2018 4.15.0-24-generic
drwxr-xr-x 3 root root 4.0K Sep  5  2018 4.15.0-29-generic
drwxr-xr-x 2 root root 4.0K Aug 24  2018 4.15.0-30-generic
drwxr-xr-x 2 root root 4.0K Sep 10  2018 4.15.0-32-generic
drwxr-xr-x 3 root root 4.0K Oct  2  2018 4.15.0-33-generic
drwxr-xr-x 3 root root 4.0K Oct 23  2018 4.15.0-34-generic
drwxr-xr-x 3 root root 4.0K Nov 14  2018 4.15.0-36-generic
drwxr-xr-x 3 root root 4.0K Dec 21  2018 4.15.0-38-generic
drwxr-xr-x 2 root root 4.0K Dec 20  2018 4.15.0-39-generic
drwxr-xr-x 2 root root 4.0K Jan 29  2019 4.15.0-42-generic
drwxr-xr-x 3 root root 4.0K Jan 31  2019 4.15.0-43-generic
drwxr-xr-x 3 root root 4.0K Mar  6  2019 4.15.0-44-generic
drwxr-xr-x 3 root root 4.0K Apr  4  2019 4.15.0-45-generic
drwxr-xr-x 2 root root 4.0K Apr 25  2019 4.15.0-46-generic
drwxr-xr-x 3 root root 4.0K May 15  2019 4.15.0-47-generic
drwxr-xr-x 3 root root 4.0K Jun  4  2019 4.15.0-48-generic
drwxr-xr-x 3 root root 4.0K May 20 11:30 4.15.0-50-generic
drwxr-xr-x 2 root root 4.0K Jun 28  2019 4.15.0-51-generic
drwxr-xr-x 2 root root 4.0K Jul 25  2019 4.15.0-52-generic
drwxr-xr-x 2 root root 4.0K Aug 14  2019 4.15.0-54-generic
drwxr-xr-x 2 root root 4.0K Sep  3  2019 4.15.0-55-generic
drwxr-xr-x 2 root root 4.0K Sep 10  2019 4.15.0-58-generic
drwxr-xr-x 2 root root 4.0K Sep 18  2019 4.15.0-60-generic
drwxr-xr-x 2 root root 4.0K Oct  1  2019 4.15.0-62-generic
drwxr-xr-x 2 root root 4.0K Oct 22  2019 4.15.0-64-generic
drwxr-xr-x 2 root root 4.0K Nov 13  2019 4.15.0-65-generic
drwxr-xr-x 2 root root 4.0K Nov 15  2019 4.15.0-66-generic
drwxr-xr-x 2 root root 4.0K Dec  2  2019 4.15.0-69-generic
drwxr-xr-x 2 root root 4.0K Jan  7  2020 4.15.0-70-generic
drwxr-xr-x 2 root root 4.0K Jan 28  2020 4.15.0-72-generic
drwxr-xr-x 2 root root 4.0K Feb 17  2020 4.15.0-74-generic
drwxr-xr-x 2 root root 4.0K Mar 17  2020 4.15.0-76-generic
drwxr-xr-x 2 root root 4.0K Apr  7 07:49 4.15.0-88-generic
drwxr-xr-x 5 root root 4.0K Mar 16  2020 4.15.0-91-generic
drwxr-xr-x 2 root root 4.0K May 20 04:37 4.15.0-96-generic
drwxr-xr-x 2 root root 4.0K Jun 10 14:52 4.15.0-99-generic
drwxr-xr-x 3 root root 4.0K Mar  7  2018 4.4.111-0404111-generic
drwxr-xr-x 3 root root 4.0K Mar 13  2018 4.4.119-0404119-generic
drwxr-xr-x 3 root root 4.0K Mar 20  2018 4.4.120-0404120-generic
drwxr-xr-x 3 root root 4.0K Mar 27  2018 4.4.121-0404121-generic
drwxr-xr-x 3 root root 4.0K Apr  2  2018 4.4.122-0404122-generic
drwxr-xr-x 6 root root 4.0K Apr 27  2018 4.4.126-0404126-generic
drwxr-xr-x 6 root root 4.0K Apr 27  2018 4.4.127-0404127-generic
drwxr-xr-x 3 root root 4.0K Apr 18  2018 4.4.128-0404128-generic
drwxr-xr-x 3 root root 4.0K Apr 26  2018 4.8.17-040817-generic
drwxr-xr-x 5 root root 4.0K Sep 30 07:44 5.4.0-48-generic


rt@sys76:~$ sudo dpkg -C  
The following packages are in a mess due to serious problems during
installation.  They must be reinstalled for them (and any packages
that depend on them) to function properly:
 linux-firmware       Firmware for Linux kernel drivers

The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
 linux-image-generic  Generic Linux kernel image
upgrade 20.04
  • 1 个回答
  • 7228 Views
Martin Hope
Rick T
Asked: 2020-08-11 16:26:02 +0800 CST

如何使用下载的 iso 从 Ubuntu 18.04.x LTS 升级到 20.04.1 LTS

  • 3

在哪里可以找到有关如何使用下载的 iso 从 Ubuntu 18.04.x LTS 升级到 20.04.1 LTS 的说明?

我的互联网连接很慢(拨号),所以我需要使用 iso 升级。

我不确定为什么这不是一个可供选择的选项,因为他们建议从一个 LTS 升级到另一个 LTS.1 版本(或者我错过了什么)。

upgrade 18.04 20.04
  • 1 个回答
  • 1115 Views
Martin Hope
Rick T
Asked: 2020-07-14 18:37:20 +0800 CST

运行软件更新程序后使用 Ubuntu 18.04 损坏的软件包系统

  • 0

运行软件更新程序后使用 Ubuntu 18.04 损坏的软件包系统

我从 gui 运行软件更新程序并弹出此错误我没有启用任何 ppa 或存储库

我怎样才能解决这个问题?

错误

我也跑了

sudo apt --fix-broken install

useoh@s12s72:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libllvm10 libllvm10:i386 linux-gcp-5.3-tools-5.3.0-1026 linux-gcp-5.3-tools-5.3.0-1029
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  linux-image-4.15.0-111-generic
Suggested packages:
  fdutils linux-doc-4.15.0 | linux-source-4.15.0 linux-headers-4.15.0-111-generic
The following NEW packages will be installed:
  linux-image-4.15.0-111-generic
0 upgraded, 1 newly installed, 0 to remove and 22 not upgraded.
2 not fully installed or removed.
Need to get 0 B/8,008 kB of archives.
After this operation, 8,411 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 972697 files and directories currently installed.)
Preparing to unpack .../linux-image-4.15.0-111-generic_4.15.0-111.112_amd64.deb ...
Unpacking linux-image-4.15.0-111-generic (4.15.0-111.112) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: <decompress> subprocess returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.15.0-111-generic_4.15.0-111.112_amd64.deb (--unpack):
 dpkg-deb --fsys-tarfile subprocess returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/linux-image-4.15.0-111-generic_4.15.0-111.112_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
package-management apt update-manager 18.04
  • 1 个回答
  • 2959 Views
Martin Hope
Rick T
Asked: 2020-06-12 02:13:00 +0800 CST

nut 和 nut-monitor 无法使用 Ubuntu 18.04 连接到 tripp-lite ups

  • 1

我有一个tripp-lite AVR700U ups,但螺母和螺母监视器看不到它。有没有人有一个很好的作品?我发现的所有东西都是几年前的,不适用于我的设置?我正在尝试禁用停电蜂鸣声。我正在使用 ubuntu 18.04 64 位桌面

ups 18.04
  • 1 个回答
  • 1801 Views
Martin Hope
Rick T
Asked: 2018-10-19 18:22:13 +0800 CST

使用“at”命令进行第二天的定时录像,并且只做一次

  • 1

我正在尝试 1) start and stream video to vlc并且 2) record the same video stream to a file that starts at 05:45 am the next day一切正常,但开始时间,而不是从第二天早上 05:45 开始,而是立即开始。我错过了什么?

bash -c "streamlink --stdout https://www.youtube.com/watch?v=XOacA3RYrXk 720p | tee /tmp/water_vid/water_video-$(date +"%H:%M_%m-%d-%Y").mkv | vlc -" | at 05:45 am
command-line bash cron 18.04
  • 2 个回答
  • 42 Views
Martin Hope
Rick T
Asked: 2018-09-03 05:03:21 +0800 CST

防止 LTS 升级到另一个版本的 ubuntu

  • 4

我在 Ubuntu 18.04 LTS 64 位上有几台电脑和几个人,我想继续使用那个版本。曾经有一个选项说LTS version updates only(或类似的东西)现在它说always ask,default upgrade或smart upgrade. 有谁知道这些选项实际上做了什么。当人们只想更新和安装软件/安全修复程序时,我不会意外升级到 18.10。

在此处输入图像描述

upgrade lts 18.04
  • 2 个回答
  • 1316 Views
Martin Hope
Rick T
Asked: 2018-04-29 11:37:52 +0800 CST

如何从命令行启用和禁用 GNOME 扩展?

  • 16

如何从命令行启用/禁用 GNOME 扩展?

我制作了一个动画 gif,显示了我在终端上尝试做的事情,以便更好地解释它。我不是要启用或禁用一个扩展。

在此处输入图像描述

我看了看,gnome-tweaks -h但它没有我正在寻找的选项。

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -t, --test            Enable test and debug code
  -l, --load            Load all tweaks
  -p [/, /usr], --prefix=[/, /usr]
                        Installation prefix (for gsettings schema, themes,
                        etc)
  -v, --verbose         Print the names of settings modified
  -d, --debug           Enable debug output
gnome command-line gnome-shell gnome-shell-extension
  • 2 个回答
  • 24593 Views
Martin Hope
Rick T
Asked: 2018-01-13 14:20:35 +0800 CST

Nautilus 和 nemo 不会在主目录中显示目录,因为 Spectre、Meltdown 漏洞的 16.04 新更新

  • 0

自从新的内核更新修复了英特尔的 cpu Spectre、Meltdown 漏洞 Nautilus 和 nemo 不会在 Home 驱动器中显示目录。我什至不能ls从它就坐在那里的终端做一个。

55@ftg:~$ uname -a
Linux sys76 4.13.0-26-generic #29~16.04.2-Ubuntu SMP Tue Jan 9 22:00:44 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux


55@ftg:~$  lsb_release -a
LSB Version:    core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.3 LTS
Release:    16.04
Codename:   xenial

GNOME nautilus 3.14.3
nemo 2.8.6

我什至关闭了 Nautilus 中的几个选项......见下图几个程序大约需要 30 秒才能打开,而不是像快门、gedit 等那样的 2 秒。

在此处输入图像描述

16.04
  • 1 个回答
  • 123 Views
Martin Hope
Rick T
Asked: 2017-12-14 07:57:29 +0800 CST

从 libreoffice 5.4.x 降级到 5.1.x 现在我无法运行任何 libreoffice 程序

  • 1

我从 libreoffice 5.4.x 降级到存储库中的 5.1.x 现在我无法运行任何 libreoffice 程序。我怎样才能解决这个问题?

我做了什么来删除 libreoffice 5.4.x

sudo apt-get install ppa-purge && sudo ppa-purge ppa:libreoffice/ppa
sudo apt-get remove --purge libreoffice*
sudo apt-get autoremove
sudo apt-get clean
I then rebooted the machine

然后重新安装 5.1.x 我运行了命令。

sudo apt-get install libreoffice-common libreoffice

当我单击该图标时,Flash 屏幕会出现,但 libreoffice 应用程序都不会启动。

当我尝试使用命令从终端启动编写器时libreoffice --writer

我收到此错误消息

 ~$ libreoffice --writer
terminate called after throwing an instance of 'std::runtime_error'
  what():  IconThemeInfo::FileNameToThemeId() called with invalid filename.


Fatal exception: Signal 6
Stack:
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x394e0)[0x7f996c2004e0]
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x39873)[0x7f996c200873]
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x399a8)[0x7f996c2009a8]
/lib/x86_64-linux-gnu/libc.so.6(+0x354b0)[0x7f996be324b0]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7f996be32428]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7f996be3402a]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x16d)[0x7f9964e9484d]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x8d6b6)[0x7f9964e926b6]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x8d701)[0x7f9964e92701]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x8d919)[0x7f9964e92919]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN3vcl13IconThemeInfo17FileNameToThemeIdERKN3rtl8OUStringE+0x13c)[0x7f996ebb340c]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN3vcl13IconThemeInfoC2ERKN3rtl8OUStringE+0x70)[0x7f996ebb3690]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN3vcl16IconThemeScanner18AddIconThemeByPathERKN3rtl8OUStringE+0x5b)[0x7f996ebb427b]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN3vcl16IconThemeScanner26ScanDirectoryForIconThemesERKN3rtl8OUStringE+0x13b)[0x7f996ebb446b]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN3vcl16IconThemeScanner6CreateERKN3rtl8OUStringE+0x63)[0x7f996ebb4553]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2790fdc)[0x7f996ebaefdc]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN13StyleSettingsC1Ev+0x46)[0x7f996ebaf496]
/usr/lib/libreoffice/program/libmergedlo.so(+0x27914f6)[0x7f996ebaf4f6]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN11AllSettingsC1Ev+0x46)[0x7f996ebaf676]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN11Application12InitSettingsEP10ImplSVData+0x1e)[0x7f996ebb5fde]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN11Application11GetSettingsEv+0x2d)[0x7f996ebb608d]
/usr/lib/libreoffice/program/libvclplug_gtklo.so(+0x3b502)[0x7f995807f502]
/usr/lib/libreoffice/program/libmergedlo.so(_Z7InitVCLv+0x292)[0x7f996ebbadc2]
/usr/lib/libreoffice/program/libmergedlo.so(+0x279d9f6)[0x7f996ebbb9f6]
/usr/lib/libreoffice/program/libmergedlo.so(_Z6SVMainv+0x22)[0x7f996ebbbb02]
/usr/lib/libreoffice/program/libmergedlo.so(soffice_main+0xa2)[0x7f996dcb3212]
/usr/lib/libreoffice/program/soffice.bin[0x4006eb]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f996be1d830]
/usr/lib/libreoffice/program/soffice.bin[0x400729]
lp@jt-laptop:~$




I'm using:
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.3 LTS
Release:    16.04
Codename:   xenial
16.04
  • 2 个回答
  • 442 Views
Martin Hope
Rick T
Asked: 2017-03-13 10:56:01 +0800 CST

wifi 选项未设置为禁用电源/如何在不重新启动的情况下重新加载 wifi 设置更改

  • 0

我的 wifi 选项未设置为禁用省电/如何在不重新启动的情况下重新加载 wifi 设置更改。我正在使用英特尔 7260ac 卡

我更改了iwlwifi.conf文件中的参数

选项 iwlwifi power_save=2并在终端屏幕上输入sudo iwconfig wlp3s0 power off但我的 power_save 选项始终显示已启用。

参数:power_save:启用 WiFi 电源管理(默认:禁用)(布尔)

$ modinfo iwlwifi | grep -v 'pci:' | grep -v 'iwlwifi-'

$ modinfo iwlwifi | grep -v 'pci:' | grep -v 'iwlwifi-'
filename:       /lib/modules/4.8.0-41-generic/kernel/drivers/net/wireless/intel/iwlwifi/iwlwifi.ko
license:        GPL
author:         Copyright(c) 2003- 2015 Intel Corporation <[email protected]>
description:    Intel(R) Wireless WiFi driver for Linux
srcversion:     E7651FD3D9AF45F96CD8B2E
depends:        cfg80211
intree:         Y
vermagic:       4.8.0-41-generic SMP mod_unload modversions 
parm:           swcrypto:using crypto in software (default 0 [hardware]) (int)
parm:           11n_disable:disable 11n functionality, bitmap: 1: full, 2: disable agg TX, 4: disable agg RX, 8 enable agg TX (uint)
parm:           amsdu_size:amsdu size 0: 12K for multi Rx queue devices, 4K for other devices 1:4K 2:8K 3:12K (default 0) (int)
parm:           fw_restart:restart firmware in case of error (default true) (bool)
parm:           antenna_coupling:specify antenna coupling in dB (default: 0 dB) (int)
parm:           nvm_file:NVM file name (charp)
parm:           d0i3_disable:disable d0i3 functionality (default: Y) (bool)
parm:           lar_disable:disable LAR functionality (default: N) (bool)
parm:           uapsd_disable:disable U-APSD functionality bitmap 1: BSS 2: P2P Client (default: 3) (uint)
parm:           bt_coex_active:enable wifi/bt co-exist (default: enable) (bool)
parm:           led_mode:0=system default, 1=On(RF On)/Off(RF Off), 2=blinking, 3=Off (default: 0) (int)
parm:           power_save:enable WiFi power management (default: disable) (bool)
parm:           power_level:default power save level (range from 1 - 5, default: 1) (int)
parm:           fw_monitor:firmware monitor - to debug FW (default: false - needs lots of memory) (bool)
parm:           d0i3_timeout:Timeout to D0i3 entry when idle (ms) (uint)
parm:           disable_11ac:Disable VHT capabilities (default: false) (bool)
$ 

$ uname -a
Linux sys76 4.8.0-41-generic #44~16.04.1-Ubuntu SMP Fri Mar 3 17:11:16 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux


$ iwconfig
lo        no wireless extensions.

enp4s0f2  no wireless extensions.

wlp3s0    IEEE 802.11  ESSID:"2.4ghz"  
          Mode:Managed  Frequency:2.437 GHz  Access Point: E0:3F:49:93:3F:10   
          Bit Rate=144.4 Mb/s   Tx-Power=22 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=60/70  Signal level=-50 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:6  Invalid misc:248   Missed beacon:0

如果我在不重新启动的情况下更改 iwlwifi.conf 文件,是否有办法重新启动 wifi 并进行更改?

16.04
  • 1 个回答
  • 2276 Views
Martin Hope
Rick T
Asked: 2017-02-03 13:22:17 +0800 CST

无线 AC 卡仅显示为 wireless=IEEE 802.11abg

  • 0

我的笔记本电脑中有一个英特尔无线 7260ac卡,它曾经获得 300Mb 但现在只有 54Mb 我看到它在重新发送 ubuntu 16.04.1 升级后显示为 IEEE 802.11abg 我该如何解决这个问题?

我输入命令 sudo lshw -C network

 *-network               
       description: Wireless interface
       product: Wireless 7260
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: wlp3s0
       version: 73
       serial: 0c:8b:fd:4e:64:8e
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=4.4.0-62-generic firmware=17.352738.0 ip=192.168.1.10 latency=0 link=yes multicast=yes wireless=IEEE 802.11abg
       resources: irq:31 memory:f7d00000-f7d01fff
  *-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0.2
       bus info: pci@0000:04:00.2
       logical name: enp4s0f2
       version: 0a
       serial: 00:90:f5:f9:d9:f8
       size: 10Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8411-1_0.0.3 06/18/12 latency=0 link=no multicast=yes port=MII speed=10Mbit/s
       resources: irq:27 ioport:e000(size=256) memory:f0004000-f0004fff memory:f0000000-f0003fff

我还使用 nmcli d wifi检查了我的信号强度

*  SSID                             MODE   CHAN  RATE       SIGNAL  BARS  SECURITY 
   guest_2.4ghz                Infra  7     54 Mbit/s  89      ▂▄▆█  WPA2     
*  2.4ghz                      Infra  7     54 Mbit/s  77      ▂▄▆_  WPA2     
   5ghz                        Infra  161   54 Mbit/s  77      ▂▄▆_  WPA2  

我也做了一个uname -a

Linux sys76 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

我也做了一个lsb_release -a

LSB Version:    core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.1 LTS
Release:    16.04
Codename:   xenial

我使用iwconfig wlp3s0做了一个 iwconfig

wlp3s0    IEEE 802.11abg  ESSID:"2.4ghz"  
          Mode:Managed  Frequency:2.442 GHz  Access Point: E0:3F:49:93:3F:10   
          Bit Rate=54 Mb/s   Tx-Power=22 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=68/70  Signal level=-42 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:134   Missed beacon:0

我做了/lib/firmware | grep 7260

user1@sys76:~$ ls /lib/firmware | grep 7260
iwlwifi-7260-10.ucode
iwlwifi-7260-12.ucode
iwlwifi-7260-13.ucode
iwlwifi-7260-16.ucode
iwlwifi-7260-17.ucode
iwlwifi-7260-7.ucode
iwlwifi-7260-8.ucode
iwlwifi-7260-9.ucode
networking
  • 1 个回答
  • 902 Views
Martin Hope
Rick T
Asked: 2016-07-30 16:18:58 +0800 CST

使用 ubuntu 16.04 时未显示 USB mp3 播放器

  • 0

我有一个 Windows 7 可以看到的 ONN-W7 mp3 播放器,但是 ubuntu 没有http://en.onnchina.com/mp3_mp4/product172.html但我的 ubuntu 16.04 没有将其显示为设备。我试过 gparted、lsusb、gmtp 和 Disks。但是我的设备在 / 之后立即断开连接并且没有显示任何想法?

当我插入设备时,我在终端屏幕上看到了dmesg -wH

[Aug20 11:47] usb 3-2: new high-speed USB device number 19 using xhci_hcd
[  +0.128563] usb 3-2: New USB device found, idVendor=071b, idProduct=3203
[  +0.000003] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  +0.000002] usb 3-2: Product: ROCK MP3
[  +0.000001] usb 3-2: Manufacturer: RockChip
[  +0.000002] usb 3-2: SerialNumber: USBV1.00
[  +0.000410] usb-storage 3-2:1.0: USB Mass Storage device detected
[  +0.000117] usb-storage 3-2:1.0: Quirks match for vid 071b pid 3203: 400
[  +0.000032] scsi host12: usb-storage 3-2:1.0
[  +0.043454] [UFW BLOCK] IN=wlp3s0 OUT= MAC= SRC=fe80:0000:0000:0000:0e8b:fdff:fe4e:648e DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=145709 PROTO=UDP SPT=8612 DPT=8612 LEN=24 
[  +0.000012] [UFW BLOCK] IN=wlp3s0 OUT= MAC= SRC=fe80:0000:0000:0000:0e8b:fdff:fe4e:648e DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=790766 PROTO=UDP SPT=8612 DPT=8610 LEN=24 
[  +0.010190] [UFW BLOCK] IN=wlp3s0 OUT= MAC= SRC=fe80:0000:0000:0000:0e8b:fdff:fe4e:648e DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=145709 PROTO=UDP SPT=8612 DPT=8612 LEN=24 
[  +0.000018] [UFW BLOCK] IN=wlp3s0 OUT= MAC= SRC=fe80:0000:0000:0000:0e8b:fdff:fe4e:648e DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=790766 PROTO=UDP SPT=8612 DPT=8610 LEN=24 
[  +1.057267] usb 3-2: reset high-speed USB device number 19 using xhci_hcd
[  +0.111841] usb 3-2: device descriptor read/64, error -71
[  +0.215946] usb 3-2: device descriptor read/64, error -71
[  +0.215977] usb 3-2: reset high-speed USB device number 19 using xhci_hcd
[  +0.112013] usb 3-2: device descriptor read/64, error -71
[  +0.216016] usb 3-2: device descriptor read/64, error -71
[  +0.215941] usb 3-2: reset high-speed USB device number 19 using xhci_hcd
[  +0.000083] usb 3-2: Device not responding to setup address.
[  +0.203990] usb 3-2: Device not responding to setup address.
[  +0.203881] usb 3-2: device not accepting address 19, error -71
[  +0.112008] usb 3-2: reset high-speed USB device number 19 using xhci_hcd
[  +0.000121] usb 3-2: Device not responding to setup address.
[  +0.203883] usb 3-2: Device not responding to setup address.
[  +0.203953] usb 3-2: device not accepting address 19, error -71
[  +0.000122] usb 3-2: USB disconnect, device number 19
usb
  • 1 个回答
  • 946 Views
Martin Hope
Rick T
Asked: 2016-05-06 05:23:16 +0800 CST

ubuntu 16.04 snappy 核心和打开 pdf 文件

  • 0

是否可以在 snappy 核心项目/应用程序中打开所有 pdf 文件以防止感染主机操作系统?如果有怎么办?PDf 文件越来越多地被某种类型的恶意软件感染,我希望 snap 应用程序能够帮助防止这种情况发生。

谢谢

16.04
  • 1 个回答
  • 196 Views
Martin Hope
Rick T
Asked: 2015-08-26 04:05:21 +0800 CST

从谷歌视频群聊录制音频或视频

  • 6

如何录制来自谷歌视频群聊会话的音频或视频?任何推荐的 linux 程序以及如何操作?

PS:我使用的是 Ubuntu 14.04 64 位

14.04
  • 3 个回答
  • 7084 Views
Martin Hope
Rick T
Asked: 2015-05-15 03:47:01 +0800 CST

获取音频文件信息的应用程序,例如 mkvinfo 对 mkv 文件的作用

  • 1

有谁知道可以获取 flac 和 wav 文件等文件的文件信息的应用程序?像 mkvinfo 这样的应用程序,但用于 flac 和 wav 文件的音频文件?

谢谢

以下是当您选择 mkv 文件时 mkvinfo 显示的示例

(MKVInfo) + EBML head
(MKVInfo) |+ EBML version: 1
(MKVInfo) |+ EBML read version: 1
(MKVInfo) |+ EBML maximum ID length: 4
(MKVInfo) |+ EBML maximum size length: 8
(MKVInfo) |+ Doc type: matroska
(MKVInfo) |+ Doc type version: 2
(MKVInfo) |+ Doc type read version: 2
(MKVInfo) + Segment, size 1109980134
(MKVInfo) |+ Seek head
(MKVInfo) | + Seek entry
(MKVInfo) |  + Seek ID: 0x15 0x49 0xa9 0x66 (KaxInfo)
(MKVInfo) |  + Seek position: 4099
(MKVInfo) | + Seek entry
(MKVInfo) |  + Seek ID: 0x16 0x54 0xae 0x6b (KaxTracks)
(MKVInfo) |  + Seek position: 4249
(MKVInfo) | + Seek entry
(MKVInfo) |  + Seek ID: 0x1c 0x53 0xbb 0x6b (KaxCues)
(MKVInfo) |  + Seek position: 1109967373
(MKVInfo) |+ EbmlVoid (size: 4044)
(MKVInfo) |+ Segment information
(MKVInfo) | + Timecode scale: 1000000
(MKVInfo) | + Muxing application: libebml v1.2.0 + libmatroska v1.1.0
(MKVInfo) | + Writing application: mkvmerge v4.8.0 ('SALVATION') built on May 24 2011 03:12:58
(MKVInfo) | + Duration: 2549.380s (00:42:29.380)
(MKVInfo) | + Date: Fri Feb  7 09:22:00 2014 UTC
(MKVInfo) | + Segment UID: 0xa2 0x59 0x2c 0xd2 0x39 0xd3 0xad 0x48 0x9f 0x21 0x22 0x1e 0xfb 0x3d 0xcc 0xb7
(MKVInfo) |+ Segment tracks
(MKVInfo) | + A track
(MKVInfo) |  + Track number: 1 (track ID for mkvmerge & mkvextract: 0)
(MKVInfo) |  + Track UID: 1987891370
(MKVInfo) |  + Track type: video
(MKVInfo) |  + Lacing flag: 0
(MKVInfo) |  + MinCache: 1
(MKVInfo) |  + Codec ID: V_MPEG4/ISO/AVC
(MKVInfo) |  + CodecPrivate, length 40 (h.264 profile: High @L4.1)
(MKVInfo) |  + Default duration: 33.367ms (29.970 frames/fields per second for a video track)
(MKVInfo) |  + Language: und
(MKVInfo) |  + Video track
(MKVInfo) |   + Pixel width: 1280
(MKVInfo) |   + Pixel height: 720
(MKVInfo) |   + Display width: 1280
(MKVInfo) |   + Display height: 720
(MKVInfo) | + A track
(MKVInfo) |  + Track number: 2 (track ID for mkvmerge & mkvextract: 1)
(MKVInfo) |  + Track UID: 999134339
(MKVInfo) |  + Track type: audio
(MKVInfo) |  + Codec ID: A_AC3
(MKVInfo) |  + Default duration: 32.000ms (31.250 frames/fields per second for a video track)
(MKVInfo) |  + Language: und
(MKVInfo) |  + Audio track
(MKVInfo) |   + Sampling frequency: 48000
(MKVInfo) |   + Channels: 6
(MKVInfo) |+ EbmlVoid (size: 1085)
(MKVInfo) |+ Cluster
sound
  • 1 个回答
  • 1208 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