Malformed entry 1 in list file /etc/apt/sources.list.d/archive_uri-https_dl_winehq_org_wine-builds_ubuntu_focal-jammy.list (Component) - wine

eye#eye:~$ sudo apt-get update
E: Malformed entry 1 in list file /etc/apt/sources.list.d/archive_uri-https_dl_winehq_org_wine-builds_ubuntu_focal-jammy.list (Component)
E: The list of sources could not be read.
i try to install wine stable, now this error happens cannot update ubuntu 22.04. showing this error everytime.
when i try to delete with sudo rm.
the result is - bash: syntax error near unexpected token (' eye#eye:~$ sudo rm /etc/apt/sources.list.d/archive_uri-https_dl_winehq_org_wine-builds_ubuntu_focal-jammy.list ('Component)

Related

"Wrong sources.list entry or malformed file"

I am trying to use
sudo apt-get update
But i am getting error as,
E: Malformed entry 1 in list file /etc/apt/sources.list.d/brave-browser-release-.list (Component)
E: The list of sources could not be read.
None of the solutions available in the internet has solved my problem what should i do?

Elementary OS - Hera 5.1 - Can't login - "Session returned error code 1" - Accidently removed zeitgeist*

I've accidently uninstalled zeitgeist by running sudo apt-get purge zeitgeist*
I can't login anymore. I've the following error message : "Session returned error code 1"
Error message from io.elementary.greeter
Observations :
It tests the password (if I don't tip the right one, it tells me wrong password)
I can login use the command line tty (by pressing Ctrl Alt F1).
When I try to run io.elementary.greeter, I've the error message "Unable to init server: Impossible to connect: Connection refused" (and it tells me it can't use GTK on this display but nevermind)
When I try the same command line with sudo, I've more errors : "dconf-warning **: 18:28:41.795: failed to commit changes to dconf: Impossible de lancer automatiquement D-bus sans $DISPLAY X11" (this last sentence meaning "Impossible to automaticly run D-bus without $DISPLAY X11")
If any of you know any solution instead of uninstalling the whole OS and reinstalling, I'll be realy thanksful.
[ RESOLVED ]
Following this link that leads to this other link, I've repaired it.
2 steps :
1 - I've removed the .Xauthority file in my home directory and then I've run sudo apt-get update ; sudo apt-get upgrade
2 - I've run sudo apt-get install pantheon-xsession-settings and reboot (command reboot)
Now seems to work fine :-)
I hope it will help, GL HF ! ;-)

Archlinux ARM: Error: failed to init transaction (unable to lock database)

So i am new to arch linux and i am following a guide to get KDE plasma installed, so i've go going along through this script and now all of a sudden i get the following error:
Archlinux ARM: Error: failed to init transaction (unable to lock database)
error: could not lock database: read-only file system
and the command i am using is:
pacman -S kf5 kf5-aids
Now from the fact that i know how to read i see that the second error states that all files are currently read only. What i want to know is how or what would have caused that to happen and how to fix my all round issue.
Do you have root privileges?
Try sudoing:
# sudo pacman -S kf5 kf5-aids
If you haven't installed (and configured) sudo, just log in as root:
# su -
And execute the command under the new user.

Postgresql edit gone wrong on Ubuntu. Error every time I use sudo apt-get install

A few months back I edited the PostgreSQL version 8.2.19 source code in Ubuntu OS to change the algorithm of the buffer manager in it. I don't remember what I exactly did but I did something wrong (clearly) so now whenever I try to install a new program, I get the following error (even after it installs successfully)
This was after I used the command sudo apt-get install maven to install maven. This happens every time I do a sudo apt-get install <whatever>, the program installs but this comes up:
Errors were encountered while processing:
postgres-xc
E: Sub-process /usr/bin/dpkg returned an error code (1)
I think I messed with some files that affect what happens when a sudo apt-get install is done and I'm trying to get this to go away. I have attached a screenshot as well. Can someone help me?
***I need 10 reputation to post an image so it won't let me post a screenshot so here is the end part of the Maven install*****
Setting up testng (6.8.7-2) ...
Setting up libosgi-compendium-java (4.3.0-1) ...
Setting up libgeronimo-osgi-support-java (1.0-2) ...
Setting up libwagon-java (1.0.0-2ubuntu2) ...
Setting up libgeronimo-jpa-2.0-spec-java (1.1-2) ...
Setting up libmaven2-core-java (2.2.1-14) ...
Setting up libmaven-scm-java (1.3-5) ...
Setting up libplexus-containers1.5-java (1.5.5-6) ...
Setting up libsisu-ioc-java (2.3.0-5) ...
Setting up libaether-java (1.13.1-2) ...
Setting up libwagon2-java (2.5-1) ...
Setting up maven (3.0.5-1) ...
update-alternatives: using /usr/share/maven/bin/mvn to provide /usr/bin/mvn (mvn) in auto mode
Errors were encountered while processing:
postgres-xc
E: Sub-process /usr/bin/dpkg returned an error code (1)
root#r-HP-Pavilion-g6-Notebook-PC:/home/r# exit
exit
r#r-HP-Pavilion-g6-Notebook-PC:~$
Sorry for the late post, I figured this out around a year ago. I used the purge method in Ubuntu to completely unintall postgres. It stopped the error.

Broken dependencies

I deleted contents of /opt , and now, spotify and google chrome won't work because I deleted their dirs. If I try to remove them, fix them, upgrade them or anything, I get this:
xdg-icon-resource: size argument must be numeric
Try 'xdg-icon-resource --help' for more information.
enter code heredpkg: error processing package google-chrome-stable (--remove):
subprocess installed pre-removal script returned error status 1
xdg-icon-resource: size argument must be numeric
Try 'xdg-icon-resource --help' for more information.
A part of this is translated, but only a small part.
I have tested this on my machine by deleting my /opt folder and then reviving google-chrome. So i know it works. Kindly follow the following steps in order to revive your google-chrome:
Download the google chrome debian file from this link according to your OS.
After downloading it open a terminal windows in the location of the debian file and run the following command to re-install google-chrome
sudo dpkg -i yourgooglechromedebianfile.deb
Your google-chrome is up and running again. :)

Resources