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
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[duplicate](ubuntu)

Martin Hope
Figaro
Asked: 2020-09-22 07:18:54 +0800 CST

安装了 2 个 Discord 应用程序

  • 3

正如您在标题中看到的,我不小心安装了 2 个 Discord 应用程序;一个来自 Ubuntu 软件,另一个来自 Discord 网站上的 .deb 文件。
我来这里是想问你是否有一种简单的方法可以从 .deb 文件中卸载该应用程序以仅保留 Snap Store 中的应用程序

图片

software-installation uninstall duplicate ubuntu-store 20.04
  • 1 个回答
  • 1618 Views
Martin Hope
Soheil Paper
Asked: 2019-12-15 02:35:15 +0800 CST

我必须从列表中的系统设置>>软件和更新>>其他软件中删除一些重复的条目吗?

  • 0

我有一些这样的重复条目:

在此处输入图像描述

所以必须删除一些与结尾文本重复的条目:... main和... main source Code吗?

感谢您的关注。

duplicate
  • 1 个回答
  • 41 Views
Martin Hope
André Carvalho
Asked: 2019-07-19 09:58:42 +0800 CST

为什么我的 Ubuntu 18.04 中有两个 PostgreSQL 版本?

  • 1

每次我在 Ubuntu 18.04 中安装 PostgreSQL(即使我要求apt-get使用 a 专门安装版本 11 sudo apt-get install postgresq-11)我都会在我的系统中获得版本 10 和版本 11。

andre@linuxrocks:/var/lib/postgresql$ ls -la
total 48
drwxr-xr-x  5 postgres postgres  4096 jul 18 01:17 .
drwxr-xr-x 86 root     root      4096 jul  5 14:54 ..
drwxr-xr-x  3 postgres postgres  4096 abr 16 10:19 10
drwxr-xr-x  3 postgres postgres  4096 jul 13 00:37 11

数据库中的对象在这两个文件夹中重复。

postgres=# \! find ~ -type f -name 16563
/var/lib/postgresql/11/main/base/13132/16563
/var/lib/postgresql/10/main/base/16385/16563

我有两个postgresql.conf,每个文件夹中都有一个,尽管 DBMS 似乎只从 11 个文件夹中的一个中获取其配置。

ps -f -u postgres在我查看所有 PostgreSQL 进程并看到我的系统创建了重复的进程(一个来自 10 文件夹,另一个来自 11)之后,我发现了这种奇怪的行为。所以我已经清除并重新安装了 PostgreSQL(使用sudo apt-get install postgresq-11),现在我不再有重复的进程了。

andre@linuxrocks:~$ ps -f -u postgres
UID        PID  PPID  C STIME TTY          TIME CMD
postgres  1595     1  0 14:30 ?        00:00:00 /usr/lib/postgresql/11/bin/postgres -D /var/lib/postgresql/11/mai
postgres  1684  1595  0 14:30 ?        00:00:00 postgres: 11/main: logger   
postgres  1692  1595  0 14:30 ?        00:00:00 postgres: 11/main: checkpointer   
postgres  1693  1595  0 14:30 ?        00:00:00 postgres: 11/main: background writer   
postgres  1694  1595  0 14:30 ?        00:00:00 postgres: 11/main: walwriter   
postgres  1695  1595  0 14:30 ?        00:00:00 postgres: 11/main: autovacuum launcher   
postgres  1696  1595  0 14:30 ?        00:00:00 postgres: 11/main: stats collector   
postgres  1697  1595  0 14:30 ?        00:00:00 postgres: 11/main: logical replication launcher   
postgres 11074 11073  0 14:33 pts/0    00:00:00 bash
postgres 11078 11074  0 14:33 pts/0    00:00:00 /usr/lib/postgresql/11/bin/psql
postgres 11091  1595  0 14:33 ?        00:00:00 postgres: 11/main: postgres postgres [local] idle

即便如此,我有两个文件夹和重复的对象。为什么会这样?

apt process postgresql duplicate
  • 1 个回答
  • 1279 Views
Martin Hope
Suat Yazıcı
Asked: 2018-08-22 20:19:05 +0800 CST

如何在第一列中找到重复项,然后删除有关整行?

  • 4

我有一个 xlsx 文件(110725x9 矩阵),我保存为文本类型(制表符删除),因为我不知道 Unix 是否有助于 xlsx 文件。重复行总是逐行连续。

例如,假设文本文件如下。您会看到第 3,4、第 7,8 和第 17,18 行是相同的。我想删除不总是更低的上部重复行。

