通过终端卸载 Telegram 时出现问题

通过终端卸载 Telegram 时出现问题

尝试了许多标准终端命令来删除安装后出现在 Ubuntu 20.04 中的 Telegram。所有命令都返回错误:系统上没有这样的应用程序,尽管我一直在常规应用程序列表中看到该应用程序,我也可以打开它,但无法登录它。我尝试了以下命令:

samuelson@syncserve:~$ flatpak uninstall org.telegram.desktop/x86_64/stable
Command 'flatpak' not found, but can be installed with:

所以,我认为我需要通过命令检查所有路径目录是否存在;因此我使用下面的命令来检查电报的所有可能路径:

find / -iname "*telegram*" 2>/dev/null

该命令的输出令人惊讶,它是一长串电报目录列表,见下​​文。

我的问题是如何删除这个程序?

samuelson@syncserve:~$ find / -iname "*telegram*" 2>/dev/null
    /var/lib/snapd/mount/snap.telegram-desktop.fstab
    /var/lib/snapd/mount/snap.telegram-desktop.user-fstab
    /var/lib/snapd/apparmor/profiles/snap.telegram-desktop.telegram-desktop
    /var/lib/snapd/apparmor/profiles/snap-update-ns.telegram-desktop
    /var/lib/snapd/apparmor/profiles/snap.telegram-desktop.hook.configure
    /var/lib/snapd/desktop/applications/telegram-desktop_telegram-desktop.desktop
    /var/lib/snapd/seccomp/bpf/snap.telegram-desktop.hook.configure.src
    /var/lib/snapd/seccomp/bpf/snap.telegram-desktop.telegram-desktop.bin
    /var/lib/snapd/seccomp/bpf/snap.telegram-desktop.telegram-desktop.src
    /var/lib/snapd/seccomp/bpf/snap.telegram-desktop.hook.configure.bin
    /var/lib/snapd/sequence/telegram-desktop.json
    /var/lib/snapd/snaps/telegram-desktop_3544.snap
    /var/lib/snapd/snaps/telegram-desktop_3530.snap
    /var/lib/snapd/inhibit/telegram-desktop.lock
    /var/lib/app-info/icons/ubuntu-focal-universe/64x64/telegram-desktop_telegram.png
    /var/lib/app-info/icons/ubuntu-focal-universe/48x48/telegram-desktop_telegram.png
    /var/lib/app-info/icons/ubuntu-focal-updates-universe/64x64/telegram-desktop_telegram.png
    /var/lib/app-info/icons/ubuntu-focal-updates-universe/48x48/telegram-desktop_telegram.png
    /var/snap/telegram-desktop
    /var/cache/apt/archives/telegram-desktop_2.1.7+ds-2~ubuntu20.04.1_amd64.deb
    /usr/lib/ezra-bible-app/resources/app/node_modules/@fortawesome/fontawesome-free/svgs/brands/telegram-plane.svg
    /usr/lib/ezra-bible-app/resources/app/node_modules/@fortawesome/fontawesome-free/svgs/brands/telegram.svg
    /tmp/snap.telegram-desktop
    /run/snapd/ns/telegram-desktop.mnt
    /run/snapd/ns/snap.telegram-desktop.info
    /run/snapd/ns/snap.telegram-desktop.fstab
    /run/snapd/lock/telegram-desktop.lock
    /run/user/1000/snap.telegram-desktop
    /run/user/1000/doc/by-app/snap.telegram-desktop
    /run/systemd/units/invocation:snap-telegram\x2ddesktop-3544.mount
    /run/systemd/units/invocation:snap-telegram\x2ddesktop-3530.mount
    /run/udev/tags/snap_telegram-desktop_telegram-desktop
    /etc/systemd/system/snap-telegram\x2ddesktop-3530.mount
    /etc/systemd/system/multi-user.target.wants/snap-telegram\x2ddesktop-3530.mount
    /etc/systemd/system/multi-user.target.wants/snap-telegram\x2ddesktop-3544.mount
    /etc/systemd/system/snap-telegram\x2ddesktop-3544.mount
    /etc/udev/rules.d/70-snap.telegram-desktop.rules
    /snap/wormhole/349/lib/python3.8/site-packages/tqdm/contrib/__pycache__/telegram.cpython-38.pyc
    /snap/wormhole/349/lib/python3.8/site-packages/tqdm/contrib/telegram.py
    /snap/telegram-desktop
    /snap/telegram-desktop/3530/meta/gui/telegram-desktop.desktop
    /snap/telegram-desktop/3530/usr/bin/telegram-desktop
    /snap/telegram-desktop/3530/usr/share/applications/telegram-desktop_telegram-desktop.desktop
    /snap/telegram-desktop/3530/usr/share/metainfo/telegram-desktop_telegram-desktop.metainfo.xml
    /snap/telegram-desktop/3544/meta/gui/telegram-desktop.desktop
    /snap/telegram-desktop/3544/usr/bin/telegram-desktop
    /snap/telegram-desktop/3544/usr/share/applications/telegram-desktop_telegram-desktop.desktop
    /snap/telegram-desktop/3544/usr/share/metainfo/telegram-desktop_telegram-desktop.metainfo.xml
    /snap/vlc/2344/usr/share/icons/breeze/apps/48/telegram.svg
    /snap/vlc/2344/usr/share/icons/breeze-dark/apps/48/telegram.svg
    /snap/bin/telegram-desktop
    /home/samuelson/snap/snap-store/common/.cache/gnome-software/odrs/org.telegram.desktop.json
    /home/samuelson/snap/telegram-desktop
    /home/samuelson/snap/telegram-desktop/3530/.local/share/TelegramDesktop
    /home/samuelson/snap/telegram-desktop/3544/.local/share/TelegramDesktop
    /home/samuelson/.local/share/TelegramDesktop
    /sys/kernel/slab/:A-0000192/cgroup/cred_jar(841:snap-telegram\x2ddesktop-3544.mount)
    /sys/kernel/slab/:A-0000192/cgroup/cred_jar(828:snap-telegram\x2ddesktop-3530.mount)
    /sys/kernel/slab/:A-0001024/cgroup/PING(841:snap-telegram\x2ddesktop-3544.mount)
    /sys/kernel/slab/:A-0001024/cgroup/PING(828:snap-telegram\x2ddesktop-3530.mount)
    /sys/kernel/slab/sock_inode_cache/cgroup/sock_inode_cache(828:snap-telegram\x2ddesktop-3530.mount)
    /sys/kernel/slab/sock_inode_cache/cgroup/sock_inode_cache(841:snap-telegram\x2ddesktop-3544.mount)
    /sys/kernel/slab/kmalloc-64/cgroup/kmalloc-64(841:snap-telegram\x2ddesktop-3544.mount)
    /sys/kernel/slab/kmalloc-64/cgroup/kmalloc-64(828:snap-telegram\x2ddesktop-3530.mount)
    /sys/kernel/slab/radix_tree_node/cgroup/radix_tree_node(841:snap-telegram\x2ddesktop-3544.mount)
    /sys/kernel/slab/radix_tree_node/cgroup/radix_tree_node(828:snap-telegram\x2ddesktop-3530.mount)
    /sys/kernel/slab/dentry/cgroup/dentry(841:snap-telegram\x2ddesktop-3544.mount)
    /sys/kernel/slab/dentry/cgroup/dentry(828:snap-telegram\x2ddesktop-3530.mount)
    /sys/kernel/slab/proc_inode_cache/cgroup/proc_inode_cache(828:snap-telegram\x2ddesktop-3530.mount)
    /sys/kernel/slab/proc_inode_cache/cgroup/proc_inode_cache(841:snap-telegram\x2ddesktop-3544.mount)
    /sys/kernel/slab/:A-0000064/cgroup/anon_vma_chain(828:snap-telegram\x2ddesktop-3530.mount)
    /sys/kernel/slab/:A-0000064/cgroup/anon_vma_chain(841:snap-telegram\x2ddesktop-3544.mount)
    /sys/kernel/slab/anon_vma/cgroup/anon_vma(841:snap-telegram\x2ddesktop-3544.mount)
    /sys/kernel/slab/anon_vma/cgroup/anon_vma(828:snap-telegram\x2ddesktop-3530.mount)
    /sys/kernel/slab/:a-0000104/cgroup/buffer_head(828:snap-telegram\x2ddesktop-3530.mount)
    /sys/kernel/slab/:a-0000104/cgroup/buffer_head(841:snap-telegram\x2ddesktop-3544.mount)
    /sys/kernel/slab/mm_struct/cgroup/mm_struct(841:snap-telegram\x2ddesktop-3544.mount)
    /sys/kernel/slab/mm_struct/cgroup/mm_struct(828:snap-telegram\x2ddesktop-3530.mount)
    /sys/kernel/slab/kmalloc-4k/cgroup/kmalloc-4k(828:snap-telegram\x2ddesktop-3530.mount)
    /sys/kernel/slab/kmalloc-4k/cgroup/kmalloc-4k(841:snap-telegram\x2ddesktop-3544.mount)
    /sys/kernel/slab/kmalloc-32/cgroup/kmalloc-32(828:snap-telegram\x2ddesktop-3530.mount)
    /sys/kernel/slab/kmalloc-32/cgroup/kmalloc-32(841:snap-telegram\x2ddesktop-3544.mount)
    /sys/kernel/slab/inode_cache/cgroup/inode_cache(828:snap-telegram\x2ddesktop-3530.mount)
    /sys/kernel/slab/inode_cache/cgroup/inode_cache(841:snap-telegram\x2ddesktop-3544.mount)
    /sys/kernel/slab/kmalloc-512/cgroup/kmalloc-512(828:snap-telegram\x2ddesktop-3530.mount)
    /sys/kernel/slab/kmalloc-512/cgroup/kmalloc-512(841:snap-telegram\x2ddesktop-3544.mount)
    /sys/kernel/slab/shmem_inode_cache/cgroup/shmem_inode_cache(828:snap-telegram\x2ddesktop-3530.mount)
    /sys/kernel/slab/shmem_inode_cache/cgroup/shmem_inode_cache(841:snap-telegram\x2ddesktop-3544.mount)
    /sys/kernel/slab/skbuff_head_cache/cgroup/skbuff_head_cache(828:snap-telegram\x2ddesktop-3530.mount)
    /sys/kernel/slab/skbuff_head_cache/cgroup/skbuff_head_cache(841:snap-telegram\x2ddesktop-3544.mount)
    /sys/kernel/slab/:A-0000040/cgroup/pde_opener(828:snap-telegram\x2ddesktop-3530.mount)
    /sys/kernel/slab/:A-0000040/cgroup/pde_opener(841:snap-telegram\x2ddesktop-3544.mount)
    /sys/kernel/slab/:A-0000256/cgroup/filp(828:snap-telegram\x2ddesktop-3530.mount)
    /sys/kernel/slab/:A-0000256/cgroup/filp(841:snap-telegram\x2ddesktop-3544.mount)
    /sys/kernel/slab/:A-0000208/cgroup/vm_area_struct(841:snap-telegram\x2ddesktop-3544.mount)
    /sys/kernel/slab/:A-0000208/cgroup/vm_area_struct(828:snap-telegram\x2ddesktop-3530.mount)
    /sys/kernel/slab/squashfs_inode_cache/cgroup/squashfs_inode_cache(828:snap-telegram\x2ddesktop-3530.mount)
    /sys/kernel/slab/squashfs_inode_cache/cgroup/squashfs_inode_cache(841:snap-telegram\x2ddesktop-3544.mount)
    /sys/kernel/slab/ext4_inode_cache/cgroup/ext4_inode_cache(828:snap-telegram\x2ddesktop-3530.mount)
    /sys/kernel/slab/ext4_inode_cache/cgroup/ext4_inode_cache(841:snap-telegram\x2ddesktop-3544.mount)
    /sys/kernel/slab/:A-0000128/cgroup/pid(841:snap-telegram\x2ddesktop-3544.mount)
    /sys/kernel/slab/:A-0000128/cgroup/pid(828:snap-telegram\x2ddesktop-3530.mount)
    /sys/fs/cgroup/devices/snap.telegram-desktop.telegram-desktop
    /sys/fs/cgroup/devices/system.slice/snap-telegram\x2ddesktop-3530.mount
    /sys/fs/cgroup/devices/system.slice/snap-telegram\x2ddesktop-3544.mount
    /sys/fs/cgroup/pids/system.slice/snap-telegram\x2ddesktop-3530.mount
    /sys/fs/cgroup/pids/system.slice/snap-telegram\x2ddesktop-3544.mount
    /sys/fs/cgroup/blkio/system.slice/snap-telegram\x2ddesktop-3530.mount
    /sys/fs/cgroup/blkio/system.slice/snap-telegram\x2ddesktop-3544.mount
    /sys/fs/cgroup/cpu,cpuacct/system.slice/snap-telegram\x2ddesktop-3530.mount
    /sys/fs/cgroup/cpu,cpuacct/system.slice/snap-telegram\x2ddesktop-3544.mount
    /sys/fs/cgroup/memory/system.slice/snap-telegram\x2ddesktop-3530.mount
    /sys/fs/cgroup/memory/system.slice/snap-telegram\x2ddesktop-3544.mount
    /sys/fs/cgroup/freezer/snap.telegram-desktop
    /sys/fs/cgroup/systemd/system.slice/snap-telegram\x2ddesktop-3530.mount
    /sys/fs/cgroup/systemd/system.slice/snap-telegram\x2ddesktop-3544.mount
    /sys/fs/cgroup/unified/system.slice/snap-telegram\x2ddesktop-3530.mount
    /sys/fs/cgroup/unified/system.slice/snap-telegram\x2ddesktop-3544.mount

答案1

我相信您应该简单地尝试一下sudo snap remove telegram-desktop或者sudo snap remove --purge telegram-desktop删除它的设置。

然后,继续手动删除~/Downloads/Telegram Desktop。它真的应该这么简单

相关内容