banner



How To Fix Broken Packages In Linux

Quick fixes for common Linux bug

Fix Linux
If you're having troubles with the latest distro, we tin show you how to figure out whats going awry

Nosotros'll come right out and say this – Linux breaks. There, nosotros've got that off our chests. No matter how much we might like our called distro, there is no denying that things tin can go incorrect, or that it might not even be correct in the first place.

Of form, Linux distros are non lonely in this – a computer arrangement is a huge, complex collection of interacting software and hardware, even more than so when the bones install includes several gibibytes of extra software over and above the OS. The typical distro has more components than a machine engine, withal is open for, and even encourages, user fiddling, which leads the curious user to indulge in some provocative maintenance.

To make information technology worse, a computer is oft congenital from bits fabricated past different manufacturers – motherboard from i, graphics bill of fare from another, soundcard from elsewhere – and an operating system that many hardware manufacturers pay no more than than lip service to, if that. Between the Answers pages of Linux Format and the Help forum on our website, nosotros see the pain you sometimes suffer and nosotros're here to aid.

So here's our guide to dealing with some of the well-nigh common bug, and some communication on how to bargain with new disasters. The types of difficulties nearly ofttimes seen can exist split into a number of broad categories: booting, hardware and drivers, misbehaving software and networking are among the virtually pop topics for word. We can't show yous solutions for every problem that might arise, but we can show some of the common bug people face and, more than importantly, show you how to go nigh identifying a problem.

Ane more affair to acquit in listen every bit yous're reading is that even if you lot can't work out the solution yourself, an authentic clarification of the problem will be of not bad help when asking others for communication.

Fix Linux booting problems

Distro installers are pretty good at identifying an existing Windows installation and setting up dual booting, but should you lot have to reinstall a spyware-riddled Windows install you'll detect that your machine boots direct into Windows and that your Linux installation is gone!

Don't panic: all Windows has done is overwrite the Grub bootloader with its own equivalent, removing your kick carte du jour. All your data is nonetheless there – you simply need to reload the bootloader configuration into the deejay's master boot record (MBR). Yous'll need to kicking from a Live CD to do this, this, then open a concluding and run

sudo grub-install /dev/sda

This assumes yous have everything installed on the get-go (or simply) hard drive. Grub-install will usually make a practiced job of detecting a Grub installation and set things back to rights. If information technology doesn't, you lot'll take to exercise it manually, which is a lot easier than information technology sounds. Run sudo chow to enter the Chow trounce. And then run

find /boot/grub/stage1

to determine which sectionalisation holds the Grub files. If Windows is on the first division Grub is probable to be on the second, in which case this control will return something similar (hd0,1). At present set Chow up with

root (hd0,1)
setup (hd0)
quit

The beginning control identifies the boot segmentation, the second writes the bootloader to the MBR and and so you leave the Chow shell. Grub is only concerned with the location of /kick, and then if y'all have a carve up /boot partition, omit the /kick part from the observe command.

When booting stalls

In times of yore, the Linux kicking sequence scrolled pages of text up the screen. Nearly of information technology was undecipherable to mere mortals, but if information technology stopped you lot could see exactly where it stopped, with the last line or two of text containing a clue to the problem.

Nowadays, distros show a splash screen while they're booting, which is all very nice until things go wrong, then the boot stops and the splash screen hides all the clues. If the failure is early in the kick sequence, yous may find that calculation noapic to the kernel boot line helps. Do this in the aforementioned way you remove the splash references (see box below).

If this does set it, edit the Grub configuration file at /boot/ grub/carte du jour.lst or /boot/grub/grub.conf and add the noapic option, or others your searches revealed equally cures. Y'all tin can use the same technique if your arrangement is slow in shutting downwards, watching the output to see where information technology stalls or pauses for likewise long. Every bit with so many problems that can ascend, it's easier to find an answer once you know the trouble.

How To Fix Broken Packages In Linux,

Source: https://www.techradar.com/in/news/software/operating-systems/quick-fixes-for-common-linux-problems-561079

Posted by: jacksonhipild.blogspot.com

0 Response to "How To Fix Broken Packages In Linux"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel