3 ms·
Apt install g++-10 installs Clang-10 instead of g++-10
- saurik 4y ago> Notes: it no longer does that - see for example {Problem using wildcard with apt}[1] [1] https://askubuntu.com/questions/1218814/problem-using-wildcard-with-apt/1218821#1218821 https://askubuntu.com/questions/1218814/problem-using-wildca...
- p-e-w 4y ago> On 18.04, if apt fails to match an exact package name, it expands the name as a regular expression. In this context, the + character means "one or more of the preceding character" so g++-10 matches clang-10 (it's just coincidental that they're both compilers). What a clusterfuck. Fortunately this insane behavior was disabled in later versions. To "fall back" to using patterns automatically just because an exact match couldn't be found is a massive footgun. If a package manager can't find the package I asked it to install, I expect it to fail with an error message telling me so (and possibly a list of similar names that do exist) – not randomly try to interpret what it thinks I want and then act on that guess.
- hulitu 4y ago> To "fall back" to using patterns automatically just because an exact match couldn't be found is a massive footgun We make malware [1]. How do you expect we install it when this feature is disabled ? /s [1] just joking, but see npm for what can happen.
- worldsavior 4y agoHaha cool one. Though seems they act like it's obvious that the package name would expand to a regex.
- solarkraft 4y agoI have such a bad impression of Ubuntu that reading the headline I fully expected it to be due to a conscious decision because of whatever business interest Canonical had that day. Remember: apt install chromium does NOT "apt install chromium", it "snap installs chromium".
- egberts1 4y agowhoa. Apt now using snap? not good, definitely not good.
- zamadatix 4y agoThis caused some hilarity in a training class the other week. The class had a section for how you could load a VM directly on the switch and wanted to demo doing packet captures then you’d move to the next module. Easy enough except the guide said to run “apt install wireshark 1.2.3” where 1.2.3 was whatever actual version that got installed when the training material was written. This matched about 10G of packages to be downloaded. Now because it’s a perfectly valid package selection and includes wireshark it works it just takes forever so the first person does it and manages to get through it in under an hour but as more start reaching that point the poor internet connection is getting slower and slower until someone notices and asks “do we really want to install all these packages or just wireshark?”.
- dekhn 4y agoapt's regex globbing has long been a head scratcher to me.