How to clean up deprecated packages after a failed Lubuntu or Ubuntu upgrade?

I tried upgraded my Lubuntu 18.10 system to 19.04 using the standard GUI which runs the do-release-upgrade command. It got most of the way through the installation, installing all the packages. However, it failed before making it to the clean-up section. This has resulted in an unfortunate problem where many of the applications that were deprecated are installed alongside their replacements.

This is obvious when looking at the system tray: System Tray

You can see two network tray icons (for two different program instances) and two power icons. In the applications menu, there are many sets of duplicate programs, i.e. two “Additional Drivers”.

My question is how can I remove these deprecated applications from my system? Is there a simple command I can run? If I have to remove each one individually, how can I know which ones were deprecated and which ones are current?

In case anyone thinks to suggest it, I’ve already worked through this answer and it doesn’t solve my problem.

How to clean up deprecated packages after a failed Lubuntu or Ubuntu upgrade?

I tried upgraded my Lubuntu 18.10 system to 19.04 using the standard GUI which runs the do-release-upgrade command. It got most of the way through the installation, installing all the packages. However, it failed before making it to the clean-up section. This has resulted in an unfortunate problem where many of the applications that were deprecated are installed alongside their replacements.

This is obvious when looking at the system tray: System Tray

You can see two network tray icons (for two different program instances) and two power icons. In the applications menu, there are many sets of duplicate programs, i.e. two “Additional Drivers”.

My question is how can I remove these deprecated applications from my system? Is there a simple command I can run? If I have to remove each one individually, how can I know which ones were deprecated and which ones are current?

In case anyone thinks to suggest it, I’ve already worked through this answer and it doesn’t solve my problem.

Change Default file manager to Dolphin Lubuntu 18.04

Whatever the defualt file manager is constantly crashes under heavy load forcing me to either reboot. I’ve tried using exo tools but not only is dolphin not an option, but i get the following error every time I try to change something

Gtk-Message: 19:49:59.627: GtkDialog mapped without a transient parent. This is discouraged.  (exo-helper-1:4774): Gdk-CRITICAL **: 19:50:03.261: gdk_window_get_window_type: assertion 'GDK_IS_WINDOW (window)' failed 

I’ve also tried the following terminal commands (seperately)

xdg-mime default kde4/dolphin.desktop inode/directory

xdg-mime default org.kde.dolphin.desktop inode/directory

xdg-mime default dolphin.desktop inode/directory application/x-gnome-saved-search

i’ve also tried following these instructions to no avail both using gedit and the editor adapting it for dolphin’s desktop file “org.kde.dolphin.desktop” I’m pretty much stumped at this point.

his is the recommended method because it doesn’t mess around with the files that were installed by your package manager. Also, if it is a shared computer (eg. family, library or lab computer) then this method is your only option.

Default system settings in Ubuntu are overridden by settings in hidden files in a user’s home directory (~), if you want to change settings, this is the place to do it. The files in ~/.local/share/applications override the files in /usr/share/applications (mentioned above in MIME Types). If the directory does not exist, create it. To change the default File Manager you’ll have to edit the file defaults.list (or mimeapps.list) found in this directory but first we have to find the right .desktop file for the program you want to use.

getting the right .desktop file You have read-access to /usr/share/applications so navigate to that directory and search through the .desktop files to find the one for your desired File Manager, for example the one for Xfe is xfe.desktop.

To search for files in Nautilus start typing the name of the file. To search for files from the command line you can list the contents of the directory and search the output for the name of the file:

ls /usr/share/applications | grep xfe

If you find it you can move on to the next step, otherwise, if it doesn’t exist we’ll have to create one. As far as I know there is no .desktop file for Thunar so we’ll make one for that. Navigate to ~/.local/share/applications, make a file thunar.desktop and write the following in it

[Desktop Entry] Name=Open Folder TryExec=thunar Exec=thunar %U NoDisplay=true Terminal=false Icon=folder-open StartupNotify=true Type=Application MimeType=x-directory/gnome-default-handler;x-directory/normal;inode/directory;application/x-gnome-saved-search; 

There are lots of other things you can add if you want to but this should be enough. If you’re making a file for another file manager replace the command thunar at Exec and TryExec to the command for your file manager and name it whateverfilemaneger.desktop.

Just to remind you one last time this file is in sub-directory of your home directory (~), not somewhere in /usr!

editing the defaults.list or mimeapps.list file If you’re not in the directory ~/.local/share/applications then navigate to it now and edit the defaults.list file. You can double-click it in Nautilus to open it with Gedit or from the commandline:

editor defaults.list It shouldn’t contain much because it’s only for the MIME Types which you’re overriding. Add the following 2 lines to the file:

inode/directory=thunar.desktop x-directory/normal=thunar.desktop 

Replace thunar.desktop with whateverfilemaneger.desktop according to the file you found/created in the previous step.

And that should take care of it. No need to reboot, changes should take effect immediately!

Lubuntu 18.04 LTS 64 bit: ricoh sp 211 scanner not working

I have a problem with multifunction printer-scanner ricoh sp 211 su. I installed the driver r78188en.exe that is a Linux SANE Scanner Driver and contains sp-200series_Scanner-1.01-noarch. The printer is detected and it works after that I installed it by adding a printer with a generic driver. The scanner does not work and both xsane and simple-scan do not detect it. The device is detected as stated by lusb and sane-find-scanner:

lsusb  Bus 002 Device 002: ID 058f:a001 Alcor Micro Corp.  Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 002: ID 05ca:044f Ricoh Co., Ltd  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub  sudo sane-find-scanner  # sane-find-scanner will now attempt to detect your scanner. If the # result is different from what you expected, first make sure your # scanner is powered up and properly connected to your computer.  # No SCSI scanners found. If you expected something different, make sure that # you have loaded a kernel SCSI driver for your SCSI adapter.  found USB scanner (vendor=0x05ca [RICOH ], product=0x044f [RICOH SP 211SU]) at libusb:001:002 # Your USB scanner was (probably) detected. It may or may not be supported by # SANE. Try scanimage -L and read the backend's manpage. # Not checking for parallel port scanners.   # Most Scanners connected to the parallel port or other proprietary ports # can't be detected by this program. 

while it is not detected by

scanimage -L No scanners were identified. If you were expecting something different, check that the scanner is plugged in, turned on and detected by the sane-find-scanner tool (if appropriate). Please read the documentation which came with this software (README, FAQ, manpages). 

I already installed sudo apt install libsane-extras and manually changed the file /lib/udev/rules.d/60-libsane1.rules by adding the following lines:

# Ricoh SP 211 ATTRS{idVendor}=="05ca", ATTRS{idProduct}=="044f", MODE="664", GROUP="scanner", ENV{libsane_matched}="yes" 

and the file /etc/sane.d/ricoh.conf by adding:

usb 0x05ca 0x044f 

The scanner still does not work. Do you have any idea?

Thank you in advance.

Mounting 2nd HDD [Lubuntu 19.04]

I have a second hard drive in my system that I want to make sure gets mounted to /mnt/HDD every time on boot-up. I added this line for it to my /etc/fstab file:

UUID=5A767B7E767B59A9                     /mnt/HDD       ntfs    rw,suid,dev,exec,auto,nouser,async   0 2 

Well, it seems to work. My hard drive mounts to this system every time. However, when I try to delete files or folders, I get this error every time:

Unable to find or create trash directory for /mnt/HDD/test 

I’m still able to delete files and folders using rm in console, but it’s obviously inconvenient. Is there any way to fix this?

Edit: It may also be worth noting that when I created the folder using mkdir /mnt/HDD, I couldn’t interact with the folder outside of root. So I did sudo chmod -R 777 /mnt/HDD. I did all of this before adding my HDD to the fstab file.

Using Lubuntu so many updates but bluetoot not working

Using Lubuntu so many updates but bluetooth and Urdu in Firefox is the issue.

Bluetooth is not found. On Windows side I am using bluetooth. my laptop is HP 450 G0.

$ lspci -nnk | grep -iA2 net 03:00.0 Network controller [0280]: Ralink corp. RT3290 Wireless 802.11n 1T/1R PCIe [1814:3290] Subsystem: Hewlett-Packard Company Ralink RT3290LE 802.11bgn 1×1 Wi-Fi and Bluetooth 4.0 Combo Adapter [103c:18ec]

Kernel driver in use: rt2800pci

04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c) Subsystem: Hewlett-Packard Company RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [103c:194b] Kernel driver in use: r8169 Kernel modules: r8169

AND

$ rfkill list 0: phy0: Wireless LAN Soft blocked: no Hard blocked: no

Why this process is not automatic or not sorted out yet in 18th version?

No adapters found message is what I get when I click grayed bluetooth icon

Lubuntu 16.04 No sound

Hi I am new so be gentle. I am unable to get sound to work on my repurposed Lenovo Ideapad (Intel Atom)I have Lubuntu 16.04 Installed and have checked that nothing is muted. sound works on headphones. The laptop previously had Windows XP and sound worked fine. Thanks for any help