Outils pour utilisateurs

Outils du site


issue192:q._et_r

Welcome back to another edition of Questions and Answers! In this section we will endeavour to answer your Ubuntu questions. Be sure to add details of the version of your operating system and your hardware. I will try to remove any personally identifiable strings from questions, but it is best not to include things like serial numbers, UUIDs, or IP addresses. If your question does not appear immediately, it is just because there is such a lot, and I do them, first-come-first-served.

Bienvenue de retour dans un nouvel épisode de Q. ET R. ! Dans cette rubrique, nous essayerons de répondre à vos questions sur Ubuntu. Assurez-vous d’ajouter les détails de la version de votre système d’exploitation et de votre matériel. J’essaierai d’enlever de vos questions toutes chaînes qui pourraient vous identifier personnellement, mais il vaut mieux ne pas inclure des choses comme des numéros de série, des UUID ou des adresses IP. Si votre question n’apparaît pas tout de suite, ce n’est que parce qu’il y en a beaucoup et que je les traite sur la base de premier venu, premier servi.

Not all developers are created equal. I had a meeting to do an induction with a new developer. He had not received his machine yet, courier issue, so I proceeded to help him set up his Windows laptop. Just so that he could get his email so long and communicate with his team etc. He had an issue setting up openvpn, so I asked him to share his screen so I could help him. I suddenly had flashbacks of Windows XP computers with icons and folders littering the desktop, all with the single purpose of pirating something. Folders like fix to download spiderman or whatever. Since the machine was also as slow as treacle running uphill, I suggested he do some virus scans.(Installing malwarebytes took 40 minutes!) In the end I continued helping him at a snail’s pace with everything freezing so often. To make matters worse, he would unplug the laptop power between every call, making the laptop even slower. After the roller coaster ride was over I asked him the specs of his machine. He blamed the i3 CPU for the slowness. Though it could be, the fact that the laptop had only 2Gb of memory was what caught my eye. Windows 10 alone may be fine, but running office as well as your frikking huge IDE and 3 different browsers with many open tabs… and you wonder why it freezes? Needless to say I had a good chuckle over a hot cuppa.

Tous les développeurs ne sont pas créés égaux. J’avais une réunion pour faire l'introduction d’un nouveau développeur. Il n’avait pas encore reçu sa machine pour les courriels et autres messages, et je l’ai donc aidé à paramétrer son portable sous Windows. Ne serait-ce que pour qu’il puisse recevoir ses mails et communiquer avec son équipe, etc. Il a rencontré un problème dans la configuration d’openvpn et je lui ai demandé de partager son écran pour que je puisse l’aider. Tout d’un coup, je revoyais dans ma tête des ordinateurs Windows XP avec des icônes et des dossiers éparpillés un peu partout sur le bureau, tous avec le seul objectif de pirater quelque chose. Des dossiers créés pour télécharger Spiderman ou n’importe quoi. Puisque la machine était également aussi lente que la mélasse en janvier, je lui ai suggéré de faire quelques scans pour des virus. (L’installation de malwarebytes a pris 40 minutes !) Finalement, je continuais à l'aider à la vitesse d’un escargot ; tout se bloquait très souvent. Pire encore, il débranchait l’alimentation du portable entre chaque appel, ce qui rendait le portable encore plus lent. Après ce tour sur une montagne russe, je lui ai demandé les spécifications de sa machine. Il pensait que la lenteur était due au processeur i3. Bien que cela puisse être possible, ce qui a retenu mon attention était que le portable n’avait que 2 Go de RAM. Seul, Windows 10 peut éventuellement survivre, mais faire tourner Office ainsi qu’un énorme IDE et trois navigateurs différents avec plein d’onglets ouverts … et vous vous demandez pourquoi il se bloque ? Il va sans dire que j’ai bien rigolé en buvant un thé chaud.

Q: I was running EndeavourOS on my Thinkpad and the wifi kept dropping. So I went back to Ubuntu. I downloaded 20.04.2 this time and installed that. The problem followed. The big issue here is that it wasn’t an issue in 18.04. I checked dmesg to find → “iwlwifi expected hw-decrypted unicast frame for station” before it disconnected. A: Your issue has been seen before: https://unix.stackexchange.com/questions/672005/iwlwifi-expected-hw-decrypted-unicast-frame-for-station/672006#672006 Q: Mistake by me. Formatted a USB flash drive, which was defined as sdc1. By mistake, when formatting through the terminal, I typed sdb1. Komputer stopped loading. A: Reinstall quick.

Q : J’avais EndeavourOS sur mon Thinkpad et le WiFi se déconnectait sans cesse. Je suis retourné donc à Ubuntu. J’ai téléchargé la 20.04.2 cette fois-là et l’ai installée. Le problème restait le même. Et c’est vraiment bizarre, parce que ce n’était pas un problème dans la 18.04. J’ai vérifié dmesg où j’ai trouvé « iwlwifi expected hw-decrypted unicast frame for station » avant sa déconnexion.

