Questions tagged as ['error-handling']

Score: 1
I take eror when ı want to upgrade lubuntu, also when ı try to use package menager or terminal. On this sense, Im able to use almost nothing
in flag

this for upgrade lubuntu

This is a serious problem. Try again later. If this problem appears again, please report an error to the developers.
Error Detail: E:Malformed entry 1 in list file /etc/apt/sources.list.d/archive_uri-https_dl_winehq_org_wine-builds_ubuntu_hirsute-impish.list (Component), E:Malformed entry 1 in list file /etc/apt/sources.list.d/archive_uri-https_dl_winehq_org_wine-builds_ubu ...
Score: 4
cocomac avatar
How to hide output of first command when using the || operator and exit?
cn flag

This hides output from the first command, and prints Oops to stderr if it fails. So far, so good.

#!/usr/bin/env bash
invalid_command > /dev/null 2>&1 || >&2 echo "Oops"
echo hi

That outputs this:

Oops
hi

But I need to exit as well as printing a message if the first command failed. So I tried using parenthesis.

#!/usr/bin/env bash
invalid_command > /dev/null 2>&1 || ( > ...
Score: 0
Adam avatar
Cannot open any apps except visual studio code
cn flag

I am currently on Ubuntu 20.04, but writing this from my phone.

I am unable to open the terminal, settings, ... I have been searching for hours, nothing worked.

Everytime I run an app, it loads but does not open. I am frustrated.

I tried installing all recommended packages and it did not work after rebooting.

Score: -1
Haveed Hilal avatar
rufus showed me truncated iso error
cn flag

I downloaded the latest ubuntu from the site and also the rufus. When I choose the iso file, rufus showed me truncated iso error. Plz help It told me to re download the file.

Score: 0
Robledo Ferreira avatar
Ubuntu 20.04 LTS apt update error => E: Some index files failed to download. They have been ignored, or old ones used instead
ng flag

I'm receiving this error message when trying to update the apt repository in a Ubuntu 20.04 LTS. First time this happens, generally it works fine.

I tried to look for answers, but did not found someone with the same problem in this version of Ubuntu, only in older ones.

I tried erasing the cache already, but the error persisted.

sudo apt update

The error message is as such:

E: Failed to fetch
http://br ...
Score: 1
Monish  avatar
Fingerprint not working
ro flag

I am using Acer Aspire 7 where I am not able to enrol my fingerprint.

error: failed to enrol fingerprint.

with lsusb command, I get
Bus 001 Device 004: ID 04f3:0c4f Elan Microelectronics Corp. ELAN:Fingerprint

Score: 0
SMILEY avatar
I have installed the composer directly by the terminal
jp flag

I'm getting the error of this and i'm on ubuntu 20.04 LTS

[Composer\Downloader\FilesystemException]                                    
  Filesystem exception:                                                        
  Composer update failed: "/usr/local/bin/composer" could not be written.      
  rename(/home/smiley/.cache/composer/composer-temp5193870.phar,/usr/local/bin/composer): Permission deni ...
Score: 0
Bek avatar
Cannot find TOCBLOCK, database may be corrupt
br flag
Bek

I opened Logs today and saw this error which says: ldm_parse_tocblock(): Cannot find TOCBLOCK, database may be corrupt.

I am NOT dual-booting, my PC is running under Ubuntu 20.04.3 LTS version, any thoughts?

Score: 0
hcp error found
us flag

when I am open the proxmox ubundu VM I get the below error.

may I know the reason for this?

ubundu version 18.4.5

enter image description here

Score: 0
A well cultured man of anime avatar
Error "This is not a bootable disk. Please insert a bootable floppy of Ubuntu."

I have a Lenovo T430 with Ubuntu on it .

One day, I went to GParted and wiped all the partitions of my only ssd and then I turned the laptop off and on there was a GRUB recovery menu, so I informed myself and tried to fix my Grub. When I tried repairing it and turned my laptop on and off there was the following message This is not a bootable disk. Please insert a bootable floppy of Ubuntu and it wouldn' ...

Score: 0
Wine Error in dependencies error
es flag

I'm new to Linux and i chose Ubuntu because its the most stable Linux out there however whenever i try to install wine HQ i get this error

    The following packages have unmet dependencies:
 wine-stable : Depends: wine-stable (= 6.0.1~hirsute-1)
E: Unable to correct problems, you have held broken packages.

and my software store doesn't work as well, I cant see any apps

Score: 0
AMIT KORGAONKAR avatar
While booting up , Ubuntu 20.04 , a error message is displayed ... Ect/profile error found with respect to java
ye flag

enter image description here

While booting in Ubuntu 20.04 lts the above dialoge pops up ...

Displaying message etc/profile:JAVA: command not found...

Till now I have no idea about it...so someone could please provide solution for the above error. Thanks.

Score: 5
cocomac avatar
How do I check if command failed... with a pipe?
cn flag

So I have a script like this:

somecommad | grep --invert-match something

I'd like to be able to conditionally run a different command if somecommand fails. Here's what I tried:

somecommand | grep --invert-match something || {
    echo 'Oops'
}

But that didn't work (the grep wasn't executed). What is the proper way to do this?

