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

frepie's questions

Martin Hope
frepie
Asked: 2019-12-01 10:32:04 +0800 CST

安装了 2 个 KeepassXC 版本

  • 0

一年前,我安装了 KeepassXC 来管理我的密码。我不记得我安装了。今天去官网查看有没有新版本,发现有升级。当我尝试升级它时

sudo apt-get install --only-upgrade keepassxc

我有

E: Unable to locate package keepassxc

所以我通过存储库安装了它,但我现在有 2 个 keepassxc 安装。

我的问题是如何在不删除最新版本的情况下删除旧版本。

以下是以下评论中对请求的回答:

$ snap list
Name                  Version          Rev   Tracking  Publisher       Notes
core                  16-2.42.1        8039  stable    canonical✓      core
core18                0.1              19    stable    canonical✓      base
gtk-common-themes     0.1-16-g2287c87  1198  stable    canonical✓      -
htmldoc               1.9.7            283   stable    michaelrsweet   -
keepassxc             2.3.4            49    stable    keepassxreboot  -
nmap                  7.12SVN-0.6      29    stable    maxiberta       -
notepad-plus-plus     7.6.4            193   stable    mmtrt           -
shotcut               19.10.20         55    stable    meltytech✓      classic
simplescreenrecorder  0.1              1     stable    xiaoguo         -
skype                 8.30.0.50        54    stable    skype✓          classic
slack                 4.1.2            19    stable    slack✓          classic
stellarium-plars      0.18.1           29    stable    pwlars          -
wine-platform         3.0.4-4.0        88    stable    mmtrt           -


dpkg -l keepass*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  keepassxc      2.5.1-0ppa1~ amd64        KeePass Cross-Platform Community 
un  keepassxc-beta <none>       <none>       (no description available)

问候

uninstall upgrade keepassxc
  • 1 个回答
  • 698 Views
Martin Hope
frepie
Asked: 2018-08-23 12:21:55 +0800 CST

Samba 不再在启动时挂载

  • 0

我有一个 samba 共享驱动器,用于保存网络上任何人都可以使用的文件。该驱动器在我的计算机上启动时安装。这是 fstab 文件:

`# /etc/fstab: static file system information.
 #
 # Use 'blkid' to print the universally unique identifier for a
 # device; this may be used with UUID= as a more robust way to name devices
 # that works even if disks are added and removed. See fstab(5).
 #
 # <file system> <mount point>   <type>  <options>       <dump>  <pass>
 # / was on /dev/sda7 during installation
 UUID=8429aa44-e70e-4fc4-8547-cafde77d1404 /               ext4    errors=remount-ro 0       1
 # /boot/efi was on /dev/sda1 during installation
 UUID=4E93-0D75  /boot/efi       vfat    umask=0077      0       1
 # swap was on /dev/sda8 during installation
 UUID=f002a1ef-f3e3-4cf0-a832-b0f683895bd2 none            swap    sw              0       0
 UUID=f002a1ef-f3e3-4cf0-a832-b0f683895bd2 none            swap    sw              0       0
 //192.168.1.2/ext4tb /media/ext4tb cifs users,guest,iocharset=utf8,vers=1.0,sec=ntlm,user 0 0`

这在我不得不升级到 18.04 LTS 之前一直工作正常,因为与此问题无关的其他原因。在重新安装之前,我确保我有一个 fstab 的副本,因为它工作得很好。

但是现在,共享驱动器不再在启动时自动挂载,即使所有人都可以访问,我也需要输入我的凭据。

boot fstab samba mount automount
  • 2 个回答
  • 185 Views
Martin Hope
frepie
Asked: 2018-06-02 08:38:46 +0800 CST

CIFS 挂载 - fstab 与手动 - 失去写入权限

  • 0

我有一个在启动时安装的 samba 共享驱动器,它可以按我的意愿工作。这是 fstab 文件:

//192.168.1.2/ext4tb /mnt/ext4tb cifs ,credentials=/home/frepie/.smbcredentials,iocharset=utf8,vers=1.0,sec=ntlm,user  0  0 

