whenever I do sudo apt-get update this output appear
$ sudo apt-get update
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' doesn't support architecture 'arm64'
N: Skipping acquire of configured file 'contrib/binary-arm64/Packages' as repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' doesn't support architecture 'arm64'
N: Skipping acquire of configured file 'non-free/binary-arm64/Packages' as repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' doesn't support architecture 'arm64'
N: Skipping acquire of configured file 'rpi/binary-arm64/Packages' as repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' doesn't support architecture 'arm64'
and it's so annoying that there are >N: Skipping acquire of configured file line, although these line are not affect the performance, I mean I can still update or upgrade packages or even install packages without problem.
so the question is, how can I remove those >N: Skipping acquire of configures file message
I had the same problem. I fixed it by entering the following command:
sudo dpkg --remove-architecture arm64
I suspect I may have added the arm64 architecture by mistake at some earlier time. The standard 32-bit Raspberry Pi OS (aka Raspbian) does not support 64-bit applications.
Because a repository which defined in your sources.list doesn't support one of your APT::Architectures config options.
Usually, a software developers in their installation's guides writes a common form of repository specification, like a
deb uri suite component1 [component2 component3 ... ]
This is a one-line-style format specification of repository. I assume that your specification looks like:
deb http://raspbian.raspberrypi.org/raspbian buster InRelease,
where http://raspbian.raspberrypi.org/raspbian is a uri, buster is a suite, and InRelease is a component1. The deb uri suite component1 format is the simplest, and it will guarantee that apt-get will work forever with that repository on the most of user's computers. But, there is a little trap: the developers doesn't know in advance which architectures supported on every machine of every user. When a user have architecture, which is not present in repository, he get the Skipping acquire of configured file '.. doesn't support architecture 'arm64' error.
An answer in the man sources.list:
The format for two one-line-style entries using the deb and deb-src types is:
deb [ option1=value1 option2=value2 ] uri suite [component1] [component2] [...]
deb-src [ option1=value1 option2=value2 ] uri suite [component1] [component2] [...]
, and:
Architectures (arch) is an option. If this option isn't set the default is all architectures as defined by the APT::Architectures config option.
It means that architecture arm64 is also set on your machine, and packages with this architecture requested by your package manager when it is calling that repository. All your APT::Architectures you can see in /etc/apt/apt.conf, or executing in the bash:
> apt-config dump | grep -F "APT::Architectures" -
The correct solution of your issue is to use a repository specification with defined Architecture option. If you need the arm, not the arm64, then specification should be:
deb [arch=arm] http://raspbian.raspberrypi.org/raspbian buster InRelease
With this format the apt package manager will request only packages with arm architecture from the repository.
Related
I am familiar with creating my own hosted yum repository on a Linux host as well as mirroring public yum repositories. What I am looking for is a solution (paid or free) that will allow me to essentially proxy the Vendor Repo (so packages can remain current) but I would only like to allow specific packages and their dependencies. For example, the repo will allow httpd but also allow users to pull bash, mailcap, shadow-utils, httpd-tools, apr, apr-util, glibc, libdb, expat, lua, pcre, libselinux, systemd-libs, zlib, systems.
Any information would be very useful. I tried limiting via the "/etc/yum.conf" file however it still has the limitation that I know all of the dependencies.
You can exclude specific packages from yum install, example:
# yum install gcc
Dependencies resolved.
===============================================================================================================
Package Architecture Version Repository Size
===============================================================================================================
Installing:
gcc x86_64 8.4.1-1.el8 appstream 23 M
Installing dependencies:
glibc-devel x86_64 2.28-151.el8
if your /etc/yum.conf forbids installation:
[main]
...
exclude=glibc-devel <--- forbid installation
installation fails (proving that glibc-devel was not installed)
$ sudo yum install gcc | grep error
Problem: package gcc-8.4.1-1.el8.x86_64 requires glibc-devel >= 2.2.90-12, but none of the providers can be installed
I am trying to install MongoDB 4.4 on a Raspberry Pi 4 model B running Raspberry Pi OS 64 bits.
I would like to know the proper way to add the depository:
https://repo.mongodb.org/apt/debian/dists/buster/mongodb-org/4.4/
I believe it should be inserted in this folder:
/etc/apt/sources.list.d/
But I can't find the correct manner to do it.
I tried a few options, one being creating a file mongodb-org-4.4.list in the /etc/apt/sources.list.d directory containing this:
deb https://repo.mongodb.org/apt/debian/ buster main
But nothing worked. I always get some error message when running:
apt update
Something like:
Reading package lists... Done
E: The repository 'https://repo.mongodb.org/apt/debian buster Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
........
Further information:
If I set the contents of /etc/apt/sources.list.d/mongodb-org-4.4.list to:
deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main
as recommended in the document Install MongoDB Community Edition on Debian.
This is the result of running apt-get update :
root#raspberrypi:/home/pi#
root#raspberrypi:/home/pi# apt-get update
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://deb.debian.org/debian-security buster/updates InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Ign:4 http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 InRelease
Hit:5 http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 Release
Hit:6 http://archive.raspberrypi.org/debian buster InRelease
Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-armhf/Packages' as repository 'http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 InRelease' doesn't support architecture 'armhf'
N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 InRelease' doesn't support architecture 'arm64'
root#raspberrypi:/home/pi#
If someone knows how to solve this please let me know.
Follow instructions in https://docs.mongodb.com/manual/tutorial/install-mongodb-on-debian/, specifically the part about adding keys.
There are no prebuilt packages for arm on Debian. https://www.mongodb.com/download-center/community/releases/archive does provide arm64 on Ubuntu 16.04.
I am creating a RPM package(ex test.RPM) which has a dependency of nss tools.
because my test.RPM application adds CA certificate to Chromum\firefox browsers to trust my self signed certificate.So i added
yum install nss-tools in the %prep section of the spec file.
while installing the test.RPM(yum install test.rpm) it throws an error
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
I know the reason, yum is already locked by test package.
Could anyone suggest how to add the prerequisite package to be installed with RPM installation while packaging the RPM.
Requires: nss-tool
For more info see http://ftp.rpm.org/api/4.4.2.2/dependencies.html
I'm trying to install Visual studio code.
My Raspb. Version is:
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 9.8 (stretch)
Release: 9.8
Codename: stretch
I tried several method (starting to download .deb and using dpkg or install command) but nothing worked.
How can I fix this problem? I really need VSC because my project is growing and Geany messes up.
Downloaded .deb and .tar files from the official site, followed the setup instruction but I got this error
With dpkg (both 32 and 64bit):
"package architecture (amd64) does not match system (armhf)"
"package architecture (i386) does not match system (armhf)"
With sudo install:
sudo apt install ./code_1.33.1-1554971066_amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'code:amd64' instead of './code_1.33.1-1554971066_amd64.deb'
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:
code:amd64 : Depends: libnotify4:amd64 but it is not installable
Depends: libnss3:amd64 (>= 2:3.26) but it is not installable
Depends: apt:amd64 but it is not installable
Depends: libxkbfile1:amd64 but it is not installable
Depends: libsecret-1-0:amd64 but it is not installable
Depends: libgtk-3-0:amd64 (>= 3.10.0) but it is not installable
Depends: libxss1:amd64 but it is not installable
E: Unable to correct problems, you have held broken packages.
With repository:
pi#raspberrypi:~/Downloads $ sudo apt-get update
Err:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Temporary failure resolving 'raspbian.raspberrypi.org'
Err:2 http://archive.raspberrypi.org/debian stretch InRelease
Temporary failure resolving 'archive.raspberrypi.org'
Err:3 https://packages.microsoft.com/repos/vscode stable InRelease
Could not resolve host: packages.microsoft.com
Reading package lists... Done
W: Failed to fetch http://raspbian.raspberrypi.org/raspbian/dists/stretch/InRelease Temporary failure resolving 'raspbian.raspberrypi.org'
W: Failed to fetch http://archive.raspberrypi.org/debian/dists/stretch/InRelease Temporary failure resolving 'archive.raspberrypi.org'
W: Failed to fetch https://packages.microsoft.com/repos/vscode/dists/stable/InRelease Could not resolve host: packages.microsoft.com
W: Some index files failed to download. They have been ignored, or old ones used instead.
pi#raspberrypi:~/Downloads $ sudo apt-get install code
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package code
I'm getting mad about this problem, I tried older repository but they don't work.
There are Community builds of Visual Studio Code available (for Raspberry Pi and other ARM and Intel systems).
The packages are currently available in DEB and RPM format. You can use the scripts provided here to install the packages and add their repository to your system or install it manually.
Below I summarized the steps:
Open a new terminal. If you need super-user rights (you probably do), then you can enter sudo -s and press return to enter a super-user session. Run the installer for your current distribution:
APT instructions
(including Debian, Raspbian, Ubuntu and Linux Mint)
. <( wget -O - https://code.headmelted.com/installers/apt.sh )
Press the return key. Once the installer has completed, you should have a "Code - OSS" entry in your desktop program list.
Manual installation
If for any reason the script above will not work on your system, or you do not want to add the package source for updates, you can get the latest version of the package for your system below.
Public GPG key
For either APT or YUM installation, you'll want the public GPG key to verify the package, which you can download here.
APT and YUM packages
The latest packages are available directly from the PackageCloud releases page.
The specific package you need is available here.
EDIT:
At this time (29.04.2019) the current release (v. 1.32) appears not to be working for everybody. See: issue#64. Seems that you'll have to go back to v. 1.29, which is reported to be running fine.
You can choose this package and install it manually, or use APT. If you decide to install it via APT, note that you'll have to mark the package on hold as described below.
To prevent code-oss from upgrading (so that you can keep v. 1.29 until the issue is fixed) follow these instructions:
Install v. 1.29 via APT:
apt-get install code-oss=1.29.0-1539702286
Then mark it on hold by running:
apt-mark hold code-oss
Now running apt-get upgrade won't try to bump it up until you run:
apt-mark unhold code-oss
This will allow it to upgrade again as usual.
The sequence of steps listed in http://wiki.ros.org/kinetic/Installat... have been followed. (Trying to install ROS kinetic in Ubuntu 16.04) Error when entering the following command :
$sudo apt-get install ros-kinetic-desktop-full
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-kinetic-desktop-full : Depends: ros-kinetic-desktop but it is not going to be installed Depends: ros-kinetic-perception but it is not going to be installed Depends: ros-kinetic-simulators but it is not going to be installed Depends: ros-kinetic-urdf-tutorial but it is not going to be installed E: Unable to correct problems, you have held broken packages.
I had the same problem because I have installed Gazebo before ROS.
If you have done the same thing, then you might get this error.
You can simply uninstall Gazebo and its dependencies, and then try installing the full version of ROS. Gazebo is usually included in the full versions of ROS. If it is not included in your version, then after installing ROS, you can install Gazebo.
Remove Gazebo:
sudo apt-get remove gazebo9
"gazebo9" has to be replaced with your version of Gazebo.
And then remove its dependencies
sudo apt-get autoremove
This command will remove all the unnecessary dependencies. After that, install ROS using the official documentation. Hope this will help you.
Note: ROS full versions comes with Gazebo
After upgrading ubuntu 14.04 to 16.04 I run into the same issue. Adding following package sources to /etc/apt/sources.list worked for me. So just do sudo gedit /etc/apt/sources.list copy paste following lines. Apply steps from 1.2 to 1.7 in this link
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
sudo aptitude install ros-kinetic-desktop-full
aptitude will display solutions to the unmet dependencies. Just keep hitting 'n' until you get one that installs ros (without wiping out something you need).
aptitude vs apt-get -the way software should function.
I solved the problem by installing ros-kinetic-desktop first, and then ros-kinetic-desktop-full.
Recently I have reinstalled my system (Ubuntu/Lubuntu 16.04) and then ROS several times. As I can remember, installing only ros-kinetic-desktop never cause any problem, but installing ros-kinetic-desktop-full always throw "no catkin_pkg error" when I invoking catkin_make. (It can be solved by pip install catkin_pkg.)
This time I installed ros-kinetic-desktop-full in LXLE (based on Lubuntu 16.04) and got the "unmet dependencies error". I solved it as mentioned at the beginning. (But the "no catkin_pkg error" still needs the pip solution.)
I had this problem after upgrading to Ubuntu 18.04. My problem turned out to be a corrupted python-catkin-pkg.
In general the fix is... just try to install one of those dependencies, and a dependency of the dependency, in a depth-first search fashion. Eventually you will get a package that installs but the dependent package will not. The one that installs successfully is your corrupt package. Remove it and try to install ros again. Repeat if there are more corrupt packages.
It might be worth a try to uninstall ros and any related packages you installed with it, then running sudo apt-get autoremove, then reinstalling all of your ros stuff. I didn't test this though.
I got the same error when I was installing ROS Melodic Morenia on ubuntu 18.04. After I recursively tried to install the unmatched dependency, I found installed libopenjp2-7 pakcage version unmatched the required version, which was 2.3.0-1-Xenial but required 2.3.0-1. I uninstalled and reinstalled it, ROS installed successfully. My ubuntu 18.04 was ungraded from 16.10, maybe it was the cause.
Configure your Ubuntu repositories properly and try further.
https://help.ubuntu.com/community/Repositories/Ubuntu
Configure your Ubuntu repositories to allow "restricted," "universe," and "multiverse." You can follow the Ubuntu guide for instructions on doing this.
If not you can look into earlier python versions and dependencies.
If there is an update on your Linux, you should take it. And then follow the instructions in order. You may need to open new terminal windows after installation.