Based on this, the post-installation script script does run, but encounters an error while running:
/usr/sbin/update-info-dir: 3: /etc/environment: $: not found
update-info-dir sources /etc/environment but only if it can read the file:
if [ -r /etc/environment ] ; then
. /etc/environment
fi
So the problem isn't that /etc/environment isn't found, either.
Instead, it looks to me that someone added a line to /etc/environment that looks something like:
$ VARIABLE=value
When they meant what would have been expressed by:
VARIABLE=value
The more common mistake would have been:
$VARIABLE=value
(Perhaps since that's what one would write in Perl, PHP, or PowerShell.)
Having the space, so that the command that the error message says is run inside /etc/environment is $, is a little weird, but I've seen that -- people do that when they copy code that shows $ as a prompt but think it's supposed to be part of the command instead.
The answer currently says:
> The lines before the dpkg line give a probable reason - there is no /etc/environment file to set the PATH variable so the shell that runs the script doesn't look for the necessary commands in the right places.
That had been my first thought too, until I saw that the . /etc/environment was guarded by [ -r and then looked more closely at the error message.
I'm not sure of a good, accessible way to change the explanation, though.
[ SmokeDetector | MS ] Url-only title, bad keyword in body, blacklisted website in body, blacklisted website in title, body starts with title and ends in url, +1 more (591): mumybear.org/skin-science-cbd/ by emily.a2 on askubuntu.com
@pomsky did it actually help OP or do you think they accepted it accidentally or without knowing what they were doing? They didn't improve it that much
@EliahKagan this type of question is very likely to get wrong votes like that here I think :(
(not about Ask Ubuntu) Is POB the best way to close trolling questions like that? It's not a dupe of the one it's closed against at all imho.
@Kulfy oh dear
I guess people got bored of doing that
not enough badges for it maybe XD
but I don't think people review here primarily to get badges or anything. Personally, I just don't have the thought of logging into MetaSmoke regularly
Not a duplicate, since my issue is not that of slimming the bar down, but that of making a too NARROW bar (on the right) BIGGER, to match the height of the bars on the left. I understand that the bar on the left is huge, but I intentionally exaggerated on the height to show my point. — rainer4 hours ago
@EliahKagan I would also consider "cops" to refer to an institution I might consider potentially dangerous and whose actions I may often not support, so I wouldn't want to imply that the system of community moderation on Stack Exchange, which is something I feel more positive about and aligned with, is similar (cc @Kulfy )
@Kulfy oh, yeah! well spotted. I didn't go far enough down the rabbit hole (or down the page). Hmm...
@pomsky yeah, and then commented. I think we should delete that question
and makes it easier for me to talk about my posts, which I would probably like to do soon since I think that many of them are wrong and needing maintenance
@Kulfy I am looking at that meta post in the hope of editing it, but I still don't understand it well enough
maybe another break and a third look haha
@EliahKagan As far as I know this is still the case
@EliahKagan I think because it looks like a list that would need updates over time, which at the time was probably widely considered to be a type of question that should be CW to facilitate editing by low rep users (before the suggest an edit feature was implemented). Possibly see this blog post by Grace Note on community wikis
@Kulfy I still find it totally unclear, but perhaps it's just me :)
There are many (deleted) questions on the site in which OP tried installing katoolin and without realizing that sources.list is edited. Then OP faces dependency issues, Ubuntu turned into Kali or even broken system. The latter two are generally closed as too broad. Again after some days/months a similar question is posted and we are on the same position again.
So, I was thinking of posting a self answered Q&A in which all the "side effects" can be listed and may be a "safe way" to install those? and may work as a common dupe. What do you guys think about it? Should I post or is there any post like that existing? Should it be made CW?
you said a question was heavily downvoted and deleted quickly. I think you are implying that the post was not so bad that this was a rightful fate for it
so I'm suggesting that if that post deserved better, it was probably a regrettable consequence of similar questions being bad
As the regulars will know, there seem to be many people out there who think that Kali is a good way of starting with Linux. As a result, we get quite a few questions from newbies trying, and failing, to do basic things with Kali. The community is understandably tired of these since it's sort of ...
Like I said in my previous message, I don't think we have a canonical post for that. We could have helped by marking as dupe of something. IMO that wasn't a very bad question.
@Zanna It was deleted before 48 hours were up, even though it was on-topic (about Katoolin, and what happened to an Ubuntu system with Kali repositories, not about a problem originating on a Kali system). Not only could the OP have improved it, but the OP did provide information during that time. It's far from obvious to me that the question qualified as unclear when it was deleted. I've cast an undelete vote.
@Kulfy Yeah, sh my-script will attempt to execute my-script whether or not the file is executable. The file only has to be readable. And you're right that it doesn't look like a shell script in the first place.
@Zanna Why so?
@Kulfy CV retracted.
@Zanna Well, the answer most people will use is to use the package manager's build-dep action, and that doesn't change much over time... though perhaps the answer about it should be edited to briefly clarify that python (selecting the source package python-defaults) provides Python 2 and python3 (selecting the source package python3-defaults) provides Python 3.
Back then, I think enough edits would make a post CW automatically. But I see what you mean; I guess the idea was to apply that to the question and all answers pre-emptively rather than have it happen with each individual answer. I think it's for the best that we don't insist as a matter of policy that things be CW anymore.
@Zanna That meta post makes sense to me now. Looking at the diff between the original and @Kulfy's edit, I think the last part clarifies that the OP really did want the post ID, because the OP wants something that can be added to the question URL to link down to the answer.
I think the meta question might benefit from another answer explaning why each post has a unique ID rather than answers using their authors' user IDs -- that is, I don't think the OP knew what a post ID was. But that's the information they were looking for.
@EliahKagan I feel any time there is a question that even sounds like it could possibly receive answers based only on opinion it is likely to get close votes as POB. Anything like "is X safe?"
This is the OP's own answer, so I guess it should be edited to incorporate the source material. Also that question might be deleted on SO because it's off-topic there. Should it just quote the whole thing, with attribution?
@Zanna I found it in the LQP review, where 20k users can VTD posts whose scores are nonpositive (rather than requiring that they be strictly negative), so I've actually already voted to delete it.
@Zanna I see you've edited the post. I've built on your edit. I'm not sure it really makes sense now, though. I'm hoping you might take a look.
Seems dupe, but in this case I don't want to use my discussion dupe hammer while it has fewer than four close votes.
I've edited that answer. I changed the formatting from how it was in the original post. Does it seem ok? I am checking to see if I've introduced any errors....
@Zanna Yes--thanks! There was one thing with backticks. I fixed it and, I think, slightly improved the formatting overall. The existing quote formatting seemed like it might have relied on undocumented aspects of whatever Markdown dialect SE is using.
I feel like the question is probably a duplicate of something on the site...
Also, is this (based on the error message) a dupe of something useful?
@Kulfy idk, but maybe OP's comment is and could be posted as CW. Or maybe this could also be no-repro, maybe it was a transient bug? Is it still useful or just a dead end in search? I'm leaning towards keeping it
Btw, I wasn't sure if the link to the info page for the old Regulartors room should be included, because in practice we (or at least I) don't go thee hardly at all. But I figured it would be relevant to people wondering about the context of the room, plus it might be useful to search that room from time to time.
@Zanna Ah, good.
But it doesn't have anything for cancelling stars?
(I mean this in reference to a previous conversation; there are no stars that I think should be canceled now.)
Btw, it occurs to me that this is sometimes the most active room associated with Ask Ubuntu--even more active than AGUR--and if people find this room by searching SE-wide chat, rather than by looking at Ask Ubuntu rooms then they may not actually know about AUGR. I thought of including a link to AUGR in that message but I decided against it because I don't think the people who need it would ever find it there (also, the message was near maximum length and I didn't want to use URL shorteners).
But should the room description have a link to AUGR, at the end? Is there room for that in it? Should I attempt this? I feel deja vu, I wonder if I've asked this before.
Regarding the first change, do you think "Looking for the main room to ask/talk about Ubuntu?" is okay? Obviously that's an accurate description (as far as SE/AU rooms) of AUGR and such messages are on-topic for AUGR... but does it mislead people into thinking they should use AGUR for things that they should post a question about on the site (and then possibly also bring up in AUGR)?
@EliahKagan I don't think it's misleading... anyway it will always happen that people try to ask questions in chat and they are usually helped to write a better question (or directed to something their question would be a duplicate of) I think
I would at least not reopen the question yet, but this is not based on any disbelief. I'm not convinced the question has nearly enough information to be answerable, and at minimum the information they removed should either be added back or there should be some explanation of why it's not relevant (since such an explanation might shed light on the problem itself, I think).
If that question turns out to be about what is effectively the same problem on both systems, which seems likely to me, then reopening their question here could result in the other one being closed there. Unix & Linux actually has an off-topic sub-reason for questions posted on multiple SE sites.
Yeah. I think that's an additional reason to think the question may be unclear.
(unrelated) I had glossed over the first sentence of this question earlier and missed that it's probably an XY problem. (I'd gotten in my head, somehow, that the OP was just making a .deb package for isolated, perhaps testing-related, use.)
The question shouldn't be closed--even if it's not edited again, it could get a helpful answer, and the OP will probably edit it again--but I wish I'd noticed and commented about that aspect earlier. Oh well.
@Kulfy The similarity is that the shell does not run a command in the current directory when the command contains no / and the current directory (or an empty entry) isn't in $PATH. I suspect it may not be the best dupe target though.
@EliahKagan Here's another on-topic question that got recent close votes as off-topic. It, too, is out of the queue now. I am wondering if the issue there is that, to someone who is both skimming the question and not really familiar with what shell commands and shell scripts can do, it might seem like it's asking for some huge complicated thing.
That's just a guess, though, and I'm reluctant to edit the question based on that conjecture (and also I don't know how I'd edit it anyway). I've commented.
@Kulfy Good catch. I've VTC'd both the second and third ones, upvoted your comment, and commented on the other duplicate that didn't have a comment about avoiding deliberate duplicates. I figured it might be helpful to tell them that editing also draws attention to the post (since I assume they're posting new questions in part because they don't know that).
Well there's an original and then two more that are dupes of it, all by the same author. Only two questions to close as dupes though.
@Kulfy I cast a dupe vote, closing it. I don't want to vote to delete the answer they accepted. If a while passes and the OP doesn't reply at all, then it may be reasonable to delete the question. Hopefully they'll clarify, and unaccept if appropriate.
Hmm, what do we have for this? @pomsky I think you may be familiar with this and know (or have seen) the answer, though I'm not sure if I'm vaguely remembering some post or why I think that. You have a lot of GNOME knowledge though so maybe that's why.
The answerer suggests to look at the logs since the error they got was because of the typo. This suggested edit corrects the typo. If approved, the answer might need to be restructured.
@Kulfy Yeah, I'm not sure why that would work. I could be missing something, though. Is the other option Ubuntu with Wayland on most systems these days?
@Kulfy The revision history suggests that the intent is to help the OP using Xorg instead of Wayland (or maybe instead of Nux... I don't remember what release had that). I've commented to request clarification.
[ SmokeDetector | MS ] Bad keyword in body, bad keyword in title, blacklisted website in body, link at end of body, potentially bad ns for domain in body, +2 more (494): Weight Loss Plan by donamarlis9 on askubuntu.com