当这正常工作时,我对该共享拥有完全的读、写和执行权限

有时,由于我忽略的原因,该共享驱动器未在启动时安装。试图在不重新启动的情况下解决问题,我使用了命令

sudo mount.cifs //192.168.1.2/ext4tb /mnt/ext4tb

并且该命令请求 samba 服务器上的 root 密码

Password for root@//192.168.1.2/ext4tb:  ********

问题是这样做时,我没有启动挂载正常工作时所拥有的写入权限。

$ mv /home/frepie/Music/Dark\ Latin\ Groove\ -\ La\ Quiero\ A\ Morir /mnt/ext4tb/media/Audio/
mv: cannot create regular file '/mnt/ext4tb/media/Audio/Dark Latin Groove - La Quiero A Morir': Permission denied

不知何故,当 fstab 在引导时执行挂载时,我没有被授予相同的权限。

fstab permissions samba mount cifs
  • 3 个回答
  • 807 Views
Martin Hope
frepie
Asked: 2018-02-01 13:18:23 +0800 CST

循环遍历文件中的哈希列表的脚本,该文件在第一次迭代中被变量卡住

  • 0

我目前正在上网络安全课程,我们需要破解散列密码。为此,我们使用 hashcat。由于有很多散列,我正在尝试编写一个脚本,用列表中包含的所有散列测试散列密码。我的脚本如下:

 1 #! /bin/bash
  2 listhsh="hashlist.txt"
  3 
  4 
  5 while read file; do
  6         echo $file
  7         hashcat -a 0 -m $file -O ~/devoir_PIII_Alice.txt /usr/lib/rockyou.txt
  8 done < $listhsh

该文件包含以下值。这些是定义要测试的哈希类型的代码。

900
0
5100
100
1300
1400
10800
1700
5000
600

我遇到的问题是脚本打开文件,获取包含要测试的哈希类型代码的第一行,然后运行 ​​hashcat 中的值$file=900。但是,一旦使用第一个值完成测试,脚本就会执行具有相同值的 hashcat $file=900。所以最终结果是 hashcat 执行相同的测试,$file=900次数与列表中的值一样多。

scripts command-line bash
  • 2 个回答
  • 794 Views
Martin Hope
frepie
Asked: 2016-01-04 18:32:11 +0800 CST

屏幕分辨率 1440x900 未列出

  • 2

我刚买了一块新的 nvidia 显卡,它在窗口(双启动设置)下可以在 1440x900 下正常工作。不幸的是,我的显示器无法被 ubuntu 识别。这是我的 xrandr -q 输出

Screen 0: minimum 8 x 8, current 1360 x 768, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DVI-D-0 connected primary 1360x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1024x768       60.0 +
1360x768       60.0*    59.8  
1152x864       60.0  
800x600        72.2     60.3     56.2  
680x384        60.0     59.8  
640x480        59.9  
512x384        60.0  
400x300        72.2  
320x240        60.1  
1440x900_60.00 (0x1e7)  106.5MHz
   h: width  1440 start 1528 end 1672 total 1904 skew    0 clock   55.9KHz
    v: height  900 start  903 end  909 total  934           clock   59.9Hz

我设法添加了所需的分辨率(1440x900)但是当我这样做时

xrandr --output DVI-D-0 --mode 1440x900_60.00

我明白了

xrandr: cannot find mode 1440x900_60.00
nvidia
  • 2 个回答
  • 3660 Views
Martin Hope
frepie
Asked: 2015-10-14 10:58:52 +0800 CST

将 avi 转换为可流式传输的 mp4

  • 0

我刚拿到 chromecast,我正在尝试将无法播放的 avi 视频转换为可播放的 mp4 视频格式 我使用以下命令将一些 avi 视频转换为 mp4:

avconv -i input_file.avi -c:v libx264 -c:a copy output_file.mp4

问题是我收到错误消息“媒体不可流式传输”并且无法使用 chromecast。

lsb_release -a 的输出

frepie@OptiPlex-760:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.3 LTS
Release:    14.04
Codename:   trusty
frepie@OptiPlex-760:~$ 

avconv -codecs | 的输出 grep libvpx

frepie@OptiPlex-760:~$ avconv -codecs | grep libvpx
avconv version 9.18-6:9.18-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav developers
built on Mar 16 2015 13:19:10 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
DEV.L. vp8                  On2 VP8 (decoders: vp8 libvpx ) (encoders: libvpx )
frepie@OptiPlex-760:~$
avconv
  • 2 个回答
  • 4629 Views
Martin Hope
frepie
Asked: 2015-08-12 17:11:03 +0800 CST

如何删除通知栏中的快捷方式(metacity)

  • 0

我将 ubuntu 14.04 LTS 与 metacity 窗口管理器一起使用,我错误地在通知栏顶部创建了一个指向我的主文件夹的链接。我想删除它,但不知道为什么。

通知栏中的文件夹

14.04
  • 1 个回答
  • 293 Views
Martin Hope
frepie
Asked: 2015-01-19 09:43:56 +0800 CST

打印服务不可用

  • 22

对不起,如果这个问题看起来很眼熟:我尝试了谷歌搜索提出的解决方案,但它们要么不起作用,要么对我来说太技术化了。

几天前我弄乱了 cups,我不记得具体是如何以及为什么,但我最终删除了一些 cups 文件。

我通过软件中心和使用终端卸载并重新安装了 cups 几次,我还重新安装了 cups-daemon,但没有任何变化。

现在,我的本地打印机无法工作。我收到消息“打印服务不可用。在这台计算机上启动服务或连接到另一台服务器”。“启动服务”按钮为“灰色” 在此处输入图像描述

我尝试通过终端重新启动服务

sudo service cups restart

外壳回复:

cups stop/waiting

然后什么也没有发生,就好像 shell 在“等待”某事发生一样。我必须按 ctrl-c 才能恢复提示。

我尝试了帮助菜单中的故障排除说明,它说“CUPS 打印后台处理程序似乎没有运行。要更正此问题,请从主菜单中选择“系统->管理->服务,然后查找“cups”服务“

我不知道 Ubuntu 14.04 lts 中的“系统->管理->服务”在哪里

我也试过:

sudo /etc/init.d/cups start

产生了

cupsd: Child exited with status 1
14.04
  • 2 个回答
  • 47428 Views
Martin Hope
frepie
Asked: 2014-05-28 17:11:21 +0800 CST

PPA 去除问题

  • 1

为了使用我的打印机,我安装了一个 PPA,但最后这个 PPA 不是必需的。现在,此 PPA 在加载更新时会导致错误。更新错误信息如下:

W:Failed to fetch http://ppa.launchpad.net/michael-gruz/canon/ubuntu/dists/precise/main/source/Sources  404  Not Found
, W:Failed to fetch http://ppa.launchpad.net/michael-gruz/canon/ubuntu/dists/precise/main/binary-i386/Packages  404  Not Found
, E:Some index files failed to download. They have been ignored, or old ones used instead.

我在网上查看了如何删除 ppa,但答案对我的理解水平来说太技术化了。我发现这一行:

sudo add-apt-repository --remove ppa:whatever/ppa

但我不知道应该用什么来代替“随便”。最重要的是,我什至不记得我是如何安装这个 PPA 的。我知道我去了这个页面:

https://launchpad.net/~michael-gruz/+archive/canon/+packages

并且不知何故,按照随附的说明进行操作,却不知道自己在做什么。

根据我发现的一些帮助页面, /etc/apt/sources.list.d 中的安装文件应该给我一些提示:

  jockey.list                            nvbn-rm-ppa-precise.list
langdalepl-gvfs-mtp-precise.list       nvbn-rm-ppa-precise.list.save
langdalepl-gvfs-mtp-precise.list.save  precise-partner.list
michael-gruz-canon-precise.list        precise-partner.list.save

但我不明白要在此文件列表中查找什么。我怀疑罪魁祸首是michael-gruz-canon-precise.list,但这对我帮助不大。

我希望我把所有必要的信息都放在这里。

谢谢您的帮助

updates
  • 2 个回答
  • 1088 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