R : Votre problème est connu : https://unix.stackexchange.com/questions/672005/iwlwifi-expected-hw-decrypted-unicast-frame-for-station/672006#672006

Q : Mon erreur. J’ai formaté une clé USB qui était définie comme sdc1. Quand j’ai fait le formatage dans le terminal, j’ai malheureusement tapé sdb1. Komputer s’est arrêté de se charger.

R : Faites une réinstallation aussi vite que possible.

Q: How can I see that my machines do not have PPA. A: Open your terminal and type: find /etc/apt -name '*.list' Q: I have inherited a bunch of 2GB mini SD cards that I want to put distro’s on. I am clearing them, then reformatting them. The error I don’t understand says - mount: /mydirectory: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error. A: You could simply use the “disks” application if you run a GUI, or if you are using something like fdisk, remember that you still have to make the filesystem on the partition, even if it made the partition “Linux”.

Q : Comment voir si mes machines n’ont pas de PPA ?

R : Ouvrez un terminal et tapez : find /etc/apt -name '*.list'

Q : J’ai hérité d’un tas de cartes mini SD de 2 Go sur lesquelles je veux mettre des distro. Je les efface, puis les reformate. L’erreur que je ne comprends pas dit « - mount: /mydirectory: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error.»

R : Vous pouvez tout simplement utiliser l’application « disks » si vous avez une interface graphique ou, si vous utilisez quelque chose comme fdisk, souvenez-vous qu'il faut créer un système de fichiers sur la partition, même s’il a appelé la partition « Linux ».

Q: I hope you can help me, I literally have this laptop and this problem, but it does not work for me. https://askubuntu.com/questions/708247/cant-boot-into-ubuntu-in-windows-10-ubuntu-dual-boot A: My first stop would be the UEFI BIOS, and make sure it does not boot to windows under the boot section. I looked at the answer and the XPS BIOS does not look like that. Tap F2 to enter the BIOS and you should see a block marked boot. My money is on the first entry being windows boot manager or something similar. Q: So I ran apt-get update on an older PC that I haven’t updated in a long time, but it failed due to a 404 error. (Xenial) Is there no way to get all those updates until they actually died? A: The updates get archived, so it is possible. You need to change the repositories slightly, eg: http://us.archive.ubuntu.com/ubuntu xenial-backports ← notice the archive part. (https://gist.github.com/rohitrawat/60a04e6ebe4a9ec1203eac3a11d4afc1)

Q : J’espère que vous pouvez m’aider, car j’ai vraiment ce portable et ce problème, mais ceci ne fonctionne pas pour moi. https://askubuntu.com/questions/708247/cant-boot-into-ubuntu-in-windows-10-ubuntu-dual-boot

R : J’irais tout d’abord au BIOS UEFI pour m’assurer qu’il ne démarre pas sur Windows dans la section boot. J’ai regardé la réponse et le BIOS XPS ne ressemble pas à cela. Tapez F2 pour entrer dans le BIOS et vous devriez voir une section appelé boot. Je parie que la première entrée est le gestionnaire de démarrage Windows ou quelque chose de similaire.

Q : Bon, j’ai exécuté apt-get update sur un PC vieillissant que je n’ai pas mis à jour depuis longtemps, mais cela a échoué à cause d’une erreur 404. (Xenial) N’y a-t-il pas une façon pour avoir toutes ces mises à jour jusqu’à leur véritable mort ?

R : Les mises à jour sont archivées et c’est donc possible. Il faut modifier les dépôts un peu, par exemple : http://us.archive.ubuntu.com/ubuntu xenial-backports ← notez-bien la partie archive. (https://gist.github.com/rohitrawat/60a04e6ebe4a9ec1203eac3a11d4afc1)

Q: I am learning LPI basics at the moment. They taught us about uptime and free. Are there more ways to do this? A: Sure, but for the exam, no. May I suggest looking at the github page for neofetch, it is all bash, to see how he does it. Inxi is another. You could even go ‘old skool’ and use ls. Try typing lsmem. You gave me an idea for CnC, thank you. Q: Hi, I am still new at this, don’t brush me off please. I want to take the output of lsb_release –a and display it in a nice GUI window, but there is an error at the top saying; No LSB modules are available. Is this necessary??? A: The computer did what you asked it to do. You can trim the output, for example: lsb_release –crid

Q : J’apprends actuellement les bases de LPI. Ainsi, j’ai vu uptime et free. Y a-t-il plus de façons de le faire ?

R : Oui, bien sûr, mais pas pour l’examen. Je vous suggère de regarder la page github pour neofetch, car tout est en bash, pour voir comment lui, il le fait. Inxi en est un autre. Vous pourriez même retourner à la « vieille école » et utiliser ls. Faites un essai en tapant lsmem. Vous m’avez donné une idée pour C&C et je vous en remercie.

Q : Salut, ne m’abandonnez pas, s’il vous plaît, car je suis encore un débutant. Je veux prendre la sortie de lsb_release -a et l’afficher dans une jolie fenêtre dans l’interface graphique, mais en haut il y a une erreur qui dit No LSB modules are available. Est-ce bien nécessaire ???

