How to make a Bluetooth game controller show up under /dev/input/js* in addition to /dev/input/event*? https://askubuntu.com/questions/1565596/how-to-make-a-bluetooth-game-controller-show-up-under-dev-input-js-in-addition

I'm using Ubuntu Cinnamon 24.04, and have a Bluetooth gamepad (a Gioteck WX5 that emulates a Nintendo Switch 2 Pro Controller). I can pair it with my laptop, and when I do, it shows up as a pair of devices in /dev/input (specifically, "Pro Controller" in /dev/input/event18, which responds to button presses and thumbstick movements, and "Pro Controller (IMU)" in /dev/input/event19, which I think (but am not totally sure) is the accelerometer / motion controls).

I can confirm that the gamepad is working by using evtest, which displays the button presses. I have added myself to the input group in /etc/group, giving myself permissions to read from /dev/input directly.

However, the gamepad doesn't show up under /dev/input/js*, which means that some programs (such as jstest-gtk) aren't able to see it. I'm particularly interested in using the gamepad from a browser such as Firefox or Chromium, but they don't appear to see the gamepad either, and I think that the fact that it doesn't show up under /dev/input/js* is the most likely cause. (To rule out possibilities, I also tried a wired Xbox 360 game controller, and this does show up as /dev/input/js0 and does work correctly in at least Chromium.)

I tried checking for existing questions but none seemed to have similar enough circumstances: in most of them, the controller was appearing in /dev/input/js* and the problem was elsewhere. This question is the closest, but the journalctl entries I'm seeing are substantially different from the ones seen in that case:

kernel: nintendo 0005:057E:2009.0005: hidraw2: BLUETOOTH HID v80.01 Gamepad [Pro Controller] on [REDACTED]
kernel: nintendo 0005:057E:2009.0005: controller MAC = [REDACTED]
kernel: nintendo 0005:057E:2009.0005: using user cal for left stick
kernel: nintendo 0005:057E:2009.0005: using user cal for right stick
[...]
kernel: nintendo 0005:057E:2009.0005: failed reading SPI flash; ret=-110
kernel: nintendo 0005:057E:2009.0005: Failed to read left stick cal, using defaults; e=-110
kernel: nintendo 0005:057E:2009.0005: failed reading SPI flash; ret=-110
kernel: nintendo 0005:057E:2009.0005: Failed to read right stick cal, using defaults; e=-110
kernel: nintendo 0005:057E:2009.0005: using factory cal for IMU
kernel: nintendo 0005:057E:2009.0005: assigned player 1 led pattern
kernel: input: Pro Controller as /devices/pci0000:00/0000:00:14.0/usb3/3-8/3-8:1.0/bluetooth/hci0/hci0:3/0005:057E:2009.0005/input/input31
kernel: input: Pro Controller (IMU) as /devices/pci0000:00/0000:00:14.0/usb3/3-8/3-8:1.0/bluetooth/hci0/hci0:3/0005:057E:2009.0005/input/input32
systemd[1]: Starting iio-sensor-proxy.service - IIO Sensor Proxy service...
systemd[1]: Started iio-sensor-proxy.service - IIO Sensor Proxy service.
systemd[1]: iio-sensor-proxy.service: Deactivated successfully.

I also don't want to blacklist the Nintendo driver because part of the reason I bought this controller is that I was interested in making use of the motion/accelerometer inputs (given that I already have a different controller for which the button/joystick inputs work).

Is there a way to configure the Bluetooth gamepad to show up under /dev/input/js* in addition to /dev/input/event*, and/or to allow Chromium to see it directly from /dev/input/event*?

How to manage top toolbar in Lubuntu 24.04 LTS version https://askubuntu.com/questions/1565594/how-to-manage-top-toolbar-in-lubuntu-24-04-lts-version

how to enlarge the top toolbar on the home page in Lubuntu 24.04 LTS version.

Can't access Windows partition https://askubuntu.com/questions/1565593/cant-access-windows-partition

My PC is a Lenovo L390 Yoga. I want to access some documents from this partition before formatting if they are still intact.

Error message:

Error message

It's a partition on my SSD with Windows 11. It broke when installing Linux, and I was unable to log in afterwards (probably user errors), and the installation completely broke when trying some recovery options and getting into the system through safe mode.

I'm not sure if the issue is just NTFS or the installation got corrupted. I don't think I have a hardware error. Are there any good tools to get access and copy some old files?

Why do all my programs spam app icons when installed? https://askubuntu.com/questions/1565590/why-do-all-my-programs-spam-app-icons-when-installed

I'm not sure how to phrase this. Every time I download an app or program, no matter if it's from Steam, App Center, Flathub, or anywhere else, I get either one icon of it on my app screen, or I get 1-2 pages full of it.

or i get 1-2 pages full of it

I thought maybe I pressed a button to mess it up, but I just downloaded something new, and the same thing happened again.

Before you ask, no, I didn't download most of these programs from different sources. only a few apps were downloaded from different sources, and those aren't the ones I'm confused about. For example, all of my Steam games have several respective icons.

all of my steam games have several respective icons

...and you can't download a game from Steam twice. Most things I download are Steam games, so this is the bigger issue.

I only have one semi-normal page. It's getting out of control.

i only have one semi-normal page.

VG is missing PV https://askubuntu.com/questions/1565588/vg-is-missing-pv

I add to log in with Ubuntu ISO USB to execute logical volume commands. (see this post : BusyBox Error: /dev/mapper/ubuntu--vg--1-ubuntu--lv does not exist)

This is the output of sudo pvdisplay :

WARNING: Couldn't find device with uuid s1Lc3M-IEV3-rlYT-Xh2M-sOrW-V7uT-13gZHI
WARNING: VG ubuntu-vg-1 is missing PV s1LC3M-IEV3-rlYT-Xh2M-sOrW-V7uT-13gZHI (last written to /dev/sda3)

--- Physical volume ---
PV Name  /dev/sdb3
VG Name ubuntu-vg-1
PV Size 229.83 GiB / not usable 2.00 MiB
Allocatable yes (but full)
Free PE 0
Allocated PE 58837
PV UUID feuyw9-FMnT-0sV2-dex4-ETaf-ss2f-ayXBPV

