I'm having some trouble setting up the puppetdb module. When I try to apply the single node manifest that is recommended I get this error:
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install postgresql-9.6' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package postgresql-9.6
E: Couldn't find any package by glob 'postgresql-9.6'
E: Couldn't find any package by regex 'postgresql-9.6'
Error: /Stage[main]/Postgresql::Server::Install/Package[postgresql-server]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install postgresql-9.6' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package postgresql-9.6
E: Couldn't find any package by glob 'postgresql-9.6'
E: Couldn't find any package by regex 'postgresql-9.6'
This is on Ubuntu 18.04.03
Related
Every time I tries to install something on Ubuntu using sudo apt-get install ..., it shows like that:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libwebkit2gtk-4.0-37 : Depends: libjavascriptcoregtk-4.0-18 (= 2.32.3-0ubuntu0.18.04.1) but 2.32.4-0ubuntu0.18.04.1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
First I tried to sudo apt-get install libwebkit2gtk-4.0-37, it shows like that:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libexiv2-14 libgee-0.8-2 libgexiv2-2 libraw16 linux-hwe-5.4-headers-5.4.0-66
linux-hwe-5.4-headers-5.4.0-67 linux-hwe-5.4-headers-5.4.0-73
linux-hwe-5.4-headers-5.4.0-74 shotwell-common
Use 'sudo apt autoremove' to remove them.
Suggested packages:
libwebkit2gtk-4.0-37-gtk2
The following packages will be upgraded:
libwebkit2gtk-4.0-37
1 upgraded, 0 newly installed, 0 to remove and 206 not upgraded.
43 not fully installed or removed.
Need to get 0 B/13.4 MB of archives.
After this operation, 81.9 kB of additional disk space will be used.
dpkg: warning: files list file for package 'fonts-sil-abyssinica' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libatk-adaptor:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libvorbisfile3:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libquadmath0:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libxkbfile1:amd64' missing; assuming package has no files currently installed
<ignoring for a long long list>
Preparing to unpack .../libwebkit2gtk-4.0-37_2.32.4-0ubuntu0.18.04.1_amd64.deb ...
Unpacking libwebkit2gtk-4.0-37:amd64 (2.32.4-0ubuntu0.18.04.1) over (2.32.3-0ubuntu0.18.04.1) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: <decompress> subprocess returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/libwebkit2gtk-4.0-37_2.32.4-0ubuntu0.18.04.1_amd64.deb (--unpack):
cannot copy extracted data for './usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37.53.5' to '/usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37.53.5.dpkg-new': unexpected end of file or stream
Errors were encountered while processing:
/var/cache/apt/archives/libwebkit2gtk-4.0-37_2.32.4-0ubuntu0.18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Then I thought that since it says but 2.32.4-0ubuntu0.18.04.1 is to be installed, so I tries uninstalling it using sudo apt-get purge 2.32.4-0ubuntu0.18.04.1, and things goes like that: (I don't know what the 2.32.4-0ubuntu0.18.04.1 means)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package 2.32.4-0ubuntu0.18.04.1
E: Couldn't find any package by glob '2.32.4-0ubuntu0.18.04.1'
E: Couldn't find any package by regex '2.32.4-0ubuntu0.18.04.1'
And I tried sudo apt --fix-broken install, but it still doesn't works. The error messages are the same as that when I run sudo apt-get install libwebkit2gtk-4.0-37.
Could someone help me out? Any reply is in fervent anticipation.
Platform: x64, Ubuntu 18.04 LTS
I'm currently working on Raspberry pi zero.
When i write:
perf --version
/usr/bin/perf: line 13: exec: perf_4.14: not found E: linux-perf-4.14
is not installed.
when i do:
sudo apt-get install linux-perf
Then:
linux-perf is already the newest version (4.9+80+deb9u4+rpi1)
0 upgraded, 0 newly installed, 0 to remove and 216 not upgraded.
sudo apt-get install perf_4.14
E: Unable to locate package perf_4.14
E: Couldn't find any package by glob
'perf_4.14' E: Couldn't find any package by regex 'perf_4.14'
sudo apt-get install linux-tools-common linux-base
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-tools-common
sudo apt-get install linux-tools-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-tools-4.14.79
E: Couldn't find any package by glob 'linux-tools-4.14.79'
E: Couldn't find any package by regex 'linux-tools-4.14.79'
Please help me in this!
Thanks
I encountered the same problem in the k8s pod environment.
Install perf in Debian GNU/Linux 10:
sudo apt install linux-perf
Tried to use perf, but reported an error:
:~/perf-tools$ sudo perf -h
/usr/bin/perf: line 13: exec: perf_5.4: not found
E: linux-perf-5.4 is not installed.
After research, I found that /usr/bin/perf used uname -r to get the linux kernel version of the host instead of the version of the container.
So I solved it by renaming it.
sudo cp /usr/bin/perf_4.19 /usr/bin/perf_5.4
Whenever I tried to install new package,
"The package software-properties-gtk needs to be reinstalled, but I can't find an archive for it."
this error is occurred.
When i ran this command: "sudo apt-get install celery"
following error is occurred:
"Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package software-properties-gtk needs to be reinstalled, but I can't find an archive for it."
I am trying to install openssh-server on my Ubuntu-14.04.1. At a point it is throwing error like this.
>sudo apt-get update
>sudo apt-get install openssh-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
...
The following NEW packages will be installed:
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/o/openssh/openssh-sftp-server_6.6p1-2ubuntu2.8_amd64.deb **Size mismatch**
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
if try with the --fix-missing , also not working
>sudo apt-get install openssh-server --fix-missing
Reading package lists... Done
Building dependency tree
Reading state information... Done
...
Unable to correct missing packages.
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/o/openssh/openssh-sftp-server_6.6p1-2ubuntu2.8_amd64.deb **Size mismatch**
E: Aborting install.
Please , can any one suggest me to get rid of this problem?
Seems that you're using an invalid mirror. Just googling a bit you will easily find how to change your current mirror to a different one. Here's an answer from another Stack Exchange community:
https://askubuntu.com/questions/682532/ubuntu-repository-change
$ sudo apt-get install nodejs-legacy
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package node-legacy
please suggest the solution for this..
You could try:
sudo apt-cache search <part of package name your searching for>
or search for it on : https://www.debian.org/distrib/packages