when i am trying to install npm it says : 404 Not Found [IP: 91.189.88.149 80] what to do? - npm

Following comes when i am trying to install npm
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-dev_1.0.2d-0ubuntu1.5_amd64.deb 404 Not Found [IP: 91.189.88.149 80]

Please update your package list: apt-get update
The current version of libssl-dev is 1.0.2g-1ubuntu4.11 (See Ubuntu Packages).
Old versions of packages will be deleted from the ubuntu repository once they are out-of-date long enough. After pulling the new package info, the package manager will install the new version.

Related

Can't update to newer version of AWS-CDK

I have aws-cdk version 2.44.0.
I've got notified (after running cdk diff) that there is a newer version, 2.47.0, and I should run npm install -g aws-cdk to upgrade to this version. I ran this command successfully with sudo (since without it I get errors) and got the following output:
changed 1 package, and audited 2 packages in 2s
found 0 vulnerabilities
but after check with cdk --version I found that the version is still 2.44.0.
additional information:
Ubuntu 20.04.4 LTS
Node.js v16.17
npm version: 8.19.2
So, how to update aws-cdk successfuly?
It turned out that this old version was installed using older version of npm which installed it in usr/local/bin, while the newer version of npm installed the latest version of cdk in usr/bin. After locally uninstalled the older version and running again which cdk it finally recognized the newer version in usr/bin.

Compilation failure "configure: error: udev support requested but libudev header not installed"

I did following on my ubuntu machine:
Git clone https://github.com/libusb/libusb.git
after extraction, ran ./autogen.sh script, this failed with following error:
checking libudev.h usability... no checking libudev.h presence... no
checking for libudev.h... no configure: error: udev support requested
but libudev header not installed
I also tried installing libudev using following command sudo apt-get install libudev-dev but it fails with following error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libudev1 udev
The following NEW packages will be installed:
libudev-dev
The following packages will be upgraded:
libudev1 udev
2 upgraded, 1 newly installed, 0 to remove and 83 not upgraded.
Need to get 1,197 kB of archives.
After this operation, 539 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 udev amd64 229-4ubuntu17
404 Not Found [IP: 91.189.88.162 80]
Err:2 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libudev1 amd64 229-4ubuntu17
404 Not Found [IP: 91.189.88.162 80]
Err:3 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libudev-dev amd64 229-4ubuntu17
404 Not Found [IP: 91.189.88.162 80]
Unable to correct missing packages.
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/s/systemd/udev_229-4ubuntu17_amd64.deb 404 Not Found [IP: 91.189.88.162 80]
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/s/systemd/libudev1_229-4ubuntu17_amd64.deb 404 Not Found [IP: 91.189.88.162 80]
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/s/systemd/libudev-dev_229-4ubuntu17_amd64.deb 404 Not Found [IP: 91.189.88.162 80]
E: Aborting install.
Any help would be greatly appreciated. Thanks.
sudo apt install libudev-dev works on Ubuntu 18.04 LTS
I got this to working. First i installed libudev-dev the hardway.
1.wget http://kr.archive.ubuntu.com/ubuntu/pool/main/s/systemd/libudev-dev_204-5ubuntu20_amd64.deb and wget http://kr.archive.ubuntu.com/ubuntu/pool/main/s/systemd/libudev1_204-5ubuntu20_amd64.deb
Installed these packages using sudo dpkg -i <*.deb>
Now, ran ./autogen.sh under libusb folder.
Configuration completed successfully!

How to install apache2 in Ubuntu

I am trying to install apache2 in Ubuntu 12. I installed Ubuntu in Virtual Machine. I have problems. First, my system can not update or upgrade. When I type:
I receive a lot of errors like this:
Err http://security.ubuntu.com quantal-security/main Sources
404 Not Found [IP: 91.189.91.14 80]
At the final line, this is the result:
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-backports/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.91.13 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
Second, when I try to install apache2. I type:
sudo apt-get install apache2 apache2-doc apache2-utils
Again, it fails. The result:
e#ubuntu:/etc$ sudo apt-get install apache2 apache2-doc apache2-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package apache2
E: Unable to locate package apache2-doc
E: Unable to locate package apache2-utils
e#ubuntu:/etc$
Can you help me plz?
EDIT:
This command does not work either.
sudo apt-get update && sudo apt-get upgrade
I get:
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-backports/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.91.24 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
The problem is with the OS installation.
use sudo apt-get update && sudo apt-get upgrade. If ou cannot update. Then try to re-install the OS.
After a fresh install of your OS try sudo apt-get install apache2 apache2-doc apache2-utils

Apache2 installation failed

Hi i am trying to install Apache2 server on my Ubuntu 12.04, but when i enter this command sudo apt-get install apache2 i am getting this error -
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: apache2 : Depends: apache2-bin (= 2.4.12-1+deb.sury.org~precise+5) but it is not going to be installed E: Unable to correct problems, you have held broken packages.
How do i fix this problem??
I found answer while installing add apache2-bin dependency to do that follow this command :-
sudo apt-get install install apache2 apache2-bin

How do I install ASP.NET 5 vNext on Mac OS X? 404 on mono--monolite

I tried to install the latest ASP.NET on Mac OS X Yosemite according to the instructions on github.
I already have Homebrew, so this step worked fine:
brew tap aspnet/k
However, on the next step, brew install kvm, I get errors:
$ brew install kvm
==> Installing kvm dependency: mono
==> Downloading http://download.mono-project.com/sources/mono/mono-3.8.0.tar.bz2
Already downloaded: /Library/Caches/Homebrew/mono-3.8.0.tar.bz2
==> Downloading http://storage.bos.xamarin.com/mono-dist-master/latest/monolite-
curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "mono--monolite"
Download failed: http://storage.bos.xamarin.com/mono-dist-master/latest/monolite-111-latest.tar.gz
Note: the first time I ran this, I got a slightly different message when mono-3.8.0 installed successfully.
David Fowler was quick to answer my question on Twitter and suggested a brew update (Thanks David!) but I got this:
$ brew update
error: Your local changes to the following files would be overwritten by merge:
Library/Formula/google-perftools.rb
Please, commit your changes or stash them before you can merge.
Aborting
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master
At this point, it seems like it's a Homebrew problem. What am I doing wrong?
Update: sorry, I was an idiot. As suggested by agua from mars and David Folwer, I fixed the issue as follows:
cd /usr/local/Library/Formula/
git reset HEAD google-perftools.rb
git checkout google-perftools.rb
brew update
brew install kvm
And this time kvm installed OK. Then I just added the line source /usr/local/Cellar/kvm/1.0.0-beta1/libexec/kvm.sh to my .bash_profile
As we discuss in comments.
You have a git conflict on this file Library/Formula/google-perftools.rb.
you should undo your change:
git checkout -- Library/Formula/google-perftools.rb
or doing a git reset.
And update brew again