Error on new shells
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 42/100
Direzione di ricerca
Start by reading etc/bash_completion.d/apt-linux-mint and checking how its have helper is provided when a new shell loads the completion file. The report includes a local guard for missing apt; verify the behavior on a fresh system and check whether the required dependency makes that guard appropriate. Done means new shells no longer print the reported error in the relevant environment, with completion still working when apt is installed.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
When creating a new shell I get the following error in my terminal.
I've tracked it down to etc/bash_completion.d/apt-linux-mint which this repository. I'm using version 8.5.8
Command 'have' not found, did you mean:
command 'dave' from deb libhttp-dav-perl (0.49-2)
command 'haxe' from deb haxe (1:4.2.4-1build1)
command 'save' from deb atfs (1.4pl6-15)
command 'havp' from deb havp (0.93-2build1)
Try: sudo apt install <deb name>
$
I'm not quite sure what fix to make for this, I've patched my own system. But I am unsure if there's anything not obvious. I assume this problem would be happening to a lot of people if it was an issue.. I've been experimenting with Nix's home-manager on my system so it's tainted.
Should this script be able to assume that apt is installed. It's marked as a required dependency.
I've applied this patch to my own version locally. If I get time, I'll investigate on a fresh system.
mac@mac-MacBookPro:~/code/mintsystem$ git diff -u
diff --git a/etc/bash_completion.d/apt-linux-mint b/etc/bash_completion.d/apt-linux-mint
index 524eed5..5c84cc8 100644
--- a/etc/bash_completion.d/apt-linux-mint
+++ b/etc/bash_completion.d/apt-linux-mint
@@ -2,7 +2,9 @@
# Bash completion file for Linux Mint apt utility.
#
-have apt &&
+if ! command -v apt &> /dev/null; then
+ return 1
+fi
_apt()
{
local cur opt
- Lingua principale
- Python
- Stelle
- 58
- Fork
- 43
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di linuxmint/mintsystem
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
linuxmint/mintsystem#153 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
linuxmint/mintsystem#151 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 57/100
linuxmint/mintsystem#152 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
linuxmint/mintsystem#150 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
linuxmint/mintsystem#144 ·
Tutte le issue di linuxmint/mintsystem
Issue simili
-
Task select patterns with uppercase letters never matchForse già presa @manobhisriram l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
app: scripts status: backlog type: housekeeping
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
netbox-community/netbox-scripts#239 ·
I maintainer di solito rispondono entro 1 giorno
-
Lambda deploys fail once the bundle grows by about 254 KBForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
developmentseed/titiler-cmr#341 ·
I maintainer di solito rispondono entro 1 giorno
-
Card tables add "..." to every value in a DataFrame column when any value is longer than 30 charactersForse già presa @omkarbandikatte l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno