"Wrong sources.list entry or malformed file" - linux

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?

Related

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

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)

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.

Linux cant install package of apt-get or aptitude install correct

I would like to install some files on linux.
On my linux pc 64 bit i can install the file normally.
Later on a 32 bit linux workstation that didnt work. I get the faults
on install i get the faults like this....
Err: http:/de.archive.ubunti.com/ubunti raring /main freetds-common all 0.91-3 404 NOT FOUND
Err: http:/de.archive.ubunti.com/ubunti raring / libct4 i386 0.91-3 404 NOT FOUND
Failed to fetch de.archive.ubuntu.com/ubuntu/pool/main/f/freetds/freetds-common 0.91-3 all.deb 404 NOT FOUND
after install the freetds has not the i value next to the package of aptitude search but also the p value next to the i.
What can i make to install packages there correctly?
Be sure you have internet connection then try to update your repository files:
apt-get update
https://askubuntu.com/questions/222348/what-does-sudo-apt-get-update-do
The error output is pretty much trivial 404 NOT FOUND, you are trying to access smth with doesn't exist
Go over following step
Check if you have correct network setup i.e.
ping de.archive.ubuntu.com if its not working try with direct ip lookup
Update the repository metadata freetds-common_0.91-3_all.deb you are trying to access is not there but the newer version freetds-common_0.91-5_all.deb is, so you will need to refresh the repository metadata.

sudo dpkg -i mod-pagespeed-*.deb giving "not a debian format archive" error

The following apparently trivial two initial steps to install mod-pagespeed resulted in the error,
'mod-pagespeed-stable_current_amd64.deb' is not a debian format archive
even though the first (wget) step appeared to work properly.
wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_amd64.deb
sudo dpkg -i mod-pagespeed-*.deb
What might be going wrong and how to fix that?
In my case the .deb file was much smaller than expected and its content indicated that "this product is not available in your country," even though the server was meant to be in the UK, and https://www.countryipblocks.net/ agreed that it was in the UK. (http://whatismyipaddress.com/ip-lookup said it was in the US.)
The solution was simply to go to the Google download page for the module, https://developers.google.com/speed/pagespeed/module/download, do a local download (eg right click the appropriate link and do "Save link as ..." in Firefox), and then upload that to the server.
It then built fine.
(I found this solution in a comment about a different problem at http://www.turnkeylinux.org/forum/support/20120514/how-do-i-install-modpagespeed, which speculated that "server's IP was somehow mistraced by Google to some weird country or something" - could this be the underlying cause?)
Edit: Possible gotcha: Later problems with apt-get update with a GPG error (fatal) with the mod-pagespeed installation being the very smoky gun. It was a mess to sort out.

remove packages on centos issue

Hi Guys I am getting the follwing output when trying to remove a file on centos. I have tried yum but that hangs for ages I have done my best to google but nothing much comes up. I am able to install and remove other packages except php based ones.
rpm -e --nodeps php-pear-Crypt-Blowfish
(process:15212): GLib-GObject-CRITICAL **: gtype.c:2458: initialization assertion failed, use IA__g_type_init() prior to this function
(process:15212): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
(process:15212): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed
Thanks in advance,
gda2004
Try to erase without executing scripts:
rpm -e --nodeps --noscripts php-pear-Crypt-Blowfish
In case that does not help, figure out if there are process still accessing files from that package. You get the file list using rpm -ql. Check with fuser whether some files are in use.
Bear in mind that --nodeps and --noscripts may lead to a broken installation, i.e. other packages not working or stuff not properly removed.

Resources