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

bgoodr's questions

Martin Hope
bgoodr
Asked: 2023-06-26 23:26:32 +0800 CST

修复 SSD 驱动器上的坏超级块:e2fsck 运行安全吗?

  • 5

症状:

我无法再启动到我的 Xubuntu 22.04 Linux 机器,发生的情况如下:

在某些时候,我的主目录文件系统进入只读状态(据我所知,很可能是作为一种保护措施)。然后我重新启动,认为这是一个一次性故障,但事实并非如此:它无法启动,并在我的 /dev/sdb 磁盘上出现日志错误(这是我存储主目录的位置,与操作系统分开)位于 /dev/sda 上)。

我可以重新启动到安装 USB,并挂载 /dev/sda 和 /dev/sdb。运行 fsck 时,出现错误:

# fsck /dev/sdb
fsck from util-linux 2.37.2
e2fsck 1.46.5 (30-Dec-2021)
ext2fs_open2: Bad magic number in super-block
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/sdb

The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem.  If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
 or
    e2fsck -b 32768 <device>

Found a gpt partition table in /dev/sdb

此后,我将该驱动器上的主目录备份回 /dev/sda ,这似乎可以正常工作,尽管在传输一些我可以重新创建的文件时出现错误。

问题:

我正在考虑尝试使用以下说明修复 /dev/sdb 驱动器:

https://askubuntu.com/a/1335193/340383

但这句话却把我吓跑了,而且没有解释为什么:

Note: do NOT bad block a SSD

因此,在那个答案中,他们提到了跑步:

sudo e2fsck -fccky /dev/sdXX # non-destructive read/write test (recommended)

就我而言,我推测需要是:

sudo e2fsck -fccky /dev/sdb1

这是否会损害我使用 /dev/sdb 修复此问题的能力,或者它是无害的并且是真正的非破坏性测试?

在此给出答案:

https://askubuntu.com/a/1233241/340383

以及OP的问题,他们暗示他们成功使用了e2fsck,我的结论是可以安全地继续。是吗?

子问题:

另外,我不知道这部分输出fsck试图传达什么:

Found a gpt partition table in /dev/sdb

这是在告诉我我跑fsck错了吗?我不想通过尝试不同的超级块来遵循输出中的建议,直到我确认这不仅仅是我自己的用户错误。

2023-07-02 09:08:57:运行 sudo e2fsck -C0 -p -f -v /dev/sdb1

在评论中,我遵循了Ubuntu 14.04 在手动硬启动后无法正常启动的建议(这是在卸载 /dev/sda* 和 /dev/sdb* 驱动器之后):

sudo e2fsck -C0 -p -f -v /dev/sdb1

并得到:

Inode898044343 extent tree (at level 2) could be narrower.  IGNORED.0.1%
DRIVE8: Inode 103942010 extent tree (at level 2) could be narrower.  IGNORED.
DRIVE8: Inode 103942011 extent tree (at level 2) could be narrower.  IGNORED.
 ... <snip mostly duplicate types of output lines here> ...
DRIVE8: Inode 103942324 extent tree (at level 1) could be narrower.  IGNORED.
Inodes:that=were=part=of=a=corrupted=orphan linked list found.   / 59.7%
DRIVE8: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
    (i.e., without -a or -p options)
hard-drive
  • 1 个回答
  • 45 Views
Martin Hope
bgoodr
Asked: 2019-12-14 07:30:03 +0800 CST

如何启用隐藏顶部栏 Gnome 扩展以隐藏顶部栏?

  • 1

我按照https://askubuntu.com/a/1029905/340383中的说明使用此配置:

隐藏顶部栏设置

这似乎是正确的,但右显示器上仍显示顶栏(我有一个左右显示器):

在此处输入图像描述

是否有我需要更改的开关或设置以使这项工作按我认为的方式工作?

我确实chrome-gnome-shell通过https://addons.mozilla.org/en-US/firefox/addon/gnome-shell-integration/安装了

如所示:

$ sudo apt install chrome-gnome-shell
Reading package lists... Done
Building dependency tree       
Reading state information... Done
chrome-gnome-shell is already the newest version (10.1-5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ dpkg --list chrome-gnome-shell
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  chrome-gnome-shell 10.1-5       all          GNOME Shell extensions integration for web browsers
$ 

更新 1

这是设置/设备/显示窗口的屏幕截图,显示了两台 NEC 24" 显示器。顶部栏仅显示在右侧显示器上(标识为“1”的显示器,可能是因为我在该窗口内使用拖放操作将“1”向右移动,但不确定这是此问题的根本原因)。 在此处输入图像描述

更新 2

作为对@pomsky 问题的回应,我们有以下输出:

$ gsettings get org.gnome.shell enabled-extensions
['[email protected]', '[email protected]', '[email protected]', 'show-desktop-button@amivaleo', '[email protected]']
$ ls ~/.local/share/gnome-shell/extensions/ 
[email protected]  [email protected]  show-desktop-button@amivaleo
$ 

更新 3

为了回应@vanadium 的评论,我打开了 Gnome Tweaks,并开始进行该测试,但随后被下面用红色椭圆突出显示的图标分心,然后在它的右侧看到隐藏顶部栏扩展似乎被禁用。

将鼠标悬停在红色椭圆中的图标上只会显示“错误加载扩展”,这是非常模糊的。

更改前的 Gnome 调整

更新 4

单击上面显示的 Gnome-Tweaks/Extensions 视图中的一个或两个项目会弹出一个关于需要重新启动 Gnome 的注释。为什么在我安装扩展程序时它没有在某处提示我?还是做到了而我只是没看到?:

Gnome Tweaks 单击扩展显示重新启动消息

更新 5

重新启动后,现在顶部栏已成功取消映射,直到我将光标向上移动到最右侧显示器的顶部边缘,然后它会显示自己。

更新 6

在按照vanadiums answer的建议卸载任何内容之前,这是我从https://extensions.gnome.org/local/看到的 FireFox 页面截图

在此处输入图像描述

这似乎与此命令行结果相关:

$ cd /usr/share/gnome-shell/extensions/
$ ls -1
desktop-icons@csoriano
[email protected]
[email protected]
[email protected]
$ cd ~/.local/share/gnome-shell/extensions/
$ ls -1
[email protected]
[email protected]
show-desktop-button@amivaleo
$ 

我怀疑下面的那些~/.local/share/gnome-shell/extensions/是通过GNOME Shell 集成 Firefox 扩展来实现的

更新 7

我卸载了所有我可以卸载的东西,它们在https://extensions.gnome.org/local/的右侧有 X 图标,并查看了 Ubuntu 软件中心的“已安装”选项卡(由https://extensions.gnome.org/local/引用) /askubuntu.com/a/1171225/340383),并看到它们在最底部被移除。但是然后从命令行只安装了一个这样的:

$ sudo apt install gnome-shell-extension-autohidetopbar
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  gnome-shell-extension-autohidetopbar
0 upgraded, 1 newly installed, 0 to remove and 10 not upgraded.
Need to get 16.3 kB of archives.
After this operation, 91.1 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu eoan/universe amd64 gnome-shell-extension-autohidetopbar all 20180908-2 [16.3 kB]
Fetched 16.3 kB in 0s (64.0 kB/s)
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline

Selecting previously unselected package gnome-shell-extension-autohidetopbar.
(Reading database ... 404735 files and directories currently installed.)
Preparing to unpack .../gnome-shell-extension-autohidetopbar_20180908-2_all.deb ...
Progress: [  0%] [..........................................................................................................................................................................................] Progress: [ 20%] [#####################################.....................................................................................................................................................] Unpacking gnome-shell-extension-autohidetopbar (20180908-2) ...
Progress: [ 40%] [##########################################################################................................................................................................................] Setting up gnome-shell-extension-autohidetopbar (20180908-2) ...
Progress: [ 60%] [###############################################################################################################...........................................................................] Progress: [ 80%] [####################################################################################################################################################......................................]

验证我是否安装了它:

$ dpkg --list gnome-shell-extension-\*
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  gnome-shell-extension-appindicator       30-1                               all          AppIndicator/KStatusNotifierItem support for GNOME Shell
ii  gnome-shell-extension-autohidetopbar     20180908-2                         all          GNOME shell automatic topbar hider
un  gnome-shell-extension-caffeine           <none>                             <none>       (no description available)
un  gnome-shell-extension-dash-to-panel      <none>                             <none>       (no description available)
un  gnome-shell-extension-dashtodock         <none>                             <none>       (no description available)
ii  gnome-shell-extension-desktop-icons      19.10.2-1                          all          desktop icon support for GNOME Shell
un  gnome-shell-extension-multi-monitors     <none>                             <none>       (no description available)
un  gnome-shell-extension-pixelsaver         <none>                             <none>       (no description available)
ii  gnome-shell-extension-system76-power     1.2.0~1571861523~19.10~f9f05fb~dev all          Gnome-shell extension for System76 Power Management
un  gnome-shell-extension-taskbar            <none>                             <none>       (no description available)
un  gnome-shell-extension-top-icons-plus     <none>                             <none>       (no description available)
ii  gnome-shell-extension-ubuntu-dock        67ubuntu19.10.1                    all          Ubuntu Dock for GNOME Shell
un  gnome-shell-extension-workspaces-to-dock <none>                             <none>       (no description available)
$ date
Sun 15 Dec 2019 10:05:41 AM PST

但随后 Ubuntu 软件中心的“已安装”选项卡并没有改变(当我从https://extensions.gnome.org/local/卸载软件包时,它确实立即改变了)

自动隐藏的行为根本没有改变。在这一点上它不起作用。所以我怀疑这仍然是需要重新启动或 GNOME shell 重新启动的相同错误,但他们没有向我发送一条消息,说明这是必需的。但在这种情况下,按理说没有给出这样的消息,因为我apt install从命令行使用过,至少对我来说很多年了,从来没有通知我需要重新启动。

我重新启动,现在顶部栏的自动隐藏就在那里。

最令人担忧的是 Ubuntu 软件中心的“已安装”选项卡仍然没有显示它,即使我已经通过 安装了它apt install,但这是一个单独的问题。

gnome autohide
  • 2 个回答
  • 4455 Views
Martin Hope
bgoodr
Asked: 2018-11-24 18:01:31 +0800 CST

从命令行调用 GNOME 活动概述

  • 13

有没有办法从 Linux 命令行调用 GNOME 的活动视图?这就是Super从 GNOME 调用的键。一旦它显示出来,我就可以像往常一样使用鼠标与之交互。

我正在使用 Ubuntu 18.04 LTS。

我问的原因:我正在查看需要通过 TeamViewer 会话“发送”超级密钥的桌面。TeamViewer 有一种发送方式CTRL- ALT- DELETE,但这当然适用于 Windows 遥控器,但这里是纯粹的 Ubuntu-to-Ubuntu。即使没有涉及 TeamViewer,而且我使用的是 VNC,我也会遇到同样的问题。

command-line gnome-shell activities-overview
  • 3 个回答
  • 7392 Views
Martin Hope
bgoodr
Asked: 2018-08-15 09:23:53 +0800 CST

如何在 Ubuntu 18.04 上的 Firefox 61.0.1 上启用 Firefox 屏幕截图按钮

  • 1

为了在我的 Firefox 版本中启用 FireFox 屏幕截图,我需要做什么,这样我就不必使用Shift+F2命令行来生成整页屏幕截图?

我的 Firefox 版本的下拉菜单显示:

落下

根据另一篇文章的评论,我应该能够启用 Firefox 屏幕截图按钮,但是当我进入about:config并输入时,about:config extensions.screenshots我看到它应该是活动的:

关于:配置 e3xtensions.screenshots

我可以使用Shift+F2并输入

screenshot ~/foo.png --fullpage

作为一种解决方法,但这对于我计划经常使用的操作来说很麻烦,也就是说,一旦它开始工作。

更新:自定义...区域没有显示任何我可以用来拖放的明显内容:

定制...

firefox screenshot
  • 1 个回答
  • 647 Views
Martin Hope
bgoodr
Asked: 2018-03-11 12:12:43 +0800 CST

GNOME 面板下的显示桌面扩展图标太多

  • 2

我在Gnome shell“显示桌面”快捷方式中使用了 GNOME 扩展,现在看到太多桌面按钮。我想我可能曾多次尝试安装它,显然/可能是因为每次我这样做时“没有发生任何事情”,直到我后来意识到它不会给出任何指示它实际安装了一些东西。现在我在活动导航链接旁边的面板上留下了多个“按钮”:

在此处输入图像描述

这是在 Ubuntu 17.10 下。

除了只有一个之外,我如何删除所有这些?

我确实知道ctrl++绑定,但我倾向于禁用设置中的绑定,因为我需要为特定应用程序窗口保留所有altCtrld和 Alt 键绑定,而不是被 X 窗口管理器“吞噬”。

panel gnome-shell gnome-shell-extension 17.10 show-desktop
  • 1 个回答
  • 332 Views
Martin Hope
bgoodr
Asked: 2018-02-23 08:24:57 +0800 CST

如何在指定的延迟后使 gnome-screenshot 选择区域抓取

  • 9

当我需要使用 gnome-screenshot 截屏时,它会在我使用“选择要抓取的区域”时禁用延迟。

在此处输入图像描述

有没有办法修复这个缺陷?它是缺陷还是设计使然,如果是,为什么?

gnome-screenshot
  • 4 个回答
  • 1604 Views
Martin Hope
bgoodr
Asked: 2018-01-17 21:35:16 +0800 CST

在 GNOME 3 中切换窗口时如何显示窗口标题

  • 4

升级到 Ubuntu 17.10 导致从 Unity 到 GNOME 3 的变化,这意味着有一些东西需要定制。我想让窗口切换绑定(默认情况下是 Super+Tab 和 Alt+Tab)显示窗口标题,就像在 Unity 中一样。目前,当使用 Alt+Tab 组合键(并按住)时,vncviewer 和 rdesktop 窗口仅在图标下显示非描述性词:

非描述性标题

具体来说,左起第二个和第三个图标分别只显示“Vncviewer”和“rdesktop”。是否有任何启用标题的 GNOME 3 扩展或其他配置(gsettings 或 dconf)?

gnome-shell
  • 1 个回答
  • 819 Views
Martin Hope
bgoodr
Asked: 2017-10-08 13:40:57 +0800 CST

如何让 pulseaudio 在 Firefox 的 Ubuntu 17.04 和 17.10 中自动启动?

  • 4

我正在尝试让 Ubuntu 17.04 和 17.10 上的 Firefox 56.0 在 Facebook 的视频中播放声音(甚至不确定它是否特定于 Facebook)。我已将问题归结为在播放视频时 pulseaudio 没有启动,或者根本没有启动。但是,如果我从命令行执行 pulseaudio,然后从 Facebook 中播放视频,我会听到声音。

让我困惑的是试图弄清楚我应该期望什么时候应该启动这个 pulseaudio UNIX 进程。

  1. 在启动时?
  2. 在用户登录之前的 X11 启动时间?
  3. 在用户登录时(“欢迎者”的东西;GDM 或其他)?
  4. 由 Firefox 在某些共享库中执行代码时要求启动 pulseaudio

https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Running/向我暗示它应该在用户登录时。

/etc/xdg/autostart 是一个目录,其中包含有关会话服务的信息,图形会话管理器应在用户登录时自动启动。PulseAudio 在那里发布自己的文件。pulseaudio.desktop 告诉会话管理器运行 start-pulseaudio-x11,这是一个加载一些 X11 相关模块的脚本(在 KDE 上还有 module-device-manager,这是 KDE 的音频路由配置工具所必需的)。start-pulseaudio-x11 通常是需要运行 PulseAudio 服务器的第一件事,因此通常当会话管理器在登录会话开始时运行 start-pulseaudio-x11 时服务器会启动。

如果禁用自动生成,start-pulseaudio-x11 没有效果,因为 start-pulseaudio-x11 不会显式启动服务器。它在加载 X11 模块时依赖于自动生成。从这个意义上说,脚本名称具有误导性。过去用于显式启动服务器的 start-pulseaudio-x11 脚本,其中解释了脚本名称。

根据http://support.system76.com/articles/audio/上的说明,我最近执行的命令是为了确保我从一个良好的基线开始(出于不同的原因,因为我的机器中的前音频连接器不是工作并执行以下修复它):

rm -r ~/.config/pulse
sudo apt install --reinstall alsa-base alsa-utils pulseaudio linux-sound-base libasound2

我现在不认为丢失的~/.config/pulse目录是罪魁祸首,但它是吗?

dmesg | grep pulse

什么都没有显示,所以就好像某些东西甚至没有在正确的时间执行正确的脚本。

我需要更改什么才能启用此功能?我不想在pulseaudio每次运行 firefox 时手动调用(我可以在脚本上拼凑一些东西,但我不想)。

我得出结论,自动生成已启用,因为它已被注释掉(假设注释掉意味着被注释掉的东西是程序的默认值):

drunkard@norehab:~$ ps -ef --forest --cols=10000 | grep pulse
drunkard    3448  2721  0 14:25 pts/0    00:00:00  |               \_ grep pulse
drunkard@norehab:~$ ls -ld ~/.config/pulse
ls: cannot access '/home/drunkard/.config/pulse': No such file or directory
drunkard@norehab:~$ ls -ld /etc/xdg/autostart/pulseaudio-kde.desktop
ls: cannot access '/etc/xdg/autostart/pulseaudio-kde.desktop': No such file or directory
drunkard@norehab:~$ ls -ld /etc/xdg/autostart/pulseaudio*
-rw-r--r-- 1 root root 4836 Mar 29  2017 /etc/xdg/autostart/pulseaudio.desktop
drunkard@norehab:~$ grep auto /etc/pulse/client.conf
; autospawn = yes
; auto-connect-localhost = no
; auto-connect-display = no
drunkard@norehab:~$ 

更新#1

我试过这个:

cp -p /etc/pulse/client.conf ~/.config/pulse/client.conf

并重新启动,它仍然没有自动启动。

更新#2

以下向我证明/usr/bin/start-pulseaudio-x11根本没有被执行:

我省了/usr/bin/start-pulseaudio-x11:

drunkard@norehab:~$ sudo cp -p /usr/bin/start-pulseaudio-x11 /usr/bin/start-pulseaudio-x11.orig

然后在末尾添加一行,简单地将当前时间戳写到日志文件中/tmp/start-pulseaudio-x11.log:

drunkard@norehab:~$ sudo sh -c 'echo "date >> /tmp/start-pulseaudio-x11.log" >> /usr/bin/start-pulseaudio-x11'
drunkard@norehab:~$ tail /usr/bin/start-pulseaudio-x11

    if [ x"$KDE_FULL_SESSION" = x"true" ]; then
       /usr/bin/pactl load-module module-device-manager "do_routing=1" > /dev/null
    fi

    if [ x"$SESSION_MANAGER" != x ] ; then
      /usr/bin/pactl load-module module-x11-xsmp "display=$DISPLAY session_manager=$SESSION_MANAGER" > /dev/null
    fi
fi
date >> /tmp/start-pulseaudio-x11.log
drunkard@norehab:~$

然后重新启动并登录,发现/tmp/start-pulseaudio-x11.log不存在。

因此,在登录之前或之后应该调用的任何东西都/usr/bin/start-pulseaudio-x11没有这样做。

更新#3

这在 Ubuntu 17.10 中仍然存在问题。但评论告诉我我的解决方法可以使用systemctl而不是直接执行。

但是我说这仍然是坏的,因为为什么没有为所有使用桌面的用户启用声音?我的意思是,在我能想到的任何情况下,我都不想听到任何浏览器播放的视频的声音。无论哪种声音守护程序(在这种情况下为 pulseaudio,但没关系)都应该默认为桌面用户“启用”。服务器安装并非如此,但此处并非如此。

firefox
  • 2 个回答
  • 20415 Views
Martin Hope
bgoodr
Asked: 2017-10-08 07:48:05 +0800 CST

ImageMagick:识别无法识别 XWD 图像

  • 2

我的目标是能够截取所有菜单的屏幕截图,无论工具提示或 X 窗口抓取下拉菜单,包括 Ubuntu 中的 sprocket 菜单,例如,像这样,并在另一个绘图工具(例如 Shutter)中注释它们:

截图1

我在 Shutter 之外执行此操作的方式(因为它实际上不会抓取该菜单,即使它正在做广告),xwd用于抓取整个根窗口,将其转换为 PNG 文件,将其加载到 Shutter 和然后裁剪下来。这样做非常浪费时间,但到目前为止它一直在工作,直到最近。

在 Ubuntu 上:

drunkard@norehab:~$ lsb_release -r -i
Distributor ID: Ubuntu
Release:    17.04

我使用以下方法截取完整的屏幕截图xwd:

drunkard@norehab:~$ xwd -root -out /tmp/xwd.tmp.6821
drunkard@norehab:~$ file /tmp/xwd.tmp.6821
/tmp/xwd.tmp.6821: XWD X Window Dump image data, "xwdump", 3840x1215x24

我在从 XWD 转换为 PNG 格式的过程中遇到了错误:

drunkard@norehab:~$ convert /tmp/xwd.tmp.6821 /home/drunkard/screenshot.2017-10-07.08-13-55.PDT.png
convert-im6.q16: no decode delegate for this image format `6821' @ error/constitute.c/ReadImage/504.
convert-im6.q16: no images defined `/home/drunkard/screenshot.2017-10-07.08-13-55.PDT.png' @ error/convert.c/ConvertImageCommand/3258.

我有这个版本的标识:

drunkard@norehab:~$ file /usr/bin/identify
/usr/bin/identify: symbolic link to /etc/alternatives/identify
drunkard@norehab:~$ readlink -f /etc/alternatives/identify
/usr/bin/identify-im6.q16
drunkard@norehab:~$ apt-file search /usr/bin/identify-im6.q16
imagemagick-6.q16: /usr/bin/identify-im6.q16
imagemagick-6.q16hdri: /usr/bin/identify-im6.q16hdri
drunkard@norehab:~$ dpkg --listfiles imagemagick-6.q16 | grep identify
/usr/bin/identify-im6.q16
/usr/share/man/man1/identify-im6.q16.1.gz
drunkard@norehab:~$ apt-cache --no-all-versions show imagemagick-6.q16 
Package: imagemagick-6.q16
Architecture: amd64
Version: 8:6.9.7.4+dfsg-3ubuntu1.2
Multi-Arch: foreign
Priority: optional
Section: graphics
Source: imagemagick
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: ImageMagick Packaging Team <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 644
Provides: imagemagick, imagemagick-6.defaultquantum
Depends: libc6 (>= 2.4), libmagickcore-6.q16-3 (>= 8:6.9.6.8), libmagickwand-6.q16-3 (>= 8:6.9.6.8), hicolor-icon-theme
Recommends: libmagickcore-6.q16-3-extra, ghostscript, netpbm
Suggests: imagemagick-doc, autotrace, cups-bsd | lpr | lprng, curl, enscript, ffmpeg, gimp, gnuplot, grads, graphviz, groff-base, hp2xx, html2ps, libwmf-bin, mplayer, povray, radiance, sane-utils, texlive-base-bin, transfig, ufraw-batch, xdg-utils
Breaks: libmagickcore-dev (<< 8:6.9.2.10+dfsg-2~)
Replaces: imagemagick (<< 8:6.9.2.10+dfsg-2~)
Filename: pool/main/i/imagemagick/imagemagick-6.q16_6.9.7.4+dfsg-3ubuntu1.2_amd64.deb
Size: 423848
MD5sum: 6f06b63767fb5e32d967e4395d4e4f98
SHA1: ba0b8af93fed0e9d1efabe56e79387f1bc4944e5
SHA256: 84ffd5f3eb1c8bdc11955c581fc98f1c1bb37eb40609ef6997c8675f1dfd29d0
Homepage: http://www.imagemagick.org/
Description-en: image manipulation programs -- quantum depth Q16
 ImageMagick is a software suite to create, edit, and compose bitmap images.
 It can read, convert and write images in a variety of formats (over 100)
 including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript,
 SVG, and TIFF. Use ImageMagick to translate, flip, mirror, rotate, scale,
 shear and transform images, adjust image colors, apply various special
 effects, or draw text, lines, polygons, ellipses and Bézier curves.
 All manipulations can be achieved through shell commands as well as through
 an X11 graphical interface (display).
 .
 For working with the SVG, WMF, OpenEXR, DjVu and Graphviz formats,
 you need to install the libmagickcore-6.q16-3-extra package.
 .
 This version of imagemagick is compiled for a channel
 depth of 16 bits (Q16).
Description-md5: e40daf0bbbffd2b9ac49e04c8c3480fe
Task: ubuntu-desktop, ubuntu-usb, print-server, kubuntu-desktop, edubuntu-desktop, edubuntu-usb, xubuntu-core, xubuntu-desktop, mythbuntu-desktop, lubuntu-desktop-share, lubuntu-gtk-desktop, lubuntu-desktop, lubuntu-qt-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntu-gnome-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
Supported: 9m

N: There is 1 additional record. Please use the '-a' switch to see it

但是Identify无法识别:

drunkard@norehab:~$ identify /tmp/xwd.tmp.6821
identify-im6.q16: no decode delegate for this image format `6821' @ error/constitute.c/ReadImage/504.

这曾经奏效。

imagemagick
  • 2 个回答
  • 1739 Views
Martin Hope
bgoodr
Asked: 2016-11-20 19:23:35 +0800 CST

在哪里可以找到 Selenium Python 包所需的 geckodriver?[复制]

  • 39
这个问题在这里已经有了答案:
如何在 Ubuntu 中安装 geckodriver? (3 个回答)
5 个月前关闭。

我正在使用 Ubuntu 16.04.1 LTS。执行python -V退货Python 2.7.12。我正在构建一个 virtualenv,以便通过以下方式将Selenium包安装到其中:

pip install -upgrade selenium

但是在使用以下 python 脚本进行试运行时:

from selenium import webdriver
browser = webdriver.Firefox()
browser.get('http://seleniumhq.org/')

它导致此错误:

 Traceback (most recent call last):
   File "/home/myuser/bin/selenium-experiment.py", line 2, in <module>
     browser = webdriver.Firefox()
   File "/home/myuser/python_virtualenv/local/lib/python2.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 135, in __init__
     self.service.start()
   File "/home/myuser/python_virtualenv/local/lib/python2.7/site-packages/selenium/webdriver/common/service.py", line 71, in start
     os.path.basename(self.path), self.start_error_message)
 selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH. 

 Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.__del__ of <selenium.webdriver.firefox.service.Service object at 0x7f782c1caa50>> ignored

由于geckodriver是一个可执行文件,我得出的结论是,它应该通过安装 selenium 包来提供,pip或者至少会出错,并带有一些说明我下一步需要做什么的消息。显然不是,所以我进一步挖掘:我认为也许 Ubuntu 应该有一个提供geckodriver可执行文件的包,所以我过去apt-file search geckodriver搜索它并没有找到结果。

我在哪里可以得到这个geckodriver可执行文件?

apt
  • 2 个回答
  • 60580 Views
Martin Hope
bgoodr
Asked: 2016-04-24 08:42:50 +0800 CST

为什么 Canonical 放弃了对 Gimp 的支持以及如何从中恢复?

  • 38

我被提供升级到 16.04。在升级过程中,我看到了这个:

带注释的屏幕截图

我有点明白为什么 Expect 和w3m被丢弃了,但为什么是 Gimp?

更重要的是,如何找到可以通过apt-getUbuntu 软件中心安装的预构建软件包(但他们正在删除其中的“中心”部分)。

“社区”是什么意思?

gimp
  • 2 个回答
  • 6656 Views
Martin Hope
bgoodr
Asked: 2015-02-15 10:39:35 +0800 CST

如何找到与特定可执行文件对应的联机帮助页包?

  • 0

在笔记本电脑上从头开始安装 Ubuntu 14.10 Desktop 64 位后,我尝试修复安装程序错误,默认情况下区域设置设置不正确。

然后,我在https://askubuntu.com/a/227513/340383上找到了该安装程序错误的可能修复程序,它要求local-gen在 sudo 下执行。想更多地了解 local-gen 的作用,我执行man local-gen并得到:

No manual entry for local-gen

所以我有两个问题:

  1. 我如何从可执行文件的名称开始,例如local-gen在这种情况下,找到相应的包来安装相应的手册页?
  2. 如何找到专门针对 local-gen 的手册页包?
manpage
  • 1 个回答
  • 60 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