I am having trouble installing libgnutls28-dev package on debian buster, apt throws the following:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
gnutls-bin gnutls-doc
The following NEW packages will be installed:
libgnutls28-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,086 kB of archives.
After this operation, 4,417 kB of additional disk space will be used.
Err:1 http://deb.debian.org/debian buster/main amd64 libgnutls28-dev amd64 3.6.7-4
404 Not Found [IP: 151.101.220.204 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/g/gnutls28/libgnutls28-dev_3.6.7-4_amd64.deb 404 Not Found [IP: 151.101.220.204 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
The thing that bugs me is that the package is available at http://deb.debian.org/debian/pool/main/g/gnutls28/libgnutls28-dev_3.6.7-4+deb10u2_amd64.deb, and for some reason apt is looking for libgnutls28-dev_3.6.7-4_amd64.deb instead of libgnutls28-dev_3.6.7-4+deb10u2_amd64.deb.
I tried using a specific version running apt install libgnutls28-dev=3.6.7-4+deb10u2 and got the following:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '3.6.7-4+deb10u2' for 'libgnutls28-dev' was not found
The question is where does this come from? is it an apt issue? or is it gnutls28 misinforming about dependencies? or should there be a file libgnutls28-dev_3.6.7-4_amd64.deb in the first place?
[EDIT]
Adding this based on Knud's comment:
According to apt the system is up-to-date:
apt update
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://deb.debian.org/debian buster-updates InRelease
Hit:3 http://security.debian.org/debian-security buster/updates InRelease
Hit:4 http://deb.debian.org/debian buster-backports InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
I confirmed with one of the package mantainers, the available version _3.6.7-4+deb10u2 is the latest version, and apt should be aware of this, yet:
apt-cache policy libgnutls28-dev
libgnutls28-dev:
Installed: (none)
Candidate: 3.6.7-4
Version table:
3.6.7-4 500
500 http://deb.debian.org/debian buster/main amd64 Packages
So this is an apt issue. For some reason apt, even with supercow powers, is stuck in an outdated state of affairs. Any guidance would be greatly appreciated.
Found a solution, thanks to kind guidance by Andreas Metzler.
The mirror apparently is stuck with an outdated package index. I was using deb.debian.org that as i understand redirects apt to a nearby server. I updated the sources.list files in /etc/apt/ so they now point to a fixed nearby server and everything runs ok.
Related
I know that there are already several questions similar to this, but none of its solutions worked for me. Hence, after a lot of web searching and trying out different stuff, I simply decided to open a Stack Overflow question myself.
Basically, I had ROS Kinetic working on my Ubuntu 16.04 machine and it suddenly started giving me several errors when I tried to build my catkin workspace. After trying several stuff, I decided to uninstall ROS with sudo apt-get remove ros-* and install it again, according to the tutorial http://wiki.ros.org/kinetic/Installation/Ubuntu.
I leave below the full execution of the installation commands:
tomas#tomas-TOSHIBA:~ $ sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
tomas#tomas-TOSHIBA:~ $ sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
Executing: /tmp/tmp.plh6QKA5mU/gpg.1.sh --keyserver
hkp://keyserver.ubuntu.com:80
--recv-key
C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
gpg: requesting key AB17C654 from hkp server keyserver.ubuntu.com
gpg: key AB17C654: "Open Robotics <info#osrfoundation.org>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
tomas#tomas-TOSHIBA:~ $ sudo apt-get update
Hit:1 http://pt.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://pt.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:3 http://pt.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Hit:4 http://ppa.launchpad.net/atareao/atareao/ubuntu xenial InRelease
Hit:5 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu xenial InRelease
Hit:6 https://brave-browser-apt-release.s3.brave.com stable InRelease
Get:7 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Hit:8 http://packages.ros.org/ros/ubuntu xenial InRelease
Fetched 325 kB in 6s (50.3 kB/s)
Reading package lists... Done
tomas#tomas-TOSHIBA:~ $ sudo apt-get install ros-kinetic-desktop-full
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ros-kinetic-desktop-full
I already tried using curl and the different links they suggest on the tutorial to setup my keys, but the end result was the same. If I try sudo apt-get install ros-desktop-full, I get:
tomas#tomas-TOSHIBA:~ $ sudo apt-get install ros-desktop-full
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.
ros-desktop-full : Depends: ros-desktop but it is not going to be installed
Depends: ros-perception but it is not going to be installed
Depends: ros-simulators but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Running sudo aptitude install ros-desktop-full also did not work. If I execute sudo apt-get install ros-desktop, it says that ros-desktop has unmet dependencies. If I try to install those dependencies, they also have unmet dependencies.
Would really appreciate if anyone could help me. Thanks!
For all those suffering from the same problem, I was not able to solve it and ended up reinstalling Ubuntu on my computer. After this, everything worked correctly.
My advice would be to just reinstall Ubuntu right away, I would have lost less time if I had done it immediately.
I am new to coding in general and I have developed a simple app I want to convert to an .apk file.
I use Windows 10 so I have installed Oracle VM VirtualBox to run buildozer for conversion.
I have come across more different errors than I care to count, but the crux of my issues appear to be that I am missing executables:
[WARNING]: Missing executable: autoconf is not installed
[WARNING]: Missing executable: automake is not installed
[WARNING]: Missing executable: libtoolize is not installed
I have attempted to use:
sudo apt-get install autoconf
but I get the following:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
automake autotools-dev m4
Suggested packages:
autoconf-archive gnu-standards autoconf-doc libtool m4-doc
The following NEW packages will be installed:
autoconf automake autotools-dev m4
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 870 kB/1,067 kB of archives.
After this operation, 3,943 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Ign:1 http://fr.archive.ubuntu.com/ubuntu zesty/main amd64 autoconf all 2.69-10
Ign:2 http://fr.archive.ubuntu.com/ubuntu zesty/main amd64 autotools-dev all 20161112.1
Ign:3 http://fr.archive.ubuntu.com/ubuntu zesty/main amd64 automake all 1:1.15-5ubuntu1
Err:1 http://fr.archive.ubuntu.com/ubuntu zesty/main i386 autoconf all 2.69-10
404 Not Found [IP: 194.158.119.186 80]
Err:2 http://fr.archive.ubuntu.com/ubuntu zesty/main i386 autotools-dev all 20161112.1
404 Not Found [IP: 194.158.119.186 80]
Err:3 http://fr.archive.ubuntu.com/ubuntu zesty/main i386 automake all 1:1.15-5ubuntu1
404 Not Found [IP: 194.158.119.186 80]
E: Failed to fetch http://fr.archive.ubuntu.com/ubuntu/pool/main a/autoconf/autoconf_2.69-10_all.deb 404 Not Found [IP: 194.158.119.186 80]
E: Failed to fetch http://fr.archive.ubuntu.com/ubuntu/pool/main/a/autotools-dev/autotools-dev_20161112.1_all.deb 404 Not Found [IP: 194.158.119.186 80]
E: Failed to fetch http://fr.archive.ubuntu.com/ubuntu/pool/main/a/automake-1.15/automake_1.15-5ubuntu1_all.deb 404 Not Found [IP: 194.158.119.186 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
I have hit a wall after searching online for days looking for a solution but I have made no progress.
Ubuntu 17.04 (Zesty Zapus) reached End of Life on January 13, 2018. On the VM, you have to upgrade from Ubuntu 17.04 Zesty to Ubuntu 18.04 LTS Bionic. Please do the following:
sudo sed -i 's/zesty/bionic/g' /etc/apt/sources.list
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
sudo apt autoremove
sudo apt clean
Reboot the system
Nodejs is installed already, and it can be concluded by nodejs --version output.
Also, please note when I tried to upgrade node, I was getting the below error while doing apt-get update:
sudo apt-get update
.
..
Err:13 http://extras.ubuntu.com/ubuntu xenial/main Sources
404 Not Found [IP: 91.189.92.152 80]
Ign:17 http://extras.ubuntu.com/ubuntu xenial/main amd64 Packages
Ign:20 http://extras.ubuntu.com/ubuntu xenial/main i386 Packages
Ign:22 http://extras.ubuntu.com/ubuntu xenial/main all Packages
Ign:23 http://extras.ubuntu.com/ubuntu xenial/main Translation-en_US
Ign:24 http://extras.ubuntu.com/ubuntu xenial/main Translation-en
Ign:25 http://extras.ubuntu.com/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:26 http://extras.ubuntu.com/ubuntu xenial/main DEP-11 64x64 Icons
Fetched 204 kB in 12s (16.5 kB/s)
Reading package lists... Done
W: The repository 'http://extras.ubuntu.com/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://extras.ubuntu.com/ubuntu/dists/xenial/main/source/Sources 404 Not Found [IP: 91.189.92.152 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
Not sure what the issue is, however guessing some name conflict as I read somewhere ubuntu also has some package named 'node', however need to get through this.
Thanks in advance.
Surprisingly, Ubuntu 16.04 was the only culprit here.
If you visit the ubuntu package here, it looks like xenial package is not present.
I fixed this by commenting this in sources.list.
So the fix here is:
Open file /etc/apt/sources.list.
Comment all the lines which have
this url: http://extras.ubuntu.com/ubuntu .
As these packages are not
actual ubuntu source, we shouldn't have any impact by commenting it out.
PS: Also created one gist here for tracking this issue with ubuntu 16.04LTS.
I am trying to install puppet 3.7.2 on my server.
On all my nodes, I have the following:
apt-cache policy puppet
puppet:
Installed: 3.7.2-4+deb8u1
Candidate: 3.7.2-4+deb8u1
Version table:
4.8.2-5~bpo8+1 0
100 http://http.debian.net/debian/ jessie-backports/main amd64 Packages
*** 3.7.2-4+deb8u1 0
500 http://security.debian.org/ jessie/updates/main amd64 Packages
100 /var/lib/dpkg/status
3.7.2-4 0
500 http://httpredir.debian.org/debian/ jessie/main amd64 Packages
On my new server, however, if I try to install this specific version, the following happens:
apt-get install puppet=3.7.2-4+deb8u1
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '3.7.2-4+deb8u1' for 'puppet' was not found
Also:
apt-cache policy puppet
puppet:
Installed: (none)
Candidate: 4.8.2-5
Version table:
4.8.2-5 500
500 http://cdn-aws.deb.debian.org/debian stretch/main amd64 Packages
I am not very versed in Linux, how can I install this specific version?
Thanks for the help!
I agree with Matt that you shouldn't use puppet 3.7 as it is EOL long time ago.
However, if you really must, you can install the Wheezy Backports, by adding the line below to /etc/apt/sources.list.d/
deb http://ftp.debian.org/debian jessie-backports main
With this, you will be able to install the package.
I am quite new to Debian and Mono. When I tried to install Mono in Debian (which is GNOME Version 3.14.1, Kali GUN/Linux2.0(sana) 32-bit) following the steps from:
http://www.mono-project.com/docs/getting-started/install/linux/#usage
and type in terminal:
sudo apt-get update
I got:
# sudo apt-get update
Hit http://download.mono-project.com wheezy InRelease
Get:1 http://download.mono-project.com wheezy-apache24-compat InRelease [7,940 B]
Get:2 http://download.mono-project.com wheezy/main i386 Packages [56.5 kB]
Get:3 http://download.mono-project.com wheezy-apache24-compat/main i386 Packages [588 B]
Fetched 65.0 kB in 0s (266 kB/s)
W: Failed to fetch http://download.mono-project.com/repo/debian/dists/wheezy/InRelease Unable to find expected entry 'main/binary-x86/Packages' in Release file (Wrong sources.list entry or malformed file)
W: Failed to fetch http://download.mono-project.com/repo/debian/dists/wheezy-apache24-compat/InRelease Unable to find expected entry 'main/binary-x86/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.
How can i fix this problem? Thanks in advance!
EDIT:
This problem has been solved but another occurred. Here's the link to that problem:
Packages have unmet dependencies when installing mono-devel in Kali (Debian)
I just googled a lot and played around. I typed the following in the terminal:
dpkg --print-foreign-architectures
and it said: x86
As x86 is not a valid Debian (derivative) architecture so I removed it by:
dpkg --remove-architecture x86
Then the apt-get update works!