Score: 0
Ubuntu 18.04 not starting after update
la flag

I just turn the system on and this shows up, and it stays like this forever.I don't know much about Linux.

Boot screen

Score: 0
Feral Shade avatar
During routine use system freezes. Upon reboot, "error:no such device; error: unknown device"
gb flag

Since 2017, I've had my laptop setup to dual boot windows 7 (from the internal drive) and Ubuntu (the default; from an external drive), in those 4 years it's been fine and there's been no change to the hardware or install. Out of the blue, yesterday, after being idle for a couple hours, I noticed that the screen was frozen. I rebooted and the following is displayed:

error: no such device 6c1b9... error ...

Score: 0
Amitanshu Madhukar avatar
None of the audio devices (input and output) are showing up
cn flag

I made some changes in alsamixer after that list of input and output devices were empty in settings. I tried rebooting and re-installing alsamixer but none the methods worked for me. Earlier I was able to see something like digit-analog and s/pdif along with my speakers but now the list in empty.

I tried using alsactl restore and alsactl store but nothing happened.

Screenshot of audio settings

Score: 4
j0h avatar
problem? what problem?
au flag
j0h

Every time I boot up my desktop, (Ubuntu Mate 20.04) regardless of the system I have it in, I get a message that says "System Program Problem Detected" ok cool, what problem? unlike other Ubuntu warnings I have seen in the past, this message box doesn't have an option for further details. I've looked through dmesg, and haven't seen any errors. in /var/log I see a variety of logs I could look at, syslog  ...

Score: 1
Unable to correct problems, you have held broken packages while installing gcc
jp flag

i can't install this on my Ubuntu 20.04 LTS

:~$ sudo apt install gcc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The f ...
Score: 0
Unable to correct problems, you have held broken packages. when installing c++
jp flag

So I'm trying to install c++ and I keep getting this error

sudo apt install g++
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Inco ...
Score: 0
Tony avatar
'system program error detected' on startup, _usr_lib_xorg_Xorg.0.crash file in \var\crash can't be opened or removed
jp flag

I am running Ubuntu Studio 20.04.3 LTS with xfce, a fresh install since yesterday, and on every startup I get a "system program error detected" notification. There is one file in /var/crash named _usr_lib_xorg_Xorg.0.crash but when i try to open or remove this file i get a 'permission denied' message, as such:

$ cat _usr_lib_xorg_Xorg.0.crash 
cat: _usr_lib_xorg_Xorg.0.crash: Permission denied

I don't ...

Score: 1
Masoud Borbor avatar
KitScenarist symbol lookup error
pl flag

I used to use KitScenarist to arrange my story scenes but recently it doesn't open up, echoing this error when using terminal to run it:

/usr/share/KIT/Scenarist/Scenarist: symbol lookup error: /usr/share/KIT/Scenarist/Scenarist: undefined symbol: _ZN18QWidgetTextControl12processEventEP6QEventRK7QMatrixP7QWidget, version Qt_5_PRIVATE_API

