Clickhouse Instalation: unable to locate package - ubuntu-14.04

I'm trying to install Clickhouse on my ubuntu 14.04 server.
I've configured sources.list with yandex repo/
deb http://repo.yandex.ru/clickhouse/trusty stable main
I've run sudo apt-get update
And I've ended up with this error.
user#server:# sudo apt-get install clickhouse-client clickhouse-server-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package clickhouse-client
E: Unable to locate package clickhouse-server-common
What's wrong?

try this
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E0C56BD4
sudo apt-get update
sudo apt-get install clickhouse-client clickhouse-server-common
if key expired
use
wget -q -O - https://repo.yandex.ru/clickhouse/CLICKHOUSE-KEY.GPG | apt-key add -

quote https://clickhouse.tech/docs/en/getting_started/install/
It is recommended to use official pre-compiled deb packages for Debian or Ubuntu.
To install official packages add the Yandex repository in /etc/apt/sources.list or in a separate /etc/apt/sources.list.d/clickhouse.list file:
deb http://repo.clickhouse.tech/deb/stable/ main/

Related

N: Skipping acquire of configured file on repository 'https://download.mono-project.com/repo/ubuntu stable-focal InRelease' doesn't supp arch 'i386'

I am trying to install mono or mono-complete on Ubuntu 20.04. I have got instruction to install or setup on Ubuntu,
these are
$ sudo apt install dirmngr gnupg apt-transport-https ca-certificates software-properties-common
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
$ sudo apt-add-repository 'deb https://download.mono-project.com/repo/ubuntu stable-focal main'
Before, installing the mono-complete
$ sudo apt install mono-complete
I wanted to call the latest repository or packages available from server, for that I tried to update apt package
$ sudo apt update
While updating I got the following error
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://download.mono-project.com/repo/ubuntu stable-focal InRelease' doesn't support architecture 'i386'
what is problem? how to resolved this problem?
For me, on Ubuntu 20.04, changed a line in /etc/apt/sources.list from
deb https://download.mono-project.com/repo/ubuntu stable-focal main
to
deb [arch=amd64] https://download.mono-project.com/repo/ubuntu stable-focal main

how to fix winehq-stable : Depends: wine-stable (= 6.0.2~hirsute-1)?

i am running Feren Os a branch of Ubuntu and I have a new problem while installing Winehq
the system is up to date and all packages upgrade except for one .
$ sudo apt list --upgradable
Listing... Done
vkd3d-compiler/hirsute 1.2~hirsute-1 i386 [upgradable from: 1.2~focal-1]
N: There is 1 additional version. Please use the '-a' switch to see it
system info
wine Problem
$ sudo apt install --install-recommends winehq-stable
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 following information may help to resolve the situation:
The following packages have unmet dependencies:
winehq-stable : Depends: wine-stable (= 6.0.2~hirsute-1)
E: Unable to correct problems, you have held broken packages.
I have tried
$ sudo dpkg --force depends -P wine-stable
dpkg: warning: ignoring request to remove wine-stable which isn't installed
$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
You have mixed Feren Os based on Ubuntu Focal with Ubuntu Hirsute leading to the unmet dependencies error.
To fix this problem, you need to remove hirsute from /etc/apt/sources.list and the files under /etc/apt/sources.list.d/ dir.
To install winehq see the documentation and use the focal codename.
If you have an issue with vkd3d, it can be installed from Cybermax PPA..
Synaptic -> removed all wine repositories
sudo dpkg --add-architecture i386
sudo apt update
Removing previous WineHQ repository:
sudo apt-add-repository -r 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
Adding other repositories:
wget -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/Release.key -O Release.key -O- | sudo apt-key add -
sudo apt-add-repository 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/ ./'
sudo apt-get update
But!
The final suggested step with wine-stable:
sudo apt install --install-recommends **winehq-devel**
.. This worked for me on kali after having trouble installing wine

Installing kernel headers packages missing error

