installing Telegram

Issues related to applications and software problems
Post Reply
mickey0
Posts: 56
Joined: 2015/06/16 22:44:38

installing Telegram

Post by mickey0 » 2021/01/09 21:51:40

Hello,

I tried to install Telegram with 'sudo snap install telegram-desktop'. In kde menu I have the voice relative to 'Telegram'; It seems launching but it doesn't appear ( to be honest I have to same problem with Skype since an update, and I gave up).

I also did 'sudo yum update snapd'
'sudo systemctl enable --now snapd.socket'

Code: Select all

sudo systemctl status snapd
● snapd.service - Snap Daemon
   Loaded: loaded (/usr/lib/systemd/system/snapd.service; disabled; vendor preset: disabled)
   Active: active (running) since Sat 2021-01-09 21:13:47 GMT; 8min ago
 Main PID: 15650 (snapd)
   CGroup: /system.slice/snapd.service
           └─15650 /usr/libexec/snapd/snapd

Jan 09 21:13:44 mic systemd[1]: Starting Snap Daemon...
Jan 09 21:13:45 mic snapd[15650]: AppArmor status: apparmor not enabled
Jan 09 21:13:45 mic snapd[15650]: daemon.go:343: started snapd/2.47.1-1.el7 (series 16; classic;...6_6.
Jan 09 21:13:45 mic snapd[15650]: daemon.go:436: adjusting startup timeout by 1m5s (pessimistic ...nap)
Jan 09 21:13:47 mic systemd[1]: Started Snap Daemon.
Hint: Some lines were ellipsized, use -l to show in full.
and

Code: Select all

snap version 
snap    2.47.1-1.el7
snapd   2.47.1-1.el7
series  16
centos  7
kernel  3.10.0-1160.6.1.el7.x86_64
I have no much experience on this problem. After launching the process seems dying.....
Do I need 'apparmor'? I can't find it....
By the way, after typing 'sudo systemctl enable --now snapd' and lanunching telegram from console with 'telegram-desktop' I got in the console this message error:

Code: Select all

telegram-desktop: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
I also tried 'sudo yum install libqt5Gui*' but there no package available.

Kind Regards

bonedome
Posts: 194
Joined: 2017/04/22 08:11:04

Re: installing Telegram

Post by bonedome » 2021/01/10 15:32:41

Code: Select all

$ sudo yum provides libQt5Core.so.5
Loaded plugins: langpacks
qt5-qtbase-5.9.7-4.el7.i686 : Qt5 - QtBase components
Repo        : base
Matched from:
Provides    : libQt5Core.so.5



qt5-qtbase-5.9.7-5.el7_9.i686 : Qt5 - QtBase components
Repo        : updates
Matched from:
Provides    : libQt5Core.so.5
Not sure why telegram needs an i686 package.
Just thought, a snap should provide all these dependencies itself, so not sure this will work.

mickey0
Posts: 56
Joined: 2015/06/16 22:44:38

Re: installing Telegram

Post by mickey0 » 2021/01/10 15:59:05

Hello,

I did it and installed qtbase, but Telegram still not launching and showing the same error message....

bonedome
Posts: 194
Joined: 2017/04/22 08:11:04

Re: installing Telegram

Post by bonedome » 2021/01/10 19:15:17

What does locate libQt5Core.so.5 show.
Maybe a symbolic link to /var/lib/snapd/snap/telegram/xx/lib but as I said the snap should already contain everything it needs to run, odd.
Edit: just checked my system (centos 7.9) and there is libQt5Core.so.5 in /var/lib/snapd/snap/kde-frameworks-5-core18/32/usr/lib/x86_64-linux-gnu/libQt5Core.so.5 so none the wiser.

mickey0
Posts: 56
Joined: 2015/06/16 22:44:38

Re: installing Telegram

Post by mickey0 » 2021/01/10 21:32:46

Code: Select all

locate  libQt5Core.so.5
/home/mic/RoboDK-v2.5.0/bin/home/robodk/Qt/5.3/gcc_64/lib/libQt5Core.so.5        //installed but never used
/home/mic/webots/lib/libQt5Core.so.5   //don't remember what it is
/usr/lib/libQt5Core.so.5
/usr/lib/libQt5Core.so.5.9
/usr/lib/libQt5Core.so.5.9.7
/usr/lib64/libQt5Core.so.5
/usr/lib64/libQt5Core.so.5.9
/usr/lib64/libQt5Core.so.5.9.7    
/usr/local/lib64/python3.6/site-packages/PyQt5/Qt/lib/libQt5Core.so.5
/var/lib/snapd/snap/telegram-desktop/2315/usr/lib/x86_64-linux-gnu/libQt5Core.so.5
/var/lib/snapd/snap/telegram-desktop/2315/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.12
/var/lib/snapd/snap/telegram-desktop/2315/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.12.8
It seems there is more than what I need. I am launching telegram as user 'mic' but I see that root has the libQt5Core:

Code: Select all

ls -la /usr/lib/libQt5Core.so.5*
lrwxrwxrwx. 1 root root      19 Jan 10 15:51 /usr/lib/libQt5Core.so.5 -> libQt5Core.so.5.9.7
lrwxrwxrwx. 1 root root      19 Jan 10 15:51 /usr/lib/libQt5Core.so.5.9 -> libQt5Core.so.5.9.7
-rwxr-xr-x. 1 root root 4861620 Nov 16 17:06 /usr/lib/libQt5Core.so.5.9.7

Code: Select all

ls /usr/lib64/libQt5Core.so* -la
lrwxrwxrwx. 1 root root      19 Jan  9 21:48 /usr/lib64/libQt5Core.so -> libQt5Core.so.5.9.7
lrwxrwxrwx. 1 root root      19 Jan  9 21:48 /usr/lib64/libQt5Core.so.5 -> libQt5Core.so.5.9.7
lrwxrwxrwx. 1 root root      19 Jan  9 21:48 /usr/lib64/libQt5Core.so.5.9 -> libQt5Core.so.5.9.7
-rwxr-xr-x. 1 root root 4936272 Nov 16 16:49 /usr/lib64/libQt5Core.so.5.9.7

Code: Select all

ls -la /usr/local/lib64/python3.6/site-packages/PyQt5/Qt/lib/libQt5Core.so.5
-rwxr-xr-x. 1 root root 6941136 Mar 19  2020 /usr/local/lib64/python3.6/site-packages/PyQt5/Qt/lib/libQt5Core.so.5

Code: Select all

ls -la /var/lib/snapd/snap/telegram-desktop/2315/usr/lib/x86_64-linux-gnu/libQt5Core.so.5
lrwxrwxrwx. 1 root root 20 Apr  9  2020 /var/lib/snapd/snap/telegram-desktop/2315/usr/lib/x86_64-linux-gnu/libQt5Core.so.5 -> libQt5Core.so.5.12.8

ls -la /var/lib/snapd/snap/telegram-desktop/2315/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.12
lrwxrwxrwx. 1 root root 20 Apr  9  2020 /var/lib/snapd/snap/telegram-desktop/2315/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.12 -> libQt5Core.so.5.12.8

ls -la /var/lib/snapd/snap/telegram-desktop/2315/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.12.8
-rw-r--r--. 1 root root 5519624 Apr  9  2020 /var/lib/snapd/snap/telegram-desktop/2315/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.12.8

bonedome
Posts: 194
Joined: 2017/04/22 08:11:04

Re: installing Telegram

Post by bonedome » 2021/01/11 20:11:26

How did this /usr/local/lib64/python3.6/site-packages/PyQt5/Qt/lib/libQt5Core.so.5 get there, I'm guessing via pip as root, the pip documentation advises to always use the --user flag, I'd remove it, with pip if installed with pip.
Then run

Code: Select all

hash -r
to reset the path/location of libQt5Core.so.5
I have no idea if this will help as it predates the snap version.

mickey0
Posts: 56
Joined: 2015/06/16 22:44:38

Re: installing Telegram

Post by mickey0 » 2021/01/13 16:14:51

Hello, before going on I would like to understand what I am doing. I typed (as user):

Code: Select all

pip uninstall pyqt5
Found existing installation: PyQt5 5.14.1
Uninstalling PyQt5-5.14.1:
  Would remove:
    /usr/local/bin/pylupdate5
    /usr/local/bin/pyrcc5
    /usr/local/bin/pyuic5
    /usr/local/lib64/python3.6/site-packages/PyQt5-5.14.1.dist-info/*
    /usr/local/lib64/python3.6/site-packages/PyQt5/*
  Would not remove (might be manually added):
    /usr/local/lib64/python3.6/site-packages/PyQt5/sip.cpython-36m-x86_64-linux-gnu.so
Proceed (y/n)? 
but in this way am I deleting useful things? I don't find another way to delete libguiqt5core. By the way, I probably installed using pip....but as user (I think)

bonedome
Posts: 194
Joined: 2017/04/22 08:11:04

Re: installing Telegram

Post by bonedome » 2021/01/13 18:28:59

I'm not sure any of this will help make telegram run but some clean up is required.
/home/mic/RoboDK-v2.5.0/bin/home/robodk/Qt/5.3/gcc_64/lib/libQt5Core.so.5 //installed but never used
/home/mic/webots/lib/libQt5Core.so.5 //don't remember what it is
If you don't use/need them, these need to go.
To get your system to use the --user pip installed packages you need to add ~/.local/bin to your $PATH, add this line

Code: Select all

export PATH="${HOME}/.local/bin:${PATH}"
to ~/.bashrc (not sure if you need to log out to take effect)
example

Code: Select all

which youtube-dl
~/.local/bin/youtube-dl
I have

Code: Select all

/usr/lib64/libQt5Core.so.5
/usr/lib64/libQt5Core.so.5.9
/usr/lib64/libQt5Core.so.5.9.7
So I don't know where these came from, on your system

Code: Select all

/usr/lib/libQt5Core.so.5
/usr/lib/libQt5Core.so.5.9
/usr/lib/libQt5Core.so.5.9.7
All those python packages in /usr/local need to go, you can reinstall them using pip install --user if still needed.
After removal run

Code: Select all

hash -r

Still doesn't explain why snap version isn't found.
Telegram is available as a flatpak https://flathub.org/apps/details/org.telegram.desktop and signal https://flathub.org/apps/details/org.signal.Signal maybe save you all this grief.

mickey0
Posts: 56
Joined: 2015/06/16 22:44:38

Re: installing Telegram

Post by mickey0 » 2021/01/15 14:31:58

Hello,
I unistalled pyQT5 and type hash -r, removed and installed again telegram-desktop. Now my situation is this:

Code: Select all

/home/michele/RoboDK-v2.5.0/bin/home/robodk/Qt/5.3/gcc_64/lib/libQt5Core.so.5
/home/michele/webots/lib/libQt5Core.so.5
/usr/lib/libQt5Core.so.5
/usr/lib/libQt5Core.so.5.9
/usr/lib/libQt5Core.so.5.9.7
/usr/lib64/libQt5Core.so.5
/usr/lib64/libQt5Core.so.5.9
/usr/lib64/libQt5Core.so.5.9.7
/var/lib/snapd/snap/telegram-desktop/2315/usr/lib/x86_64-linux-gnu/libQt5Core.so.5
/var/lib/snapd/snap/telegram-desktop/2315/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.12
/var/lib/snapd/snap/telegram-desktop/2315/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.12.8
but I got the same error when launching telegram-desktop. Maybe I should get rid of /lib/qt5Core ????

EDIT: I also installed Signal from here https://snapcraft.io/install/signal-desktop/centos that is basically the same way I installed 'Telegram'; Signal works fine but I found out it needs to link a smartphone (it asks for a QRCode) which at the moment is not working (my smorthphone I mean); that was the main reason I wanted a messaging tool on my laptop. I only I could restore Skype....

By the way, I want to find out why Telegram is not starting....

Post Reply

Return to “CentOS 7 - Software Support”