-- Physical volume ---
PV Name  [unknown]
VG Name  ubuntu-vg-1
PV Size <1.82 TiB / not usable 4.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 476150
Free PE 476150
Allocated PE 0

Output of pvs -a :

WARNING: Couldn't find device with uuid s1Lc3M-IEV3-rlYT-Xh2M-sOrW-V7uT-13gZHI
WARNING: VG ubuntu-vg-1 is missing PV s1LC3M-IEV3-rlYT-Xh2M-sOrW-V7uT-13gZHI (last written to /dev/sda3)

PV          VG           Fmt        Attr   PSize    PFree

/dev/sda                            ---    0        0
/dev/sdb3   ubuntu-vg-1  lvm2       a--   229.83g   0
[unknown]   ubuntu-vg-1  lvm2       a-m   <1.82t    <1.82t

Output of lsblk :

NAME                        SIZE    RO  TYPE    MOUNTPOINTS

sda                         1.8T    0    disk
sdb                         232.9G  0    disk
  sdb1                      1G      0    part
  sdb2                      2G      0    part
  sdb3                      229.8G  0    part
    ubuntu--vg--1-ubuntu--lv 229.8G 0 lvm

What to do in order to recover the device and make the system work?

Problem customizing an Ubuntu 24 qcow2 image with virt-customize https://askubuntu.com/questions/1565586/problem-customizing-an-ubuntu-24-qcow2-image-with-virt-customize

I'm using an Ubuntu 24.04 server to customize a qcow2 file (also Ubuntu 24.04). When I did this on an Ubuntu 22.04 server, this process seemed to work. Now I'm getting a few errors that I can't seem to resolve. I run virt-customize --network

When the image is booting, see these errors

+ grep nameserver /etc/resolv.conf
grep: /etc/resolv.conf: No such file or directory
No filesystem is currently mounted on /sys/fs/cgroup.

When the actual script is running, I see entries like this

Temporary failure resolving 'security.ubuntu.com'

I tried running the virt-customize with the -v -x debug flags as well as with these settings enabled

export LIBGUESTFS_BACKEND=direct
export LIBGUESTFS_DEBUG=1
export LIBGUESTFS_TRACE=1

Asking AI, it suggested to disable some sysctl setings. But that didn't work.

sysctl -w kernel.apparmor_restrict_unprivileged_userns=0

I tried changing the /etc/resolv.conf and the /etc/systemd/resolved.conf but to no avail...

Has anyone else experienced this? Do you you have some good tips and tricks on changing qcow files?

BusyBox Error: /dev/mapper/ubuntu--vg--1-ubuntu--lv does not exist https://askubuntu.com/questions/1565584/busybox-error-dev-mapper-ubuntu-vg-1-ubuntu-lv-does-not-exist

During installation and configuration of Ubuntu 24.04 I must have made some mess because rebooting I get the BusyBox error:

(initramfs) exit
Gave up waiting for root file system device. Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
 - Missing modules (cat /proc/modules: ls /dev)
ALERT! /dev/mapper/ubuntu--vg--1-ubuntu--lv does not exist. Dropping to a shell!!

BusyBox v1.36.1 (Ubuntu 1:1.36.1-6ubuntu3.1) built-in shell (ash)

(initramfs) blkid
/dev/sdb2: UUID="a4052609-0706-438a-b474-9a14fbc00a00" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="bd533eb7-85c7-499c-89a1-3a6414c6c48e"
/dev/sdb3: UUID="feuyw9-FMnT-0sV2-dex4-ETaf-ss2f-ayXBPV" TYPE="LVM2_member" PARTUUID="ce9cc95c-273c-4e5a-b659-e224c029ee83"
/dev/sda: UUID="cb1ca592-49da-4743-a031-62cb2ee8926b" BLOCK_SIZE="4096" TYPE="ext4"

(initramfs) fsck -y /dev/sdb2
fsck from util-linux 2.39.3
e2fsck 1.47.0 (5-Feb-2023)
/dev/sdb2: clean, 317/131072 files, 55322/524288 blocks

(initramfs) fsck -y /dev/sda
fsck from util-linux 2.39.3
e2fsck 1.47.0 (5-Feb-2023)
/dev/sda: clean, 11/122101760 files, 7947223/488378646 blocks

(initramfs) fsck -y /dev/sdb3
fsck from util-linux 2.39.3

(initramfs) fsck -y /dev/sdb1
fsck from util-linux 2.39.3

(initramfs) reboot
(initramfs)_

The "reboot" command does not execute

How to solve the issue?

How to have /home on a separate partition [duplicate] https://askubuntu.com/questions/1565582/how-to-have-home-on-a-separate-partition

I am working with 24.4.1 LTS. I have a new (to me) laptop with 256gig SDD. I have the appropriate copies of my old data.

I have used gparted to set up my new hard drive with two partitions. It is my desire to create a new fresh installation with the system files on the smaller (30gig) partition and /home on the larger (220+gig) partition.

At install I don't see any option for that setup. When I run the install everything goes on the small partition.

So, how do I instruct the installer to use the large partition for /home? Or failing that how can I copy /home to the new partition and edit etc/fstab to mount it in the proper position. (BTW I tried the edit and royally ducked my laptop and had to start over.

Thank you in advance for your help. I am not a power user but have been using Ubuntu for many years.

Minimizing items on Refind menu https://askubuntu.com/questions/1565579/minimizing-items-on-refind-menu

I am setting up Linux on my desktop PC, and want to display only two items on the menu (Ubuntu and Windows). If I include menu stanzas in my refind.conf, will this accomplish that task? That being said, I do want a USB drive to be displayed if I plug one in. I ask this, because my fiancee uses my computer, and gets confused if I ask her to boot into Linux, vs Windows. I am also completely blind, and sometimes need to ask for her assistance in verifying which item is selected when booting. Lastly, I noticed there is no PPA repository for Ubuntu releases later than Plucky. Is this because Ubuntu now includes it in their repos? Thanks much for your help.

colours with Radeon RX 550 graphics card https://askubuntu.com/questions/1565578/colours-with-radeon-rx-550-graphics-card

I've installed an AMD Radeon RX 550 in my PC running Ubuntu 24.04. Installation went fine and the system booted as soon as the card was installed. I didn't need to install any new drivers.

I have two displays: a Hannspree monitor and a Samsung TV.

The colours on the Hannspree monitor are fine, but the Samsung TV colours are clearly not right - most obviously with the yellows and greens which are much too bright (like a highlighter pen). It doesn't matter which display is connected via HDMI and which via VGA - the Hannspree monitor is always fine, the Samsung TV is always a problem.

There was no problem with the colours on the Samsung TV with my old card (an Nvidia), though the system was unstable with that card which is why I replaced it. Adjusting the white balance on the Samsung TV doesn't tone things down enough either, even when I adjust the reds, greens and blues while running DisplayCal with a calibration tool attached.

How can I fix this?

No wired or wireless connection in Ubuntu 24.04.4 LTS https://askubuntu.com/questions/1565576/no-wired-or-wireless-connection-in-ubuntu-24-04-4-lts

One day recently my Wifi stopped working. If I go to Settings > Network, I see the VPN and Proxy settings but nothing else. No networks are listed.

I tried a hard reset -- powering down, removing the battery, holding down the power button for 30 seconds. That didn't help.

root@xps:/home/myself# lshw -C network
  *-network UNCLAIMED       
       description: Network controller
       product: Comet Lake PCH CNVi WiFi
       vendor: Intel Corporation
       physical id: 14.3
       bus info: pci@0000:00:14.3
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix cap_list
       configuration: latency=0
       resources: iomemory:600-5ff memory:604b11c000-604b11ffff
root@xps:/home/myself# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute 
       valid_lft forever preferred_lft forever                                                                     

It appears I may need iwlwifi. If I run dmesg | grep iwl there is no output. The internet says I can get iwlwifi by manually installing linux-firmware. Presumably this was installed when the wifi connection was working, but has disappeared. I downloaded the .tar.gz from https://gitlab.com/kernel-firmware/linux-firmware and copied the contents of linux-firmware to /lib/firmware. After running sudo update-initramfs -u and rebooting, I still don't see any networks at Settings > Network.

I have also tried establishing a wired connection, but connecting to the router (using an ethernet-to-usb-c adapter) does not result in any networks being listed at Settings > Network.

The computer is a Dell XPS 9500.

Connecting VTR to Desktop PC https://askubuntu.com/questions/1565563/connecting-vtr-to-desktop-pc

Sony VTR, 2009 model, How can I connect this machine to my Desktop 24.04, to both run and save content to Memory stick or whatever. Currently running most recent version of Ubuntu.

I am running 24.04, and await the April release of 26.04. I agree I was vague. My mistake and sorry. The Sony VCR is Model SLV-SE820. It only has Scart in and Scart out on the rear panel and 2 phone female plugs, white and red. The recorder does have on the front panel "line in" Red, White and Yellow.

System Details Report

Report details

  • Date generated: 2026-04-08 17:45:42

Hardware Information:

  • Hardware Model: Gigabyte Technology Co., Ltd. H110M-S2H
  • Memory: 8.0 GiB
  • Processor: Intel® Pentium® G4400 × 2
  • Graphics: Intel® HD Graphics 510 (SKL GT1)
  • Disk Capacity: 878.2 GB

Software Information:

  • Firmware Version: F22
  • OS Name: Ubuntu 24.04.4 LTS
  • OS Build: (null)
  • OS Type: 64-bit
  • GNOME Version: 46
  • Windowing System: Wayland
  • Kernel Version: Linux 6.17.0-20-generic

Thanks

How do I set a pure black-on-white colorscheme in Terminal 49.1 in Ubuntu 25.10? https://askubuntu.com/questions/1565554/how-do-i-set-a-pure-black-on-white-colorscheme-in-terminal-49-1-in-ubuntu-25-10

Back in Ubuntu 25.04's terminal (not sure if it was gnome-terminal or not), I was able to set terminal colors in the preferences.

In Ubuntu 25.10, I do not see any option to either create a new color scheme or to set colors manually.

Is this option hidden somewhere, or is there a command line option to do it?

Random Application freeze on Ubuntu 24.04, 25.04 and 25.10 ASUS ZenBook Duo (Intel Arc Graphics) https://askubuntu.com/questions/1563544/random-application-freeze-on-ubuntu-24-04-25-04-and-25-10-asus-zenbook-duo-int

I'm having a situation where applications are very slow to start on first launch, and often freeze with the standard "Application is not responding" dialog in GNOME popping up. If I give it a few seconds (sometimes up to a few minutes!), it will go away and the application will act like nothing's wrong. However when I switch to a different application, the same thing will sometimes happen. This happens often enough to be very annoying. I thought it might have something to do with the video drivers, since this is a bleeding edge new machine (Intel Arc graphics, and dual screens in the laptop). But reinstalling the graphics drivers doesn't fix the issue. I've also tried upgrading and downgrading to different versions of Ubuntu (24.04, and 25.10), and still have same issues, so I know it's not specific to 25.04, which is what I'm currently using, and it's likely specific to this machine (ASUS Zenbook Duo with Intel Arc Graphics).

It's odd because I know the graphics card is working - I've been using it to render Blender stuff for various clients. There are the occasional freezes, but nothing is actually broken. The mouse cursor moves freely, and the rest of the system seems to run smoothly while the application is unresponsive. I've been getting by by switching tasks, while the applications recover, which works, but is definitely not ideal.

My laptop is an ASUS Zenbook Duo, UX8406C, and here's my full system details:

# System Details Report

---

## Report details

- **Date generated:** 2026-02-03 12:09:08

## Hardware Information:

- **Hardware Model:** ASUSTeK COMPUTER INC. ASUS Zenbook Duo UX8406CA_UX8406CA

- **Memory:** 32.0 GiB

- **Processor:** Intel® Core™ Ultra 9 285H × 16

- **Graphics:** Intel® Graphics (ARL)

- **Disk Capacity:** 2.0 TB

## Software Information:

- **Firmware Version:** UX8406CA.303

- **OS Name:** Ubuntu 25.04

- **OS Build:** (null)

- **OS Type:** 64-bit

- **GNOME Version:** 48

- **Windowing System:** Wayland

- **Kernel Version:** Linux 6.14.0-37-generic

"No Wi-Fi adapter found", 24.04 https://askubuntu.com/questions/1537214/no-wi-fi-adapter-found-24-04

I installed Ubuntu 24.04 on my PC a few moths ago and for these months the Wi-Fi was working fine.

I kept the PC off for a few days. Now that I have turned it back on the Wi-Fi is not working. If I open the Wi-Fi setting page I get the message "No Wi-Fi adapter found".

Following the script in this question I have gathered the wi-fi information here https://termbin.com/pnv0v

The system is updated (Ubuntu 24.04.1 LTS). The kernel version is Linux 6.8.0-51-generic.

I have already tried the following with no success (they were already installed):

sudo apt install linux-firmware
sudo apt install broadcom-sta-dkms

Any suggestion is welcome.

Missing Signed-By in the sources.list(5) entry after installing Ubuntu 24.04 https://askubuntu.com/questions/1516700/missing-signed-by-in-the-sources-list5-entry-after-installing-ubuntu-24-04

Hope you are doing well. The problem started to show up after I upgraded Ubuntu 23.10 ---> Ubuntu 24.04 LTS (through the Gnome Software Updater).

Here is the output of the sudo apt update -y command:

$ sudo apt update -y
Hit:1 https://archive.ubuntu.petiak.ir/ubuntu noble InRelease
Hit:2 https://archive.ubuntu.petiak.ir/ubuntu noble-updates InRelease
Hit:3 https://archive.ubuntu.petiak.ir/ubuntu noble-backports InRelease
Hit:4 https://dl.google.com/linux/chrome/deb stable InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
19 packages can be upgraded. Run 'apt list --upgradable' to see them.
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://dl.google.com/linux/chrome/deb stable InRelease' doesn't support architecture 'i386'
N: Missing Signed-By in the sources.list(5) entry for 'https://archive.ubuntu.petiak.ir/ubuntu'
N: Missing Signed-By in the sources.list(5) entry for 'https://archive.ubuntu.petiak.ir/ubuntu'
N: Missing Signed-By in the sources.list(5) entry for 'https://archive.ubuntu.petiak.ir/ubuntu'

Disorder parts:

N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://dl.google.com/linux/chrome/deb stable InRelease' doesn't support architecture 'i386'
N: Missing Signed-By in the sources.list(5) entry for 'https://archive.ubuntu.petiak.ir/ubuntu'
N: Missing Signed-By in the sources.list(5) entry for 'https://archive.ubuntu.petiak.ir/ubuntu'
N: Missing Signed-By in the sources.list(5) entry for 'https://archive.ubuntu.petiak.ir/ubuntu'
Ubuntu 22.04 Kernel Panic - Cannot open root device LVC https://askubuntu.com/questions/1418195/ubuntu-22-04-kernel-panic-cannot-open-root-device-lvc

I tried to update to Ubuntu 22.04 from 20.04 though after updating I have an issue with the system not starting either via normal or recovery or an old kernel version.

[    1.530064] integrity: Loaded X.509 cert 'Canonical Ltd. Master Certificate Authority: ad91990bc22ab1f517048c23b6655a2
[    1.530683] ima: No TPM chip found, activating TPM-bypass!
[    1.530999] Loading compiled-in module X.509 certificates
[    1.531584] Loaded X.509 cert 'Build time autogenerated kernel key: 7f2e266096ca6df1a1e0bcd33100abd18aeaa3ca'
[    1.531911] ima: Allocated hash algorithm: sha1
[    1.532296] ima: No architecture policies found
[    1.532627] evm: Initialising EVM extended attributes:
[    1.532959] evm: security.selinux
[    1.533294] evm: security.SMACK64
[    1.533631] evm: security.SMACK64EXEC
[    1.533969] evm: security.SMACK64TRANSMUTE
[    1.534308] evm: security.SMACK64MMAP
[    1.534757] evm: security.apparmor
[    1.535088] evm: security.ima
[    1.535414] evm: security.capability
[    1.535737] evm: HMAC attrs: 0x1
[    1.536216] PM: Magic number: 14:125:879
[    1.536649] RAS: Correctable Errors collector initialized.
[    1.536987] md: Waiting for all devices to be available before autodetect
[    1.537310] md: If you don't use raid, use raid=noautodetect
[    1.537633] md: Autodetecting RAID arrays.
[    1.537956] md: autorun ...
[    1.538271] md: ... autorun DONE.
[    1.538651] VFS: Cannot open root device "mapper/ubuntu--vg-ubuntu--lv" or unknown-block(0,0): error -6
[    1.538977] Please append a correct "root=" boot option; here are the available partitions:
[    1.539310] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    1.539644] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.15.0-40-generic #43-Ubuntu
[    1.539996] Hardware name: Gigabyte Technology Co., Ltd. Z590 AORUS PRO AX/Z590 AORUS PRO AX, BIOS F5 03/16/2021
[    1.540404] Call Trace:
[    1.540799]  <TASK>
[    1.541189]  show_stack+0x52/0x58
[    1.541582]  dump_stack_lvl+0x4a/0x5f
[    1.541968]  dump_stack+0x10/0x12
[    1.542345]  panic+0x149/0x321
[    1.542718]  mount_block_root+0x144/0x1d9
[    1.543084]  mount_root+0x10c/0x118
[    1.543440]  prepare_namespace+0x13f/0x18d
[    1.543793]  kernel_init_freeable+0x18c/0x1b1
[    1.544152]  ? rest_init+0x100/0x100
[    1.544486]  kernel_init+0x1b/0x150
[    1.544807]  ? rest_init+0x100/0x100
[    1.545125]  ret_from_fork+0x1f/0x30
[    1.545445]  </TASK>
[    1.545808] Kernel Offset: 0x4200000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[    1.546165] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---

Do you have any suggestions?

How to do a release upgrade using private deb repositories? https://askubuntu.com/questions/1405274/how-to-do-a-release-upgrade-using-private-deb-repositories

We have Ubuntu servers (20.04 LTS) without Internet connection. In order to get new apt packages, we have a JFrog Artifactory server with Internet access and connection to our Ubuntu servers mirroring archive.ubuntu.com for specific requests. The sources.list file is changed accordingly. This works fine for apt install <package> and package upgrades.

With the release of 22.04 LTS, we now tried to do a distribution upgrade. However, sudo do-release-upgrade fails with the error message

Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings

Ignoring that currently, 22.04 LTS is not yet in this file, I do not know how to circumvent the tool's desire to download this file from the Internet and do the upgrade using our private package repositories.

I see that do-release-upgrade offers the option --data-dir. It is only shown using --help and unfortunately not within its man page (at least not that I can see). Can this be used? Is there any other switch? I am fine with providing my own meta-release-lts file pointing to our private repositories, if necessary.

Kernel panic not syncing : System is deadlocked on memory https://askubuntu.com/questions/1107077/kernel-panic-not-syncing-system-is-deadlocked-on-memory

I updated my Ubuntu 14.04 kernel to 4.19, however when I reboot there's a error: Kernel panic - not syncing: System is deadlocked on memory. It remains there, and I don't know what to do.

[    2.642645]  ? md_run_setup+0xbd/0xbd
[    2.642683]  ksys_write+0x52/0xc0
[    2.642727]  xwrite+0x29/0x5a
[    2.642763]  do_copy+0x9b/0xc8
[    2.642788]  write_buffer+0x24/0x34
[    2.642816]  flush_buffer+0x2b/0x84
[    2.642843]  __gunzip+0x275/0x31c
[    2.642869]  ? bunzip2+0x39c/0x39c
[    2.642895]  ? __gunzip+0x31c/0x31c
[    2.642922]  gunzip+0xe/0x11
[    2.642947]  ? md_run_setup+0xbd/0xbd
[    2.642975]  unpack_to_rootfs+0x163/0x2b5
[    2.643005]  ? md_run_setup+0xbd/0xbd
[    2.643033]  ? clean_rootfs+0x182/0x182
[    2.643063]  populate_rootfs+0x5d/0x116
[    2.643092]  ? clean_rootfs+0x182/0x182
[    2.643121]  do_one_initcall+0x4a/0x1c6
[    2.643150]  kernel_init_freeable+0x193/0x233
[    2.643182]  ? rest_init+0xb0/0xb0
[    2.643208]  kernel_init+0xa/0x110
[    2.643235]  ret_from_fork+0x35/0x40
[    2.643331] ---[ end Kernel panic - not syncing: System is deadlocked on memory
[    2.643331] ]---
  1. I have made my kernel several times and installed the modules, and there's no error showing in the old terminal.
  2. I used GParted to enlarge my /dev/sda1, and I have set the swap space, all done.
  3. Everything is pretty well with the old kernel. I can login and use Ubuntu smoothly.
Kernel panic when starting installer on HP DL360 G6 https://askubuntu.com/questions/1070655/kernel-panic-when-starting-installer-on-hp-dl360-g6

I can boot up from the USB, but after I select the language (with normal kernel or HWE kernel) on 16.04.5 server, I get this error. I got this Kernel panic - not syncing boot message with an HWE kernel:

[    0.040000] [Firmware Bug]: the BIOS has corrupted hw-PMU resources (MSR 38d is 330)
[    0.196003] ACPI Error: Field [CDW3] at bit offset/length 64/32 exceeds size
target Buffer (64 bits) (20170831/dsopcode-235)
[    0.196003] ACPI Error: Method parse/execution failed _SB._OSC, AE_AML_BUFFER_LIMIT (20170831/psparse-550)
[    0.678163] ERST: Failed to get Error Log Address Range.
[    0.969243] mce: [Hardware Error]: CPU 0: Machine Check Exception: 4 Bank 8: fa0000000008000b2
[    0.970201] mce: [Hardware Error]: TSC 5998d310ee MISC 80000
[    0.970840] mce: [Hardware Error]: PROCESSOR 0:206c2 TIME 1274413556 SOCKET 0 APIC 0 microcode c
[    0.971816] mce: [Hardware Error]: Run the above through 'mcelog --ascii'
[    0.972570] mce: [Hardware Error]: Machine check: Processor context corrupt
[    0.973343] Kernel panic - not syncing: Fatal machine check
[    0.973977] Kernel Offset: 0x34600000 from 0xffffffff81000000 (relocation range: 0xffffffff800000
-0xffffffffbfffffff)
[    0.975176] Rebooting in 30 seconds...
USB ports keep resetting on Linux https://askubuntu.com/questions/1021426/usb-ports-keep-resetting-on-linux

Problem
USB Ports (2.0) keep resetting causing connected peripherals to stop working after some time.

Hardware
Motherboard: ASUS J1800I-C
CPU: Intel(R) Celeron(R) CPU J1800 @ 2.41GHz
RAM: 4GB

Number of units: > 100 devices working as payment kiosks, all showing same issue.

Connected USB devices (lsusb)

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 013: ID 0dd4:015d Custom Engineering SPA
Bus 001 Device 012: ID 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard
Bus 001 Device 011: ID 23d8:0285 
Bus 001 Device 010: ID 1ff7:0013 CVT Electronics.Co.,Ltd CVTouch Screen (HID)
Bus 001 Device 009: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 002: ID 0e8f:0022 GreenAsia Inc. multimedia keyboard controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


OSs reproducing the problem:
Ubuntu 14.04-server (64bit)
Ubuntu 16.04-server (64bit)
Ubuntu 18.04-server (64bit)
Ubuntu 14.04 (server&desktop) (32bit)
Ubuntu 16.04-server (32bit)
Tried the above OSs with both UEFI & BIOS boot.

OSs NOT producing any problem with the same hardware:
Windows 7

Symptoms:
On startup, all goes well and USB devices are working for 15~60 minutes. After this time, one or more ports will start resetting with errors coming in dmesg:

    [ 1484.129248] perf interrupt took too long (2520 > 2500), lowering kernel.perf_event_max_sample_rate to 50000
    [ 2645.972003] usb 1-4-port1: cannot reset (err = -71)
    [ 2646.236044] usb 1-4.1: reset full-speed USB device number 4 using xhci_hcd
    [ 2646.324439] usb 1-4.1: ep 0x1 - rounding interval to 64 microframes, ep desc says 80 microframes
    [ 2647.558156] usb 1-4.1: reset full-speed USB device number 4 using xhci_hcd
    [ 2647.646546] usb 1-4.1: ep 0x1 - rounding interval to 64 microframes, ep desc says 80 microframes
    [ 3942.619669] usb 1-4-port1: cannot reset (err = -71)
    [ 3942.619742] usb 1-4-port1: cannot reset (err = -71)
    [ 3942.619821] usb 1-4-port1: cannot reset (err = -71)
    [ 3942.619861] usb 1-4-port1: cannot reset (err = -71)
    [ 3942.619901] usb 1-4-port1: cannot reset (err = -71)
    [ 3942.619905] usb 1-4-port1: Cannot enable. Maybe the USB cable is bad?
    [ 3942.690031] usb 1-4.1: reset full-speed USB device number 4 using xhci_hcd
    [ 3942.690038] usb 1-4.1: hub failed to enable device, error -22
    [ 3942.762176] usb 1-4.1: reset full-speed USB device number 4 using xhci_hcd
    [ 3943.170800] usb 1-4.1: device not accepting address 4, error -22
    [ 3943.242967] usb 1-4.1: reset full-speed USB device number 4 using xhci_hcd
    [ 3943.651734] usb 1-4.1: device not accepting address 4, error -22
    [ 3943.653063] usb 1-4.1: USB disconnect, device number 4
    [ 3943.751603] usb 1-4.1: new full-speed USB device number 8 using xhci_hcd
    [ 3943.840892] usb 1-4.1: New USB device found, idVendor=1ff7, idProduct=0013
    [ 3943.840899] usb 1-4.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    [ 3943.841068] usb 1-4.1: ep 0x1 - rounding interval to 64 microframes, ep desc says 80 microframes
    [ 3943.850194] input: HID 1ff7:0013 as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.1/1-4.1:1.0/0003:1FF7:0013.0005/input/input11
    [ 3943.850467] hid-multitouch 0003:1FF7:0013.0005: input,hiddev0,hidraw3: USB HID v1.11 Mouse [HID 1ff7:0013] on usb-0000:00:14.0-4.1/input0
    [ 4215.269989] usb 1-4-port1: cannot reset (err = -71)
    [ 4215.270192] usb 1-4-port1: cannot reset (err = -71)
    [ 4215.270264] usb 1-4-port1: cannot reset (err = -71)
    [ 4215.270343] usb 1-4-port1: cannot reset (err = -71)
    [ 4215.270383] usb 1-4-port1: cannot reset (err = -71)
    [ 4215.270386] usb 1-4-port1: Cannot enable. Maybe the USB cable is bad?
    [ 4215.342214] usb 1-4.1: reset full-speed USB device number 8 using xhci_hcd
    [ 4215.342221] usb 1-4.1: hub failed to enable device, error -22
    [ 4215.358192] hub 1-4:1.0: hub_ext_port_status failed (err = -71)
    [ 4215.358263] usb 1-4-port1: cannot reset (err = -71)
    [ 4215.622566] usb 1-4.1: reset full-speed USB device number 8 using xhci_hcd
    [ 4215.755250] usb usb1-port4: disabled by hub (EMI?), re-enabling...
    [ 4215.755273] usb 1-4: USB disconnect, device number 3
    [ 4215.755277] usb 1-4.1: USB disconnect, device number 0
    [ 4216.031181] usb 1-4.1: device not accepting address 8, error -22
    [ 4216.064588] usb 1-4.2: USB disconnect, device number 5
    [ 4216.065324] usb 1-4.3: USB disconnect, device number 6
    [ 4216.065632] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
    [ 4216.065647] option 1-4.3:1.0: device disconnected
    [ 4216.065760] huawei_cdc_ncm 1-4.3:1.1 wwx001e101f0000: unregister 'huawei_cdc_ncm' usb-0000:00:14.0-4.3, Huawei CDC NCM device
    [ 4216.079590] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
    [ 4216.079611] option 1-4.3:1.2: device disconnected
    [ 4216.079752] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
    [ 4216.079768] option 1-4.3:1.3: device disconnected
    [ 4216.148026] usb 1-4.4: USB disconnect, device number 7
    [ 4216.148183] usblp2: removed
    [ 4216.387741] usb 1-4: new high-speed USB device number 9 using xhci_hcd
    [ 4216.517658] usb 1-4: New USB device found, idVendor=05e3, idProduct=0610
    [ 4216.517666] usb 1-4: New USB device strings: Mfr=0, Product=1, SerialNumber=0
    [ 4216.517670] usb 1-4: Product: USB2.0 Hub
    [ 4216.518341] hub 1-4:1.0: USB hub found
    [ 4216.518643] hub 1-4:1.0: 4 ports detected
    [ 4216.792385] usb 1-4.1: new full-speed USB device number 10 using xhci_hcd
    [ 4216.885849] usb 1-4.1: New USB device found, idVendor=1ff7, idProduct=0013
    [ 4216.885855] usb 1-4.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    [ 4216.886042] usb 1-4.1: ep 0x1 - rounding interval to 64 microframes, ep desc says 80 microframes
    [ 4216.895096] input: HID 1ff7:0013 as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.1/1-4.1:1.0/0003:1FF7:0013.0006/input/input13
    [ 4216.951230] hid-multitouch 0003:1FF7:0013.0006: input,hiddev0,hidraw2: USB HID v1.11 Mouse [HID 1ff7:0013] on usb-0000:00:14.0-4.1/input0

Things I tried and did NOT solve the problem:
I tried to disable autosuspend for USB ports by adding linux kernel cmdline: usbcore.autosuspend=-1 among many other options and they all failed.
I also tried to change multiple BIOS options related to USB, nothing helped.


Useful Facts:
- All USB 2.0 4-ports are causing the problem.
- The board has single USB 3.0 port which seems unaffected by the problem.
- Using powered USB hub connected to the USB3 port, then connecting all USB devices to it seems to solve the problem.
- Using 32bit version of the same OS seems to solve the USB problem. Tested some kiosks with 32bit installation for 3 days uptime and there were no single dmesg warning or error.

Question:
How can I solve this problem on my 64bit Ubuntu 16.04 ?

Converting to 32bit is an unrealistic solution for me as it requires the reinstallation of over 100 devices. Besides, some of my equipment comes with 64bit proprietary SDK.


Update 1:
The problem seems to be unrelated to the CPU architecture and it happened after a while on Ubuntu 14.04-32bit and 16.04-32bit

Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b https://askubuntu.com/questions/966869/kernel-panic-not-syncing-attempted-to-kill-init-exitcode-0x0000000b

This is my first time trying to do something like this so please excuse my incompetence. I've been trying to run Linux on a virtual machine.

When I created the new VM with VirtualBox I chose the Ubuntu 32-bit version of Linux and then I chose all the default selections from there.

As for the start-up disk I chose the ISO that I downloaded from here and I get this:

[    21.938390]  [<c134f66f>] ? vsnprintf+0xdf/0x380
[    21.938791]  [<c1373131>] rdmsrl_safe_on_cpu+0x41/0x60
[    21.939193]  [<c1ad6eb7>] pt_init+0x41/0x26a
[    21.939555]  [<c1002127>] ? do_one_initcall+0xb7/0x1f0
[    21.939912]  [<c1ad6e76>] ? intel_cqm_init+0x2f1/0x2f1
[    21.940077]  [<c1002132>] do_one_initcall+0xc2/0x1f0
[    21.940344]  [<c1ad6e76>] ? intel_cqm_init+0x2f1/0x2f1
[    21.940700]  [<c10809a8>] ? parameq+0x18/0x70
[    21.941027]  [<c1080d86>] ? parse_args+0x386/0x4a0
[    21.941373]  [<c1ac8e3d>] kernel_init_freeable+0x163/0x1ff
[    21.941700]  [<c1ac85c7>] ? initcall_blacklist+0x97/0x97
[    21.942030]  [<c16fe3a0>] kernel_init+0x10/0xe0
[    21.942323]  [<c108ca31>] ? schedule_tail+0x11/0x50
[    21.942625]  [<c1711041>] ret_from_kernel_thread+0x21/0x30
[    21.942919]  [<c16fe390>] ? rest_init+0x70/0x70
[    21.943273] Code: Bad EIP value.
[    21.944073] EIP: [<feb9970b>] 0xfeb9970b SS:ESP 0068:f58bbe54
[    21.947887] ---[ end trace 6e42211e906c2549 ]---
[    21.960622] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    21.960622]
[    21.962185] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    21.962185]
Cannot run live USB, kernel panic in ThinkPad E560 https://askubuntu.com/questions/927377/cannot-run-live-usb-kernel-panic-in-thinkpad-e560

I tried to install Ubuntu in Lenovo Thinkpad 560 but every time it's shows kernel panic. Version I tried are Ubuntu 17.04, 14.04.1, Fedora 25 (all 32-bit). I cannot start the live desktop mode either.

Options I tried:

  1. nomodeset
  2. intel_pstate=no_hwp
  3. intel_pstate=disable
  4. multiple USB flash drives
  5. multiple applications to create a USB bootable flash drive
  6. UEFI
  7. Legacy
  8. Run memory test, and passed

I got the following boot messages:

e6 42 ff 15 fc c5 92 c1 b8 00 b9 98 c1 ff 15 00 b9 98 c1 89 c6 e4 61 <88> c3 ff
15 fc c5 92 c1 80 e3 20 74 f1 b8 00 b9 98 c1 ff 15 00
[   56.195168] BUG: soft lockup - CPU#2 stuck for 23s! [swapper/0:1]
[   56.195257] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 3.13.0-32-generic #57-Ubuntu
[   56.195340] Hardware name: LENOVO 20EV002FUS/20EV002FUS, BIOS R00ET37W (1.12) 01/17/2016
[   56.195426] task: f34f0000 ti: f34f8000 task.ti: f34f8000
[   56.195526] Stack:
[   56.195619] Call Trace:
[   56.195759] Code: c8 01 e6 61 b0 b0 e6 43 b0 d3 e6 42 ff 15 fc c5 92 c1 b0 8b
e6 42 ff 15 fc c5 92 c1 b8 00 b9 98 c1 ff 15 00 b9 98 c1 89 c6 e4 61 <88> c3 ff
15 fc c5 92 c1 80 e3 20 74 f1 b8 00 b9 98 c1 ff 15 00
[   84.217301] BUG: soft lockup - CPU#2 stuck for 22s! [swapper/0:1]
[   84.217390] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 3.13.0-32-generic #57-Ubuntu
[   84.217499] Hardware name: LENOVO 20EV002FUS/20EV002FUS, BIOS R00ET37W (1.12) 01/17/2016
[   84.217632] task: f34f0000 ti: f34f8000 task.ti: f34f8000
[   84.217758] Stack:
[   84.217877] Call Trace:
[   84.218047] Code: c8 01 e6 61 b0 b0 e6 43 b0 d3 e6 42 ff 15 fc c5 92 c1 b0 8b
e6 42 ff 15 fc c5 92 c1 b8 00 b9 98 c1 ff 15 00 b9 98 c1 89 c6 e4 61 <88> c3 ff
15 fc c5 92 c1 80 e3 20 74 f1 b8 00 b9 98 c1 ff 15 00
_
SELF-TEST Failed https://askubuntu.com/questions/887276/self-test-failed

I recently (approx 6m) bought a refurbished laptop online, which had two hard disks installed. I installed Ubuntu on one of them and run the laptop as a dual-boot Windows/Linux machine - this has been working without significant issues. However, recently I encountered regular issues with the machine, where Ubuntu wanted to send operation system error messages to HQ, and a few applications just suddenly refused to load. I don't think it is a virus as I ran clamTK with no discoveries of infection. Hence I followed up with potential hardware issues and I encountered the below while trouble-shooting.

I don't quite understand the report -- is this hard drive in terminal decline, or are these tests failing simply because this is the Windows partition (and my laptop issue doesn't lie with the hard disk)?

I am an amateur Linux-user, this is my first machine running Linux.

Disks error report

Ubuntu 12.04 update caused kernel panic errors https://askubuntu.com/questions/539612/ubuntu-12-04-update-caused-kernel-panic-errors

Three days ago I updated Ubuntu 12.04 on our server (mainly to get new OpenSSL libs), rebooted, everything was fine. Then after 6 hours the server failed to respond. I rebooted again and it worked for another 12 hours. Then it halted.

This morning after another reboot I found bad_area_nosemaphore and do_page_fault messages on the screen.

207.996568] [<c15b1c65>] ? spurious_fault+0x75/0xdb
207.996617] [<c115c647>] ? __d_alloc+0xd7/0x110
207.996666] [<c15b1e60>] ? vmalloc_fault+0x195/0x195
207.996820] [<c1597bb1>] bad_area_nosemaphore+0x17/0x19
207.996873] [<c15b2272>] do_page_fault+0x412/0x4b0
207.996922] [<c11d9e17>] ? ext4_lookup+0x27/0x30
207.996971] [<c11613b9>] ? vfsmount_lock_local_unlock+0x19/0x20
207.997024] [<c1162c0a>] ? mntput_no_expire+0x2a/0xd0
207.997075] [<c1162cc8>] ? mntput+0x18/0x30
207.997122] [<c1150eaa>] ? path_put+0x1a/0x20
207.997170] [<c1154760>] ? path_lookupat+0xb0/0x690
207.997220] [<c15b1e60>] ? vmalloc_fault+0x195/0x195
207.997270] [<c15af281>] error_code+0x3d/0x44
207.997318] [<c12b11a3>] ? idr_get_empty_slot+0xb3/0x160
207.997369] [<c12b14a4>] ? idr_get_new_above_int+0x14/0x70
207.997421] [<c159dc84>] ? check_acl+0x9d/0x10c
207.997469] [<c12b1548>] ? idr_get_new_above+0x8/0x30
207.997520] [<c1181884>] ? inotify_add_to_idr+0x64/0x90
207.997571] [<c1181c31>] ? inotify_new_watch+0x91/0xe0
207.997621] [<c1181ee3>] ? sys_inotify_add_watch+0xf3/0x120
207.997673] [<c15b5c5f>] ? sysenter_do_call+0x12/0x12

Again the server failed to respond, but after rebooting it started without errors.

Ubuntu 14.04 doesn't boot anymore, kernel panic appears https://askubuntu.com/questions/509514/ubuntu-14-04-doesnt-boot-anymore-kernel-panic-appears

I installed Ubuntu 14.04 on my computer, and it worked OK for about 2 months, but now when I try booting it I only get this:

wn-block(0,0)
[     0.747081] CPU: 1 PID: 1 Comm: swapper/0 Not Tainted 3.13.0-33-generic #58-Ubuntu
[     0.747132] Hardware name: Dell Inc. Inspiron N5010/0TD2K6, BIOS A08 09/13/2010
[     0.747183] 0000000000008000 ffff880131e3dd70 ffffffff8171bd04 ffffffff81a3c210
[     0.747373] ffff880131e3de68 ffffffff81714f05 ffffffff00000010 ffff880131e3de78
[     0.747566] ffff880131e3de18 ffffffff81715a26 ffff880131e3de88 00000000000000cc
[     0.747761] Call Trace:
[     0.747810]  [<ffffffff8171bd04>] dump_stack+0x45/0x56
[     0.747861]  [<ffffffff81714f05>] panic+0xc8/0x1d7
[     0.747908]  [<ffffffff81715a26>] ? printk+0x067/0x69
[     0.747959]  [<ffffffff81d3646a>] mount_block_root+0x225/0x2b0
[     0.748008]  [<ffffffff81d36692>] mount_root+0x53/0x56
[     0.748056]  [<ffffffff81d36801>] prepare_namespace+0x16c/0x1a4
[     0.748105]  [<ffffffff81d3616e>] kernel_init_freeable+0x1f3/0x200
[     0.748155]  [<ffffffff81d358e5>] ? do_early_param+0x88//0x88
[     0.748205]  [<ffffffff8170a1e0>] ? rest_init+0x80/0x80
[     0.748252]  [<ffffffff8170a1ee>] kernel_init+0xe/0x130
[     0.748303]  [<ffffffff8172c63c>] ret_from_fork+0x7c/0xb0
[     0.748351]  [<ffffffff8170a1e0>] ? rest_init+0x80/0x80

Can anyone tell me what to do and if that is a virus?

Start a transmission-gtk using a cron job https://askubuntu.com/questions/499108/start-a-transmission-gtk-using-a-cron-job

I'm trying to start my torrent client using a cron job. Following is the job I added to crontab file(contab -e)

00 20 17 07 * transmission-gtk

I waited for the time but transmission-gtk didn't startup. but when I try a simple command like "mkdir test". It works. Any ideas friends

How do I install drivers for a Netgear WNDA3100v2? https://askubuntu.com/questions/483066/how-do-i-install-drivers-for-a-netgear-wnda3100v2

I have a Netgear WNDA3100v2 usb wifi adapter, and I need to figure out how to install the drivers. I have the disc that came with the adapter. What do I need to install in order to use this on Ubuntu 14.0.4? And how do I install those programs without an internet connection?

Hiding output of a command https://askubuntu.com/questions/474556/hiding-output-of-a-command

I have a script where it checks whether a package is installed or not and whether the port 8080 is being used by a particular process or not. I am not experienced at all with bash, so I did something like this:

if dpkg -s net-tools; then
    if  netstat -tlpn | grep 8080 | grep java; then
        echo "Shut down server before executing this script"
        exit
    fi
else
    echo "If the server is running please shut it down before continuing with the execution of this script"
fi

# the rest of the script...

However when the script is executed I get both the dpkg -s net-tools and the netstat -tlpn | grep 8080 | grep java outputs in the terminal, and I don't want that, how can I hide the output and just stick with the result of the ifs?

Also, is there a more elegant way to do what I'm doing? And is there a more elegant way to know what process is using the port 8080 (not just if it's being used), if any?

How do I uninstall old version of LibreOffice? https://askubuntu.com/questions/265405/how-do-i-uninstall-old-version-of-libreoffice

I gonna update my LibreOffice 3.5.7.2 to 4.0.1. Manual shouts If you have a previous version of LibreOffice already installed, then you will need to de-install it before proceeding further. But how do I uninstall it properly? P.S.I have Ubuntu 12.04.