I am trying to install kernel-headers but getting this error
E: Unable to locate package linux-headers-5.9.0-kali1-amd64
E: Couldn't find any package by glob 'linux-headers-5.9.0-kali1-amd64'
E: Couldn't find any package by regex 'linux-headers-5.9.0-kali1-amd64'
I have updated and uncommented this line in sources.list
deb-src http://http.kali.org/kali kali-rolling main contrib non-free
but errors thats can't locate regex or glob. what I am missing?
Here's what you may need to do
sudo apt-get update # This will update the repositories list
sudo apt-get upgrade # This will update all the necessary packages on your system
sudo apt-get dist-upgrade # This will add/remove any needed packages
reboot # You may need this since sometimes after a upgrade/dist-upgrade, there are some left over entries that get fixed after a reboot
sudo apt-get install linux-headers-$(uname -r) # This should work now
from what am guessing linux-headers-5.9.0 is not available in the kali repository.
you can always use apt-cache search linux-headers to know if it available
but to update to the latest linux headers
sudo apt-get update
sudo apt-get dist-upgrade
then search for Linux-headers available using apt search Linux-headers.
so you install the latest version using
sudo apt-get install -y linux-headers-$(uname -r)

Not able to install .Net core in ubuntu 14.04

Linux is totally new to me. i am trying to install .Net Core in ubuntu 14.05.
I try following command to install ubuntu
sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net
/repos/dotnet-release/ trusty main" > /etc/apt/sources.list.d
/dotnetdev.list'
sudo apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys
417A0893
sudo apt-get update
These command run successfully when i run below command i got error
sudo apt-get install dotnet-dev-1.0.0-preview2-003131
My error is
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package dotnet-dev-1.0.0-preview1-002702
E: Couldn't find any package by regex 'dotnet-dev-1.0.0-preview1-002702
I met the same problem. It seems like .NET Core don't support 32-bit Ubuntu. I changed to 64-bit Ubuntu, the problem is solved.

Using 'sudo apt-get install build-essentials'

I was trying to use sudo apt-get install build-essentials to install the g++ compiler on my Ubuntu Linux box. But it gave me the following message:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package build-essentials
How do I fix this problem?
Drop the 's' off of the package name.
You want sudo apt-get install build-essential
You may also need to run sudo apt-get update to make sure that your package index is up to date.
For anyone wondering why this package may be needed as part of another install, it contains the essential tools for building most other packages from source (C/C++ compiler, libc, and make).
In my case, simply "dropping the s" was not the problem (although it is of course a step in the right direction to use the correct package name).
I had to first update the package manager indexes like this:
sudo apt-get update
Then after that the installation worked fine:
sudo apt-get install build-essential
Try
sudo apt-get update
sudo apt-get install build-essential
(If I recall correctly the package name is without the extra s at the end).
I know this has been answered, but I had the same question and this is what I needed to do to resolve it. During installation, I had not added a network mirror, so I had to add information about where a repo was on the internet. To do this, I ran:
sudo vi /etc/apt/sources.list
and added the following lines:
deb http://ftp.debian.org/debian wheezy main
deb-src http://ftp.debian.org/debian wheezy main
If you need to do this, you may need to replace "wheezy" with the version of debian you're running. Afterwards, run:
sudo apt-get update
sudo apt-get install build-essential
Hopefully this will help someone who had the same problem that I did.
The package is called build-essential without the plural "s". So
sudo apt-get install build-essential
should do what you want.
Try 'build-essential' instead.
To auto-generate the "source.list" file I suggest to use:
https://debgen.simplylinux.ch/
Where you can select the country, the distribution, ..etc
After that, all you need to do is to replace (take a backup of the file first) your original source.list file with the generated one and do as mentioned in other answers:
sudo apt-get update
sudo apt-get install build-essential
Manifest for installing rust and build-essentials on ubuntu 20.04.03
rustup self uninstall
apt-get update
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe"
apt-get -u dist-upgrade
apt install aptitude
sudo aptitude install libc6=2.31-0ubuntu9
sudo aptitude install build-essential
apt-get update
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain none -y
rustup toolchain install nightly --allow-downgrade --profile minimal --component clippy
rustup default stable
rustup update nightly
rustup update stable
rustup target add wasm32-unknown-unknown --toolchain nightly
sudo apt install -y cmake pkg-config libssl-dev git gcc build-essential clang libclang-dev
rustc --version
source $HOME/.cargo/env
#No tested on me Fast Installation: Install all the required dependencies with a single command. (Be patient, this can take up to
30 minutes)
curl https://getsubstrate.io -sSf | bash -s -- --fast
Finally step test:
https://doc.rust-lang.org/cargo/getting-started/first-steps.html
#ArmanRiazi.Blockchain#Substrate#Dr.GavinWood

Resources