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

ubuntuuser's questions

Martin Hope
ubuntuuser
Asked: 2021-04-19 22:28:49 +0800 CST

Tracker-miner 错误 ubuntu 18.04

  • 1

启动并登录后,只要桌面可见,我就会收到一条错误消息,消息出现在对话框中。 在此处输入图像描述 当按下“报告错误”时,该框关闭,无需任何进一步操作。在系统日志中我看到

tracker-miner-f[2535]:   (Sparql buffer) Error in task 4 (file:///home/mue/Schreibtisch) of the array-update: UNIQUE constraint failed: nie:DataObject.nie:url

“Schreibtisch”的意思是“桌面”,但这个标准文件夹是存在的。跟踪器版本是 2.0.3。

执行后tracker reset --hard,sudo reboot我得到以下内容syslog

gnome-software[2644]: Failed to find one package for tracker.desktop, /usr/share/applications/tracker.desktop
syslog
  • 1 个回答
  • 162 Views
Martin Hope
ubuntuuser
Asked: 2021-02-09 02:49:02 +0800 CST

网络摄像头闪烁

  • 2

我的网络摄像头闪烁。我尝试更改 GUVCView 和 v4l2ucp 中的设置(请参见屏幕截图,您可以看到灰色和白色条纹,它们一直在变化)但这无济于事,电源线频率为 60 Hz 和 50 Hz。摄像头是 AUKEY Webcam 1080P Full HD,我有 ubuntu 18.04。我必须有人造光,因为我的办公室没有窗户。 在此处输入图像描述

webcam
  • 1 个回答
  • 1193 Views
Martin Hope
ubuntuuser
Asked: 2021-01-27 03:43:35 +0800 CST

python2的依赖,例如GIMP

  • 0

在 18.04(从 16.04 升级)python3 中安装后,我删除了 python2

sudo apt autoremove python2
sudo apt autoremove python2.7

我现在意识到这是愚蠢的。但我不明白为什么 GIMP 现在不再工作了。重新安装 GIMP 就够了吗?我应该再次安装python2吗?

python-2.7
  • 1 个回答
  • 128 Views
Martin Hope
ubuntuuser
Asked: 2021-01-24 12:13:54 +0800 CST

whereis python3 给出了几个路径

  • 1

我想知道在修复一些问题时是否已经通过几个操作安装了 python3“乘法”。whereis python3在我的 ubuntu 18.04 中输入

python3: /usr/bin/python3.6m /usr/bin/python3.6-config /usr/bin/python3.6m-config /usr/bin/python3.6 /usr/bin/python3 /usr/lib/python3 .7 /usr/lib/python3.6 /usr/lib/python3 /usr/lib/python3.8 /etc/python3.4 /etc/python3.6 /etc/python3.5 /etc/python3 /usr/local /lib/python3.6 /usr/local/lib/python3.5 /usr/include/python3.6m /usr/include/python3.6 /usr/share/python3 /usr/share/man/man1/python3.1 .gz

我必须删除一些东西吗?

顺便说一句: python3 --version给

蟒蛇 3.6.9

编辑:dpkg -l | grep python3.[0-9]给

rc  libpython3.4:amd64                            3.4.3-1ubuntu1~14.04.3                           amd64        Shared Python runtime library (version 3.4)
rc  libpython3.4-minimal:amd64                    3.4.3-1ubuntu1~14.04.3                           amd64        Minimal subset of the Python language (version 3.4)
rc  libpython3.5-minimal:amd64                    3.5.2-2ubuntu0~16.04.12                          amd64        Minimal subset of the Python language (version 3.5)
ii  libpython3.6:amd64                            3.6.9-1~18.04ubuntu1.3                           amd64        Shared Python runtime library (version 3.6)
ii  libpython3.6-dev:amd64                        3.6.9-1~18.04ubuntu1.3                           amd64        Header files and a static library for Python (v3.6)
ii  libpython3.6-minimal:amd64                    3.6.9-1~18.04ubuntu1.3                           amd64        Minimal subset of the Python language (version 3.6)
ii  libpython3.6-stdlib:amd64                     3.6.9-1~18.04ubuntu1.3                           amd64        Interactive high-level object-oriented language (standard library, version 3.6)
rc  python3.4                                     3.4.3-1ubuntu1~14.04.3                           amd64        Interactive high-level object-oriented language (version 3.4)
rc  python3.4-minimal                             3.4.3-1ubuntu1~14.04.3                           amd64        Minimal subset of the Python language (version 3.4)
rc  python3.5-minimal                             3.5.2-2ubuntu0~16.04.12                          amd64        Minimal subset of the Python language (version 3.5)
ii  python3.6                                     3.6.9-1~18.04ubuntu1.3                           amd64        Interactive high-level object-oriented language (version 3.6)
ii  python3.6-dev                                 3.6.9-1~18.04ubuntu1.3                           amd64        Header files and a static library for Python (v3.6)
ii  python3.6-minimal                             3.6.9-1~18.04ubuntu1.3                           amd64        Minimal subset of the Python language (version 3.6)

并apt-cache policy texlive-latex-base texlive-binaries 给出

texlive-latex-base:
  Installiert:           2017.20180305-1
  Installationskandidat: 2017.20180305-1
  Versionstabelle:
 *** 2017.20180305-1 500
        500 http://de.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        500 http://de.archive.ubuntu.com/ubuntu bionic/main i386 Packages
        100 /var/lib/dpkg/status
texlive-binaries:
  Installiert:           2017.20170613.44572-8ubuntu0.1
  Installationskandidat: 2017.20170613.44572-8ubuntu0.1
  Versionstabelle:
 *** 2017.20170613.44572-8ubuntu0.1 500
        500 http://de.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        500 http://de.archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages
        100 /var/lib/dpkg/status
     2017.20170613.44572-8build1 500
        500 http://de.archive.ubuntu.com/ubuntu bionic/main amd64 Packages

pdftex -v并且pdflatex -v都给

pdfTeX 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian)
kpathsea version 6.2.3
Copyright 2017 Han The Thanh (pdfTeX) et al.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.34; using libpng 1.6.34
Compiled with zlib 1.2.11; using zlib 1.2.11
Compiled with poppler version 0.62.0
python3
  • 1 个回答
  • 336 Views
Martin Hope
ubuntuuser
Asked: 2019-08-24 03:14:07 +0800 CST

VPN:ping 和浏览问题

  • 0

通过 VPN 从家里连接到我的研究所后

sudo openvpn --config /home/myname/thinkpad1/thinkpad1.ovpn

我无法浏览网页。(连接本身似乎没问题,说“初始化序列完成”)。在命令行上分析问题时,我看到:

ping google.com

没有给出答案,而

ping 8.8.8.8

是成功的。

但是打电话

http://8.8.8.8

在浏览器中不成功。

进一步:表演

route -n

我得到:

(1) 没有VPN连接

Kernel-IP-Routentabelle
Ziel            Router          Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.0.1     0.0.0.0         UG    600    0        0 wlan0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 wlan0
192.168.0.0     0.0.0.0         255.255.255.0   U     600    0        0 wlan0

(2) 有VPN

Kernel-IP-Routentabelle
Ziel            Router          Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.8.0.217      128.0.0.0       UG    0      0        0 tun0
0.0.0.0         192.168.0.1     0.0.0.0         UG    600    0        0 wlan0
10.8.0.1        10.8.0.217      255.255.255.255 UGH   0      0        0 tun0
10.8.0.217      0.0.0.0         255.255.255.255 UH    0      0        0 tun0
128.0.0.0       10.8.0.217      128.0.0.0       UG    0      0        0 tun0
147.142.19.56   192.168.0.1     255.255.255.255 UGH   0      0        0 wlan0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 wlan0
192.168.0.0     0.0.0.0         255.255.255.0   U     600    0        0 wlan0 

编辑:无论是打开 VPN 还是关闭 VPN,命令

ls -al /etc/resolv.conf

带来

lrwxrwxrwx 1 root root 29 Jan 13  2016 /etc/resolv.conf -> ../run/resolvconf/resolv.conf

和

cat /etc/resolv.conf

带来

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
search box

和

系统解析--状态

说“未知选项”

我试过了

systemd-resolve --version

并得到

systemd 229
+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN

命令

ls -al /etc/openvpn

产量 insgesamt 20

drwxr-xr-x   2 root root  4096 Aug 22 12:38 .
drwxr-xr-x 161 root root 12288 Aug 23 11:52 ..
-rwxr-xr-x   1 root root  1301 Jun 22  2017 update-resolv-conf

和

grep -i -A3 script-security /home/myname/thinkpad1/thinkpad1.ovpn

一无所获。

哪里

dpkg -l resolv*

给

Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten
| Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/
         Halb installiert/Trigger erWartet/Trigger anhängig
|/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: GROSS=schlecht)
||/ Name           Version      Architektur  Beschreibung
+++-==============-============-============-=================================
ii  resolvconf     1.78ubuntu7  all          name server information handler
openvpn
  • 2 个回答
  • 212 Views
Martin Hope
ubuntuuser
Asked: 2019-07-30 07:55:48 +0800 CST

用户在 ubuntu 16.04 LTS 上的 pip3

  • 1

表演时

sudo pip3 install --user -U youtube-dl

我收到 2 个警告:

1. 警告:目录'/home/mue/.cache/pip'或其父目录不属于当前用户,缓存轮已被禁用。检查该目录的权限和所有者。如果使用 sudo 执行 pip,您可能需要 sudo 的 -H 标志。

2. 警告:脚本 youtube-dl 安装在 '/home/mue/.local/bin' 中,它不在 PATH 上。考虑将此目录添加到 PATH,或者,如果您希望禁止显示此警告,请使用 --no-warn-script-location。

问题:

关于 1. 我该如何解决这个问题?

关于 2. 您是否建议将其添加到路径中。如果是:命令是什么?

command-line python permissions
  • 1 个回答
  • 2060 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