R : L’ordinateur a fait ce que vous lui avez demandé. Vous pouvez modifier la sortie, par exemple : lsb_release -crid

Q: Is it possible for me to have natural scrolling for my mouse, but not my touchpad? Ubuntu 22.04, Dell 7420, 16Gb A: Not that I know of. Q: This is what I want to do, I want to upgrade from 16.04 to 22.04 without having to go through all the rigmarole in-between. There must be a way. I haven’t got time to sit around and play technician. Let me have it. A: Step 1, copy your home folder to an external disk. Step 2, install Ubuntu 22.04 over 16.04. Step 3, copy the contents of your home folder back.

Q : Est-il possible d’avoir un défilement naturel pour ma souris, mais pas pour mon pavé tactile ? Ubuntu 22.04, Dell 7420, 16 Go

R : Pas à ma connaissance.

Q : Voici ce que je voudrais faire : je voudrais mettre à jour la 16.04 vers la 22.04 sans devoir passer par toutes les versions intermédiaires. Il doit y avoir une façon de le faire. Je n’ai pas le temps de jouer au technicien. Dites-le-moi.

R : Premièrement, copiez votre dossier personnel sur un disque externe. Deuxièmement, installez Ubuntu 22.04 par-dessus la 16.04. Troisièmement, copier le contenu de votre dossier personnel dessus.

Q: Why is it that even if I disable a service, it can start running again? I want to disable, for instance, systemctl disable systemd-oomd.service but it sometimes still rears it’s ugly head. A: There has been a lot of discussion around oomd that I did not follow. However, I think your issue lies with systemctl. Just think of systemctl this way, disabling it, just prevents the initial start up. It does not stop other programs calling it. You need to mask it if you want it invisible/unavailable to other programs. Q: My team keeps telling me there is no connection on Ubuntu, but I don’t have this issue on MacOS. What is the problem? I tried reinstalling it, but it did not help. A: Just wait, you will have that issue on MacOS. Since teams is basically chromium, you need to exit it completely and remove all the cache files. When you restart it, it will re-populate these files and you can work as normal.

Q : Pourquoi, quand je désactive un service, il peut recommencer à s’exécuter ? Je veux désactiver, par exemple le service systemctl disable systemd-oomd.service, mais parfois, il resurgit.

R : Il y a eu une longue discussion sur oomd que je n’ai pas suivie. Toutefois, je pense que votre problème est avec systemctl. Pensez-y de cette façon : la désactivation de systemctl n'empêche que le démarrage initial. Mais pas les appels d’autres programmes. Il faut le masquer si vous voulez le rendre invisible/indisponible à d’autres programmes.

Q : Mon team n’a de cesse de me dire qu’il n’y a pas de connexion sur Ubuntu, mais je n’ai pas ce problème sur MacOS. Quel est le problème ? J’ai essayé de la réinstaller, mais il n’y a eu aucune amélioration.

R : Il suffit d’attendre et vous aurez le même problème sur MacOS. Puisque teams est chromium à la base, il faut en sortir complètement et supprimer tous les fichiers cache. Quand vous redémarrerez votre système, les bons fichiers y seront et vous pourrez travailler normalement.

Q: My fresh Ubuntu install on a Dell XPS with 32 GB memory and 1TB Nvme is slow and sluggish. On the other hand Windows 11 is greased lightning on it. What can the problem be? A: As I will be transitioning to one soon, I will let you know, but in my experience, secure boot is usually to blame. Try turning it off and installing again. Q: I have to ask, is there some way I can use facial recognition for Ubuntu? My fingerprint sensor on my laptop is not working under Ubuntu, only Windows, but if I can just open the laptop and it can scan my face, it will be even better. A: I am unsure here, but there is a project doing that: https://github.com/boltgolt/howdy If and how it works, is a “mess around & find out” -deal

Q : Ma nouvelle installation d’Ubuntu sur un Dell XPS avec 32 Go de RAM et 1 To de Nvme est lente et molle. En revanche, Windows 11 est rapide comme l’éclair. Où est le problème ?

R : Puisque je vais passer à une telle machine bientôt, je vous le dirai, mais, d’après mon expérience, secure boot est généralement le fautif. Essayez de le désactiver et de faire une réinstallation.

Q : Je suis obligé de poser cette question : y a-t-il une façon d’utiliser la reconnaissance faciale sous Ubuntu ? Le capteur d’empreinte digitale sur mon portable ne fonctionne pas sous Ubuntu, mais uniquement sous Windows. Mais si je peux tout simplement ouvrir le portable et qu'il peut scanner mon visage, ce sera encore mieux.

R : Je ne suis pas certain ici, mais il y a un projet qui travaille dessus : https://github.com/boltgolt/howdy Si et comment cela fonctionne est du genre « bricoler et trouver par soi-même. »

issue192/q._et_r.txt · Dernière modification : 2023/05/04 16:51 de andre_domenech