<FIXED> pastebin (python-tool) not working

Archived topics about LMDE 1 and LMDE 2
Locked
User avatar
orcus
Level 2
Level 2
Posts: 51
Joined: Mon Jun 19, 2017 7:13 pm

<FIXED> pastebin (python-tool) not working

Post by orcus »

pastebin (python-tool) is heavily used on IRC-channels like #linuxmint-help @SpotChat to pipe output of system-informations (from inxi & other tools) to pastebin/gist returning/displaying an url/link to the according location.

If pastebin is not working in your case - returning no output past some timeout - you are propably hit by an update-issue:

1) /usr/local/bin/pastebin uses an outdated url - which will not work anymore
2) due to cleanups/updates there exists an new version /usr/bin/pastebin
3) as /usr/local/bin is located prior to /usr/bin in the search-path - the old/defective version is found and used.

You can determine the location of pastebin according to the search-path with

Code: Select all

which pastebin
which will return

Code: Select all

/usr/local/bin/pastebin
(if you are using the old version)
or

Code: Select all

/usr/bin/pastebin
(if you are using the new/current version)

test whether you are affected:

Code: Select all

echo "some test"|pastebin
if there is not output (after some timeout): you are affected

Code: Select all

mv /usr/local/bin/pastebin /usr/local/bin/pastebin.old
should solve the problem - rerun the test should now display the expected url

have fun - orcus
-----
see - https://github.com/linuxmint/xapps/issues/27
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
orcus - by the light of the night
User avatar
xenopeek
Level 25
Level 25
Posts: 29597
Joined: Wed Jul 06, 2011 3:58 am

Re: pastebin (python-tool) not working

Post by xenopeek »

Or just use explicit path echo some test | /usr/bin/pastebin. Or include alias pastebin=/usr/bin/pastebin in your .bashrc file to override the path.

It will be solved by an update to mintsystem from which the old pastebin file comes. It's already fixed in mintsystem but package needs to be updated for LMDE 2 repository. Addressed to developers.

If you do use the above suggested method of rename a file in your directory, remember that you will have to remove the file yourself once mintsystem update is made available as the package manager doesn't track files you move or rename. You will likely get warnings from the package manager because a file that should exist according to the package manager is no longer there.
Image
User avatar
xenopeek
Level 25
Level 25
Posts: 29597
Joined: Wed Jul 06, 2011 3:58 am

Re: <FIXED> pastebin (python-tool) not working

Post by xenopeek »

mintsystem version 8.1.7.1 is available as an update on LMDE 2 right now. It fixes the issue by removing the old pastebin command. No need to do anything manually, just apply the update.

If you're using a mirror server (which we recommend!) it may take a little time before the update is also available to you. So if you don't see it at the moment of my writing this, it should arrive within hours.
Image
Locked

Return to “LMDE Archive”