2009,37214611872    2009    135 20  17,1    17,4    19,2    21,8    24,1
2009,37237442922    2009    135 22  16,5    14,5    12,6    11,2    10,5
2009,37260273973    2009    136 0   7,7     7,2     7,1     7,3     7,5
2009,37260273973    2009    136 0   7,7     7,2     7,0     7,2    7,4
2009,37488584475    2009    136 20  14,6    15,1    16,4    18,3    20,1
2009,37511415525    2009    136 22  15,9    14,6    12,8    10,9    9,4
2009,37534246575    2009    137 0   8,2     6,9     6,2     6,2     6,4
2009,37534246575    2009    137 0   8,1     6,8     6,1     6,0     6,3
2009,37557077626    2009    137 2   6,8     6,7     6,5     6,3     6,2
2009,37579908676    2009    137 4   5,8     5,6     5,4     5,4     5,7
2009,37602739726    2009    137 6   6,3     6,1     5,9     5,8     5,8
2009,37625570776    2009    137 8   4,5     5,2     6,0     6,6     7,2
2009,37648401826    2009    137 10  9,6     9,0     8,4     8,4     9,1
2009,37671232877    2009    137 12  11,4    11,7    12,4    13,4    14,4
2009,37694063927    2009    137 14  12,4    13,1    14,2    15,4    16,7
2009,37785388128    2009    137 22  15,5    14,0    12,2    10,3    8,7
2009,37808219178    2009    138 0   6,3     5,8     5,5     5,5     5,8
2009,37808219178    2009    138 0   6,2     5,7     5, 4    5,4     5,7

所以输出应该是这样的:

2009,37214611872    2009    135 20  17,1    17,4    19,2    21,8    24,1
2009,37237442922    2009    135 22  16,5    14,5    12,6    11,2    10,5
2009,37260273973    2009    136 0   7,7     7,2     7,0     7,2    7,4
2009,37488584475    2009    136 20  14,6    15,1    16,4    18,3    20,1
2009,37511415525    2009    136 22  15,9    14,6    12,8    10,9    9,4
2009,37534246575    2009    137 0   8,1     6,8     6,1     6,0     6,3
2009,37557077626    2009    137 2   6,8     6,7     6,5     6,3     6,2
2009,37579908676    2009    137 4   5,8     5,6     5,4     5,4     5,7
2009,37602739726    2009    137 6   6,3     6,1     5,9     5,8     5,8
2009,37625570776    2009    137 8   4,5     5,2     6,0     6,6     7,2
2009,37648401826    2009    137 10  9,6     9,0     8,4     8,4     9,1
2009,37671232877    2009    137 12  11,4    11,7    12,4    13,4    14,4
2009,37694063927    2009    137 14  12,4    13,1    14,2    15,4    16,7
2009,37785388128    2009    137 22  15,5    14,0    12,2    10,3    8,7
2009,37808219178    2009    138 0   6,2     5,7     5, 4    5,4     5,7

我怎么能不排序呢?

command-line duplicate text-processing uniq
  • 2 个回答
  • 2300 Views
Martin Hope
Allie Syadiqin
Asked: 2018-07-31 19:45:39 +0800 CST

删除显示应用程序中的重复图标

  • 3

我刚刚安装了 Ubuntu 18.04 并开始安装几个程序。其中一个程序 Gitkraken 现在在我打开 SHOW APPLICATIONS 时有 2 个图标,而其他已安装的程序根本没有显示。所以我的问题是:

1) 如何删除显示应用程序中的重复图标?2) 如何在显示应用程序中添加图标?

仅供参考,我检查了 /usr/share/applications 并且只有一个 gitkraken.desktop。所以我不确定为什么我在 Show Applications 中有 2 个 Gitktaken 图标。任何有关如何解决这两个问题的见解将不胜感激。谢谢。

icons gnome-shell duplicate
  • 3 个回答
  • 6667 Views
Martin Hope
WinEunuuchs2Unix
Asked: 2018-02-19 17:31:51 +0800 CST

定位命令返回太多结果

  • 2

我犯了一个错误,将相同的文件复制到不同的分区,并打算稍后从源或目标中修剪(删除)它们。locate现在,当我尝试找到它们时,我从命令中得到了太多结果:

rick@alien:~$ locate "display-auto-brightness"
/etc/cron.d/display-auto-brightness
/home/rick/Pictures/display-auto-brightness conky.png
/home/rick/Pictures/display-auto-brightness systray.png
/home/rick/Pictures/display-auto-brightness-config 1.png
/home/rick/Pictures/ps display-auto-brightness.png
/lib/systemd/system-sleep/display-auto-brightness
/mnt/e/etc/cron.d/display-auto-brightness
/mnt/e/lib/systemd/system-sleep/display-auto-brightness
/mnt/e/usr/local/bin/display-auto-brightness
/usr/local/bin/display-auto-brightness

该locate命令会自动将*通配符放在搜索字符串之后并返回额外的不需要的结果。.png不应退回文件。

为什么locate返回太多结果?

scripts command-line bash duplicate-files duplicate
  • 1 个回答
  • 230 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