How to disallow update command to look for google-chrome dependency - linux

I am using ubuntu 12.04. I am trying to update the system but getting some error with google-chrome module.
sudo apt-get update
Error:
W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)
E: Some index files failed to download. They have been ignored, or old ones used instead.
Is there any way, I can remove above dependency so that my update could run successfully, I tried by removing google chrome using:
sudo apt-get purge google-chrome-stable
but error remains the same.

You can comment your update link for google chrome in the apt source list file.
cd /etc/apt
sudo grep -rn "google" * to find out the apt list file which includes the update link of google chrome
Use one of your familiar editor to mark those lines.
In my case, the messages are as followed,
sources.list.d/google-chrome.list:3:deb http://dl.google.com/linux/chrome/deb/ stable main
sources.list.d/google-chrome.list.save:3:deb http://dl.google.com/linux/chrome/deb/ stable main

Related

Error while installing nodejs v18 on ubuntu 20.04

How can i fix this error?
I got this error when i tried to install nodejs v18 using these commands
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - &&\
sudo apt-get install -y nodejs
THE ERROR:
E: Repository 'http://ppa.launchpad.net/lutris-team/lutris/ubuntu focal InRelease' changed its 'Label' value from 'Lutris stable' to 'lutris'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
I tried removing the previous node version but it didn't work.
Execute this command:
sudo apt-get update --allow-releaseinfo-change
See the apt man page for more info:
--allow-releaseinfo-change
Allow the update command to continue downloading data from
a repository which changed its information of the release
contained in the repository indicating e.g a new major
release. APT will fail at the update command for such
repositories until the change is confirmed to ensure the
user is prepared for the change. See also apt-secure(8)
for details on the concept and configuration

GPG errors from dnf on linux9

Recently installed Rocky Linux9 on a bunch of machines. No real problems except for some packages don't want to install.
Example: confluent-kafka-2.11. If I run dnf install confluent-kafka-2.11 -vv I get the usual downloading info but it ends with
Using rpmkeys executable at /usr/bin/rpmkeys to verify signatures
Problem opening package confluent-kafka-2.11-2.0.1cp8-1.noarch.rpm
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'yum clean packages'.
Error: GPG check FAILED
I've tried adding --nogpgcheck but it still doesn't work. What am I doing wrong?
Same problem with elasticsearch except I was able to manually install the gpg key. This won't work as soon as the package updates though.
There are multiple solutions here.
To actually solve the gpg issue, the question is, how did you add the repo and the gpg key?
What is the output of
sudo dnf list all | grep confluent
# and
sudo dnf repolist

python3: can't install psycopg2 [duplicate]

I cannot figure this out for the life of me.
When I pip install django-tenant-schemas it tries to install the dependency psycopg2 which requires the Python headers and gcc. I have all this installed and still keep getting this error!
./psycopg/psycopg.h:35:10: fatal error: libpq-fe.h: No such file or directory
So to install libpq-fe-h I need to sudo apt-get install libpq-dev..
..which returns..
libpq-dev is already the newest version (10.10-0ubuntu0.18.04.1).
Then when I sudo find / libpq-fe.h it doesn't seem to be in my OS.
I am lost at this point. If anyone can help I would highly appreciate it.
For some reason, the file is missing on the system.
As you're using apt-get, the system is dpkg based, presumably Debian or it's derivative. You can try the Ubuntu's package search to get which package contains a file with name ending in libpq-fe.h.
I found the package is libpq-dev and file's absolute path is /usr/include/postgresql/libpq-fe.h.
FWIW, on a dpkg based system, you can check which package gives a file if you know the file's absolute path:
% dpkg -S /usr/include/postgresql/libpq-fe.h
libpq-dev: /usr/include/postgresql/libpq-fe.h
Also, unlike find, locate keeps a cache of found files (mlocate.db) that is created everyday via cron; so if the file happens to be removed after the last run, you can run locate libfq-fe.h to get the absolute path to the file without needing to check the Ubuntu package search online.
So the package is libpq-dev. Now, reinstalling it will get everything to the default state i.e. all relevant files will be copied to the right places. As it is only a library package, no user/system level configurations will be overridden (and dpkg will prompt you for action for any package that does that).
To reinstall the package:
sudo apt-get install --reinstall libpq-dev
For me, I realized it was trying to use the deprecated setup.py so I installed wheel (pip install wheel) and that sorted it all out.
Well after installing these libraries
sudo dnf install python-virtualenv openssl-devel gcc libffi-devel libxslt-devel issue was not gone.
I used mlocate to find where libpq-fe.h file is located. On my system (Fedora 32) it was located at /usr/pgsql-10/include/libpq-fe.h
yum install mlocate
sudo updateb
locate libpq-fe.h
After all added this line to ~/.bash_profile
nano ~/.bash_profile
export PATH=/usr/pgsql-10/bin/:$PATH
Works fine, I can easily install psycopg2 without any trouble.
You need to create a LD_LIBRARY_PATH that indicates the path of your library /user/pgsql-11/lib
Source: The 3rd point of build prerequisites at https://www.psycopg.org/docs/install.html#build-prerequisites

