Help to install the Medit text editor

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:

  • Geany is an IDE, but is lightweight and can be extended.

You can also specify how many recent documents it shows.

1 Like

They most certainly do.

I am guessing the failure to import they key in the first place is causing your problem.

If you want to remove the repo and start over - or doesn’t want to use - edit your pacman.conf and remove the last lines - referring to sublime-text repo

If you are installing kate on a non plasma system - some dependencies are expected.

Then we are up the same alley.

Amongst my important tools are Sublime Text and Sublime Merge - paid because I honestly think I should support the software I rely on daily.

Also why I support Manjaro by contributing here and there, where the need is.

You could try this approach to get your beloved editor

git clone https://aur.archlinux.org/medit

Enter the folder and edit the PKGBUILD.

Change the makedepends to use ‘python2’ instead of ‘python’

[ ... ]
arch=('x86_64' 'aarch64')
[ ... ]
makedepends=('intltool' 'python2')
[ ... ]

Save the file and build the package using pamac.

This makes it possible to build python2 and other deprecated python dependencies as part of the process.

Ensure the system is fully updated and the base-devel is avaialable

sudo pacman -Syu base-devel --needed

must be inside the medit folder where the PKGBUILD is located

pamac build
 $ pamac build
Preparing...
Generating medit information...
Checking medit dependencies...
Checking pygtk dependencies...
Checking python2 dependencies...
Checking libglade dependencies...
Checking python2-cairo dependencies...
[ ... ]
==> Creating package "medit"...
[ ... ]
==> Finished making: medit 1.2.0-7 (søn 19 nov 2023 09:02:10 CET)
==> Cleaning up...
[ ... ]
Installing medit (1.2.0-7)...                             [1/1]
[ ... ]
Transaction successfully finished.
Running medit 1.2 on x86_64

:vulcan_salute:

For the learning experience

Never let an opportunity to learn slip away

When the build finishes on my Pi aarch64 - I will add it to my repo.

Building for aarch64 proved more challenging than I first thought.

Several dependencies must be mogrified using the arch array in the PKGBUILD.

I managed to build on aarch64 - and installed it - it works.

The result can be fetched using either of these options

Option 1

Downloading the needed files from Index of /nixrepo/aarch64

  • pygtk
  • python2
  • python2-cairo
  • python-gobject2
  • medit

Then run

sudo pacman -U py*.pkg.tar.zst medit*.pkg.tar.zst

Option 2

Or at your choice - by adding a thirdparty repo to pacman.conf

[nixrepo]
SigLevel = Optional TrustAll
Server = https://nix.dk/nixrepo/$arch

After you added the above untrusted repo run

sudo pacman -Syu medit

I suggest you remove the repo from pacman.conf after you succesfully installed medit as the continued availability cannot be guaranteed.

2 Likes

Another option might be to install l3afpad if you happen to have an exceptionally good memory for file locations;

it doesn’t have any recent files functionality at all. :wink:

Seriously, though, Sublime-Text is awesome.

However, for something lighter, simpler, and kinder to the wallet, you might also try Notepadqq; available from Official repos. And, yes, it has recent files capability, but I don’t know how many it lists:

sudo pacman -S notepadqq

Cheers.

1 Like

Nice suggestion - I remember notepad++ on Windows and notepadqq - surprise - is in the arm repo as well.

https://packages.manjaro.org/?query=notepad&arm=on

1 Like

No surprise, really; it fits the profile - lightweight, no required deps. :wink:

Last, but not least, featherpad seems to tick all the boxes – (max. of 50) recent files, and, err, light as a … feather.

Plus, Featherpad is also available via the official (ARM) repos:

https://packages.manjaro.org/?query=featherpad&arm=on.

1 Like

Another fine editor - my favorite with LXQt - along with FeatherNotes …

So, what I wanted to tell you:
I is a very old man :older_man: who very loves Linux.
For this reason I’m a big conservative and I very don’t like changing programs that I’ve been used to for many years.

I was very used to the Medit editor and didn’t want to change it to another one, but I did have to do it.
I went through sequentially yours editors Sublime Text, Gedit, Kate, l3afpad, Notepadqq but I didn’t like them.
But FeatherPad turned out to be quite edible and I gradually began to get used to it.
His history contains up to 50 documents! :+1:

Many thanks to all of you for your advice! :beer: :beer:
They helped me a lot to make the right choice.

2 Likes

so i mark it as solved unless the to might think to reopen/change it

1 Like

By the way, FeatherNotes also turned out to be a good editor. It has a very useful function - inserting images :+1:
Thanks to this, the use of cumbersome LibreOffice Writer has become optional for me.

1 Like

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.