Score: 0
Gamer_1514 avatar
Error : Sub-process /usr/bun/dpkg returned an error code(1)
us flag

Input:

 sudo apt install lvm2

Output:
(These are the last lines of the whole output)

update-initramfs: Generating /boot/initrd.img-5.11.0-34-generic   
Errors were encountered while processing:
 lvm2
E: Sub-process /usr/bin/dpkg returned an error code (1)
Score: 0
Keval Shah avatar
`Sorry Ubuntu 20.04 had Experienced an internal Error` after Every Reboot
nu flag

Hello

I am Having a stupid error after every reboot

Sorry Ubuntu 20.04 had Experienced an Internal Error

and has

Send button

Don't Send button

I am actually not sure about why the error is. So please Help me to Identify Error and to solve the error. this problem is irritating me form few days.

So Thanks in Advance

Score: 0
Stoic-Programmer avatar
Can we copy a sub directory to another sub directory?
ke flag

I have to copy wordpress from the give path to htcdocs directory :-/var/www/html/wordpress and I have to copy this wordpress to /opt/lampp/htcdocs . Direct copy paste is not allowed. I tried different commands and ended up with errors

Score: 1
monkeyonthetree avatar
Can't watch Udemy on Ubuntu 20.04
sa flag

I tried many ways like: Install "Gstreamer plugins from the bad set", Installing ubuntu-restricted-extras, Toggle DRM, Turn of Use hardware acceleration, Install FFmpeg. But nothing works. Please help me.

enter image description here

Score: 0
user487583 avatar
Ubuntu focal fossa python3 error - Does this error happen to everyone?
bs flag

Does this error happen to everyone?

  1. Install Ubuntu Focal Fossa.

  2. Then install the python3-pip (At this stage, Python3 is installed automatically)

    Python 3.8.10 (default, Jun  2 2021, 10:49:15)
    [GCC 9.4.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    
  3. After you have created the username and made the settings:

    sudo python3
    >>> help()
    help> modules
    
Score: 0
GravvyBoiiz  avatar
Ubuntu Wont Start Up, any Suggestions?
cn flag

These are the following messages I receive when I boot up my computer:

/dev/sda2:clean, 567436/30049216 files, 10011641/12112000 blocks
[FAILED] FAILED to start Light Display  Manager
[   39.002848] overlayfs: missing 'lowerdir'                    
[FAILED] FAILED to start Light Display Manager
[FAILED] FAILED to start Light Display Manager
[FAILED] FAILED to start Light Display Manager
[FAILED]  ...
Score: 1
Sammy1410 avatar
"which" command output into a variable does not work
cg flag

I am just a beginner at bash scripting. I tried to save output from the command "which" into a variable and printing it but the variable shows nothing. This is the code which I tried:

#!/bin/bash
OUTPUT="$(which curl)"
echo "${OUTPUT}"

Output:

user@user:~$ bash new.sh

user@user:~$

Also this works when I run it in terminal.

user@user:~$ OUTPUT="$(which curl)"
echo "${OUTPUT}"

curl not found
us ...
Score: 0
Elsa avatar
Boot error after accidental reboot: "/dev/sda2: recovering journal"
us flag

I’ve been stuck on the boot screen for very long time. I’ve just installed Ubuntu on my old PC today and I just pressed a random key and I think I accidentally booted.

This is what I see when I now boot my computer:

Photo of boot error

/dev/sda2: recovering journal
/dev/sda2: clean, 214984/12222992 files, 2626581/4882432 blocks

Please help I’ve be searching for solutions, but I can’t even type anything or p ...

Score: 0
NotDiamondZ avatar
writing login information to the keychain failed with error 'The name org.freedesktop.secrets was not provided by any .service files'
us flag

I'm running Linux Debian v5.4.109-26094-g381754fbb430 on my Chromebook. Everything has been working until now.

On Sunday, I logged into VSC on another device using my account, then when I return to my personal PC, it starts acting up. I try signing into my GitHub account so I can have access to Git and stuff, but no avail.

The same error pops up every single time:
writing login information to the ke ...