I'm trying to update and install stuff with my raspberry pi.
Unfortunately it's failing, and I get these errors when doing sudo apt-get update :
Err http://raspberrypi.collabora.com wheezy Release.gpg
Could not resolve 'host'
Err http://mirrordirector.raspbian.org wheezy Release.gpg
Could not resolve 'host'
Err http://archive.raspberrypi.org wheezy Release.gpg
Could not resolve 'host'
Err http://repository.wolfram.com wheezy Release.gpg
Could not resolve 'host'
And a few more lines like that...
The weird thing is that if I ping those addresses I get a response, so my DNS is probably ok:
ping mirrordirector.raspbian.org
Any other ideas why this would fail ? and of course, how can i fix this?
I recommend you to edit /etc/apt/sources.list with your favorite text editor in root (nano,vim,...), and writing this :
#deb mirrordirector.raspbian.org/raspbian wheezy main contrib non-free rpi
deb http://archive.raspbian.org/raspbian wheezy main contrib non-free
deb-src http://archive.raspbian.org/raspbian wheezy main contrib non-free
The # sign is just the way to commenting out a line in sources.list
When your done, download the public key and install it with this command :
wget http://archive.raspbian.org/raspbian.public.key -O - | sudo apt-key add -
If there is any problem, send the output :).
Good luck
Related
I have a new install of Debian Buster, I downloaded the ProtonVPN CLI package and went to install and got the errors:
E: Unable to locate package protonvpn-stable-release_1.0.0-1_all.deb
E: Couldn't find any package by glob 'protonvpn-stable-release_1.0.0-1_all.deb'
E: Couldn't find any package by regex 'protonvpn-stable-release_1.0.0-1_all.deb'
my /etc/apt/sources.list file looks like this:
#deb cdrom:[Debian GNU/Linux 10.10.0 _Buster_ - Official amd64 NETINST 20210619-16:11]/ buster main
#deb cdrom:[Debian GNU/Linux 10.10.0 _Buster_ - Official amd64 NETINST 20210619-16:11]/ buster main
deb http://deb.debian.org/debian/ buster main
deb-src http://deb.debian.org/debian/ buster main
deb http://security.debian.org.debian-security buster/updates main
deb-src http://security.debian.org.debian-security buster/updates main
deb http://deb.debian.org/debian/ buster-updates main
deb-src http://deb.debian.org/debian/ buster main
I was able to apt-get install wget as well as update and upgrdade. I even tried uncommenting the cdrom lines at the top. I reran apt-get update and apt-get upgrade.
Still, when I try to install the ProtonVPN package I get the above errors.
Note I understand that this is not strictly programming related. If there is a more appropriate stack, please let me know in comments and I will close and post there.
To install manually downloaded Debian package, use dpkg:
dpkg -i protonvpn-stable-release_1.0.0-1_all.deb
If dpkg is complaining about missing dependencies, then use apt-get -f install after running dpkg
For installing pip3 I am following apt update process.
But I am getting output in terminal:
$ sudo apt-get update
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python3-pip
Tried all available solutions on stackoverflow.
Please suggest any solutions.
Sometimes the sources.list file is not configured properly, so if none of solutions work than try this:
Type in terminal, gedit etc/apt/sources.list. A file will open, check if these given lines are present or not in that file:
deb http://deb.debian.org/debian buster main
deb-src http://deb.debian.org/debian buster main
deb http://deb.debian.org/debian-security/ buster/updates main
deb-src http://deb.debian.org/debian-security/ buster/updates main
deb http://deb.debian.org/debian buster-updates main
deb-src http://deb.debian.org/debian buster-updates main
In my case these were missing, this means the apt-get command had no mirrors configured to pull and update packages. These lines are the links to Debian repositories from where packages are pulled.
Copy and paste these lines into that file and save and close it.
Now run sudo apt-get update and than run sudo apt-get upgrade. Once process finishes run sudo apt-get install -y python3-pip. This will install pip3 without any error.
Please run an update and upgrade,
sudo apt update && sudo apt upgrade
Hopefully, this will fix the issue. if this doesn't work you can always update the source list manually.
I want to install Neovim but I get the following error:
~ » sudo apt-get install neovim
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package neovim
My sources.list:
deb http://httpredir.debian.org/debian jessie main
deb-src http://httpredir.debian.org/debian jessie main
deb http://httpredir.debian.org/debian jessie-updates main
deb-src http://httpredir.debian.org/debian jessie-updates main
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main
deb http://ftp.debian.org/debian jessie main non-free contrib
deb-src http://ftp.debian.org/debian jessie main non-free contrib
deb http://ftp.debian.org/debian jessie-updates main contrib non-free
deb-src http://ftp.debian.org/debian jessie-updates main contrib non-free
Uname:
Linux myserver 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u4 (2016-02-29) x86_64 GNU/Linux
Lsb_Release:
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.7 (jessie)
Release: 8.7
Codename: jessie
Can anyone help me?
well it's unable to locate the package cause there is no neovim in Debian stable as far I know. There is one in the testing repository.
Neovim is available in Testing (Stretch) so it should be available to Stable (Jessie) by using Backports.
General idea here: https://backports.debian.org/
Method here: https://backports.debian.org/Instructions/
For jessie add this line
deb http://ftp.debian.org/debian jessie-backports main
to your sources.list (or add a new file with the ".list" extension to /etc/apt/sources.list.d/) You can also find a list of other mirrors at https://www.debian.org/mirror/list
Run apt-get update
Then
apt-get -t jessie-backports install neovim
I'm pretty new in Debian world. I just got a private virtual server to host my websites, and i'm currently learning how to correctly secure a webserver.
If I understand well, when doing apt-get update && apt-get upgrade, apt will retrieve updates of my installed packages in the repositories listed in /etc/apt/sources.list. My sources.list looks like this :
deb http://http.debian.net/debian wheezy main
deb-src http://http.debian.net/debian wheezy main
deb http://http.debian.net/debian wheezy-updates main
deb-src http://http.debian.net/debian wheezy-updates main
deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main
And here come my questions :)
Can I remove the lines starting with "deb-src"? Am I correct if I say I don't need packages sources unless I want to modify them myself (which, obviously, i'm just not able to do)?
What's the point of having several repositories (http://http.debian.net/debian and http://security.debian.org/)? I keep reading documentations about apt, but I don't find any explanations. Are there any packages that are in security.debian.org that are not in http.debian.net/debian? And vice versa?
after the repository URI comes the component. I understand the differences between wheezy / stable / testing etc. But what's the differences between wheezy and wheezy/updates?
Thanks!
deb-src is for source packages. You would use those for cross compiling and other neat dev stuff.
The security repo is where the security related updates are stored.
Lastly the updates repo is for updates released after the distribution is live, I believe.
Take a look at https://wiki.debian.org/SourcesList
And this SE question https://unix.stackexchange.com/questions/4255/why-is-there-a-separate-package-repository-for-debian-security-updates
In tutorials I have seen people talk about adding a source.list to get the latest nginx version. I found this one for debian 6:
deb http://nginx.org/packages/debian/ squeeze nginx
deb-src http://nginx.org/packages/debian/ squeeze nginx
Can anyone tell me what it is for debain 7 please? I can't seem to find it, and I am not sure if exists yet.
Try with this :
deb http://nginx.org/packages/debian/ wheezy nginx
deb-src http://nginx.org/packages/debian/ wheezy nginx
Because the name of Debian 7 is "Wheezy".
You can
browse the development source tree at http://hg.nginx.org/nginx/file/
or clone that reposity to your local machine by hg clone http://hg.nginx.org/nginx