"Error Executing Command, Exiting" Error upon installation of NodeJS

I am using Ubuntu 16.04LTS.
I typed in the following command in the terminal:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
In return, I am receiving the following error:
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/tualatrix/next/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://ppa.launchpad.net/tualatrix/ppa/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/tualatrix/next/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Failed to fetch http://ppa.launchpad.net/tualatrix/ppa/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
Error executing command, exiting
I just installed the very old version of NodeJS and NPM from the Ubuntu repositories because I could not install the most current version. However, I still want the most current version of Node and NPM.
I had the same issue. The problem is not the nodejs installation script but another package in your package list in /etc/apt/sources.list.
The following worked for me:
1) Create backup of the file /etc/apt/sources.list just to be on the safe side:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bu
2) Remove the packages that cause the issue:
Open /etc/apt/sources.list with root permissions, e.g.
sudo nano /etc/apt/sources.list
and remove the
http://ppa.launchpad.net/tualatrix/next/ubuntu/dists/xenial/main/binary-amd64/Packages
parts. In my case it was skype that caused the issue; you can identify the critical packages by the lines that start with E: Failed to fetch.
Afterwards, the following works fine (taken from the installation instructions):
cd ~
curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt-get install nodejs
sudo apt-get install build-essential
If one then types
nodejs -v
it will return
v8.9.4
(or whatever version you specified).
In case you already have anaconda installed, I recommend to install node.js inside an environment which keeps things clean. A detailed explanation on how to do this can be found here. Basically all it needs is
conda create -n webdev nodejs
plus desired python modules in case you would like to use e.g. Flask or Django.

How to get Mono running on ARM/Linux

I've got a small board called "Udoo" (http://www.udoo.org), which is running a Linux distribution based on Ubuntu 12.04.
For development I would like to install a recent version of Mono. Currently only 2.x is installed, which is pretty buggy.
I tried to follow the instructions on the Mono homepage (http://www.mono-project.com/docs/getting-started/install/linux/):
To enable installation on older Ubuntu releases such as Ubuntu 12.04
and Ubuntu 12.10 (and their derivatives), you will need to add a
second repository to your system, in addition to the generic
Debian/Ubuntu repository (if you don’t use sudo, be sure to switch to
root):
echo "deb http://download.mono-project.com/repo/debian
wheezy-libtiff-compat main" | sudo tee -a
/etc/apt/sources.list.d/mono-xamarin.list
Then I did "sudo apt-get update", to update the package lists.
This resulted in an error:
W: Failed to fetch
http://download.mono-project.com/repo/debian/dists/wheezy-libtiff-compat/InRelease
Unable to find expected entry 'main/binary-armhf/Packages' in Release
file (Wrong sources.list entry or malformed file)
E: Some index files failed to download. They have been ignored, or old
ones used instead.
D'oh! I though this armhf-problem was solved months ago?
Can anyone give me a hint on how to get the latest version of Mono for ARM/Linux?

Resources