<FIXED> pastebin (python-tool) not working

Questions about applications and software
Forum rules
Before you post please read how to get help
User avatar
orcus
Level 1
Level 1
Posts: 8
Joined: Mon Jun 19, 2017 7:13 pm

<FIXED> pastebin (python-tool) not working

Postby orcus » Mon Jul 10, 2017 6:28 am

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 orcus on Mon Jul 10, 2017 6:41 am, edited 1 time in total.
orcus - by the light of the night

User avatar
xenopeek
Level 24
Level 24
Posts: 21380
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: pastebin (python-tool) not working

Postby xenopeek » Mon Jul 10, 2017 6:35 am

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 24
Level 24
Posts: 21380
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

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

Postby xenopeek » Tue Jul 11, 2017 5:37 am

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


Return to “Software & Applications”