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

Mahir's questions

Martin Hope
Mahir
Asked: 2022-01-05 03:29:51 +0800 CST

如何使用 seq 命令用前导零填充数字?

  • 0

我必须为给定的数字范围生成一个文本文件。像往常一样,我不得不seq range_start range_end > text_file.txt把它放在一个文本文件中。

我给出了起点01700和终点的 seq 范围01800。我知道数字前有 0 是没用的,但对我来说这很重要。生成的文件有类似1700, 1701...的行1800。但是在0我输入命令之前没有数字。

我应该如何在文件的每一行之前放置 0?或者,有没有办法在每行之前生成带有 0 的文本?

text-processing
  • 1 个回答
  • 77 Views
Martin Hope
Mahir
Asked: 2021-10-16 15:49:58 +0800 CST

升级到 Ubuntu 21.10 后,我的桌面图标消失了

  • 4

将我的机器从 Ubuntu 21.04 升级到 21.10 后,桌面没有图标。甚至默认的垃圾箱和主页图标也不可见。我怎样才能带回图标?

env | grep XDG_CURRENT_DESKTOP输出:

XDG_CURRENT_DESKTOP=ubuntu:GNOME
gnome-shell
  • 3 个回答
  • 4047 Views
Martin Hope
Mahir
Asked: 2021-10-07 07:41:43 +0800 CST

如何为新的 Ubuntu 版本贡献壁纸?

  • 18

我愿意为新的 Ubuntu 更新做出贡献。我有很多我拍摄的高质量图像,我愿意将它们作为下一个 Ubuntu 版本的壁纸。但问题是我不知道我该怎么做。任何指导都可能非常有帮助。

wallpaper
  • 1 个回答
  • 1837 Views
Martin Hope
Mahir
Asked: 2021-01-16 01:58:09 +0800 CST

无法安装 WICD 网络管理器

  • 1

我遇到了 Wifi 和以太网连接突然断开等问题。所以,我在谷歌上搜索了这个问题,发现了这篇关于解决我遇到的问题的帖子一条评论说卸载 GNOME 的网络管理器并安装 WICD 网络管理器可以解决这个问题,他还分享了安装 WICD 网络管理器的命令,但这些命令不起作用只是因为这些命令在 Ubuntu 18.04 或更早版本中可用。

阅读这篇文章后,我意识到由于 Python 2 弃用,wicd 已从存储库中删除。之后,我关注了这篇文章,并尝试通过下载软件包并手动安装来安装 WICD,有这些命令

mkdir -p ~/Downloads/wicd
cd ~/Downloads/wicd

wget http://old-releases.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-6_amd64.deb
wget http://old-releases.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-glade2_2.24.0-6_amd64.deb

wget http://old-releases.ubuntu.com/ubuntu/pool/universe/w/wicd/python-wicd_1.7.4+tb2-6_all.deb
wget http://old-releases.ubuntu.com/ubuntu/pool/universe/w/wicd/wicd-daemon_1.7.4+tb2-6_all.deb
wget http://old-releases.ubuntu.com/ubuntu/pool/universe/w/wicd/wicd-gtk_1.7.4+tb2-6_all.deb

sudo apt-get install ./*.deb
sudo apt-get install ./*.deb # second time for correct configuration

手动安装 WICD 我运行了所有命令,但最后当我运行命令时sudo apt-get install ./*.deb,终端看起来像这样

lmao@lol:~/Downloads/wicd$ sudo apt-get install ./*.deb 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'python-glade2' instead of './python-glade2_2.24.0-6_amd64.deb'
Note, selecting 'python-gtk2' instead of './python-gtk2_2.24.0-6_amd64.deb'
Note, selecting 'python-wicd' instead of './python-wicd_1.7.4+tb2-6_all.deb'
Note, selecting 'wicd-daemon' instead of './wicd-daemon_1.7.4+tb2-6_all.deb'
Note, selecting 'wicd-gtk' instead of './wicd-gtk_1.7.4+tb2-6_all.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python-gtk2 : Depends: python-cairo (>= 1.0.2-1.1) but it is not installable
               Depends: python-gobject-2 (>= 2.21.3) but it is not installable
 wicd-daemon : Depends: python-dbus but it is not installable
               Depends: python-gobject-2 but it is not installable
E: Unable to correct problems, you have held broken packages. 

而且我不知道如何解决这个问题。

注意:我使用的是 Ubuntu 20.10。

networking
  • 1 个回答
  • 1301 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