Help to install the Medit text editor

The best text editor: is Medit.
But I don’t manage to install it on Manjaro ARM in the ways I know :sleepy:

Help me install it, please…

It hasn’t been updated since 2017, depends on Python 2 and is not available for ARM. I’m sure you can find a better text editor than that.

4 Likes

Oh, how sad… I have tested many editors, and Medit is the best.
Because it stores a brief history not of 10 documents, but much more, maybe even 50.
Therefore, it is very convenient to work with him!

Probably I need to ask its author Medit to set it up for Python 3?

please read the link i post below. the author has quit working on medit, he was looking for someone else to maintain the project in future but as you see, there was none willing to do.
sad but this happens
https://aur.archlinux.org/packages/medit

1 Like

Olli thank you.
I have carefully read the comments for Medit and added my comment.

Scroll the list of text editors List of applications - ArchWiki

Sublime Text is possibly the one you didn’t know exist.

Install from their dedicated repo - follow instructions for pacman

https://www.sublimetext.com/docs/linux_repositories.html#pacman

3 Likes

I tried to install Sublime Text according to the instructions, but an error occurred:

$ echo -e "\n[sublime-text]\nServer = https://download.sublimetext.com/arch/stable/aarch64" | sudo tee -a /etc/pacman.conf
[sudo] password for  user: 
[sublime-text]
Server = https://download.sublimetext.com/arch/stable/aarch64

sudo pacman -Syu sublime-text
[sudo] password for user: 
error: sublime-text: signature from "Sublime HQ Pty Ltd <support@sublimetext.com>" is unknown trust
:: Update database...
 core is up to date
 extra is up to date
 community is up to date
 sublime-text                                           1845,0   B  3,28 KiB/s 00:01 [################################################] 100%
error: sublime-text: signature from "Sublime HQ Pty Ltd <support@sublimetext.com>" is unknown trust
error: failed to synchronize all databases invalid or corrupted database(PGP signature))

I guess you missed the:

curl -O https://download.sublimetext.com/sublimehq-pub.gpg && sudo pacman-key --add sublimehq-pub.gpg && sudo pacman-key --lsign-key 8A8F901A && rm sublimehq-pub.gpg

Before your … echo -e “\n[sublime-text]\nServer = https://download.sublimetext.com/arch/stable/x86_64” | sudo tee -a /etc/pacman.conf

:slightly_smiling_face:

Moreover, after trying to install Sublime Text, my Manjaro broke! :nauseated_face:

Because now a fatal error occurs when updating:

Invalid or corrupted database
Failed to synchronize databases

I do not know what to do now :cry:

Manjaro doesn’t break by following the instructions. It is likely broken because you didn’t follow instructions.

I have done so on regular base when I install systems but I must admit I have never used it my pi devices

  • as they are usually running headless
  • but there is no reason why it shouldn’t work identical
  • after all it is provided
  • and while it is a third-party repo and those are generally unsupported
  • this is the recommended method to install sublime text

You can get it using a custom script from AUR - but that is the long way home and will require a manual key import as well.

I will test it on my Pi 5 with a GUI - a few minutes later - confirmed - work exactly as advertised.

 $ curl -O https://download.sublimetext.com/sublimehq-pub.gpg && sudo pacman-key --add sublimehq-pub.gpg && sudo pacman-key --lsign-key 8A8F901A && rm sublimehq-pub.gpg
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3817  100  3817    0     0   7303      0 --:--:-- --:--:-- --:--:--  7312
[sudo] password for nix: 
==> Updating trust database...
gpg: next trustdb check due at 2023-12-31
  -> Locally signed 1 keys.
==> Updating trust database...
 [...]
gpg: next trustdb check due at 2023-12-31
 $ echo -e "\n[sublime-text]\nServer = https://download.sublimetext.com/arch/stable/aarch64" | sudo tee -a /etc/pacman.conf

[sublime-text]
Server = https://download.sublimetext.com/arch/stable/aarch64
 $ sudo pacman -Syu sublime-text
resolving dependencies...
looking for conflicting packages...

Packages (1) sublime-text-4152-1

Total Download Size:   14,82 MiB
Total Installed Size:  50,09 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 sublime-text-4152-1-aarch64 .....
 [...]
(3/3) Updating the desktop file MIME type cache...
2 Likes

kisun, linux-aarhus

Yes, you were right: I inadvertently missed the curl command, excuse me :bowing_man:

Thank you for your advice, but now I am most concerned about the issue with the corrupted database :confounded:
It used to work fine.
How can it be restored?

1 Like

:smiley:

You are welcome - I am satisfied it worked out in the end

It is easily fixed

sudo rm -f /var/lib/pacman/sync/*

Then

sudo pacman -Syu
2 Likes

I feel your pain - Guayadeque is dying a death too.

You can start at this page and see where it takes you.

1 Like

Thank you, I did it:

sudo rm -f /var/lib/pacman/sync/*

and

sudo pacman -Syu

But when updating Manjaro, an error occurred again:

:: Updating package databases...
 core                  262,3 KiB   158 KiB/s 00:02 [######################] 100%
 extra                   9,2 MiB  1661 KiB/s 00:06 [######################] 100%
 community              29,0   B  21,0   B/s 00:01 [######################] 100%
 sublime-text         1845,0   B  1921   B/s 00:01 [######################] 100%
error: sublime-text: signature from "Sublime HQ Pty Ltd <support@sublimetext.com>" is unknown trust
error: failed to synchronize all databases (invalid or corrupted database(PGP signature))

I’m disappointed in Sublime Text because they don’t keep track of their PGP key :-1:

How do I get rid of the Sublime Text repository now?

So, the keys from sublimeHQ changed circa a year before. Since then the key worked well on my side.

Perhaps you make a mistake while copy the the “add signature command” from the page … dont know.

In /etc/pacman.conf the last two line should be like this:

[sublime-text]
Server = https://download.sublimetext.com/arch/stable/x86_64

If you delete these 2 lines the sublime Repo will not be used by your system anymore.

Edit:
Can you post the output from this command:

pacman-key -l Sublime
1 Like

kisun,
Thank you very much, I already managed to guess where these 2 lines of the Sublime Text repository are and deleted them.
Now Manjaro is updated without errors! :upside_down_face:

Kate these days can do pretty much anything that Sublime Text can, and I say that as someone who purchased and used Sublime Text for many years.

4 Likes

MrLavender,

Thanks for reminding me about Kate, but I don’t use the KDE monster :smiley:
I only use lightweight XFCE (or LXDE).
I need a very simple WYSIWYG editor that stores at least 50 document titles in its history.
This useful property is possessed by Medit

Kate will work on any DE although I guess it would install a lot of other required dependencies on a non-KDE system. It does allow up to 99 items in recent file list (Settings → Configure Kate → Session).

A GTK-based editor like gedit would be much lighter on XFCE but I have no idea about recent files. Usually that’s something that’s hidden away in settings and not really advertised as a selling point.

2 Likes

Kate will work on any DE

Yes, I know this :slightly_smiling_face:

although I guess it would install a lot of other required dependencies on a non-KDE system.

That’s why I don’t want to install a KDE application that loads a lot of dependencies.
Take a look for yourself:

Packages    attica5-5.112.0-1  editorconfig-core-c-0.12.6-1  kactivities5-5.112.0-1
            karchive5-5.112.0-1  kbookmarks5-5.112.0-1  kcodecs5-5.112.0-1
            kcompletion5-5.112.0-1  kconfig5-5.112.0-1  kconfigwidgets5-5.112.0-1
            kcrash5-5.112.0-1  kdbusaddons5-5.112.0-1  kded5-5.112.0-1
            kglobalaccel5-5.112.0-1  kguiaddons5-5.112.0-1  ki18n5-5.112.0-1
            kiconthemes5-5.112.0-1  kio5-5.112.0-1  kitemviews5-5.112.0-1
            kjobwidgets5-5.112.0-1  knewstuff5-5.112.0-1  knotifications5-5.112.0-1
            kpackage5-5.112.0-1  kparts5-5.112.0-1  kservice5-5.112.0-1
            ktexteditor5-5.112.0-1  ktextwidgets5-5.112.0-1  kuserfeedback5-1.3.0-4
            kwallet5-5.112.0-1  kwidgetsaddons5-5.112.0-1  kwindowsystem5-5.112.0-1
            kxmlgui5-5.112.0-1  libdbusmenu-qt5-0.9.3+16.04.20160218-6
            media-player-info-24-2  qca-qt5-2.3.7-2  qt5-multimedia-5.15.11+kde+r2-1
            qt5-speech-5.15.11+kde+r1-1  qt5-wayland-5.15.11+kde+r60-1  solid5-5.112.0-1
            syndication5-5.112.0-1  syntax-highlighting5-5.112.0-1  kate-23.08.3-1

To be uploaded: 48.57 MiB
Will be installed: 180,30 MiB

So excuse me, but I don’t want to install a lot of extra packages for the sake of one simple editor and clutter up the system with them :bowing_man: