NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
azzid
Jul 07, 2012Aspirant
apt-get -f install
Today I got notice of the new firmware (4.1.9) and installed it on my ReadyNAS NV+.
While fiddeling about with the machine I also took the time to install apt-get.
When trying to install things using apt-get however I get alot of unmet dependencies:
Of course I might be biting of a bit more than I can chew with that packet list, but even if I try to install just one package the result is more or less the same:
ddclient is just a perl-script with ssl support for perl as its only real dependency, so it shouldn't be that hard to install in my mind.
Would the suggested command
This is what the apt-get manual has to say about the -f switch:
The part that caught my eye is
While fiddeling about with the machine I also took the time to install apt-get.
When trying to install things using apt-get however I get alot of unmet dependencies:
# apt-get install libc6-dev gcc gdb libtag1-dev uuid-dev vim ddclient
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
gcc: Depends: cpp (>= 4:3.3.5-3) but it is not going to be installed
Depends: gcc-3.3 (>= 1:3.3.5-1) but it is not going to be installed
Depends: cpp-3.3 (>= 1:3.3.5-1) but it is not going to be installed
libc6-dev: Depends: linux-kernel-headers but it is not going to be installed
libtag1-dev: Depends: libtag1 (= 1.4-2bpo2.netgear2) but it is not going to be installed
smbclient: Depends: samba-common (= 3.0.37.netgear2) but 2:3.5.15-netgear1 is to be installed
vim: Depends: libgpmg1 (>= 1.19.6-1) but it is not going to be installed
Depends: vim-common (>= 1:6.3-071+1sarge3) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Of course I might be biting of a bit more than I can chew with that packet list, but even if I try to install just one package the result is more or less the same:
# apt-get install ddclient
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
smbclient: Depends: samba-common (= 3.0.37.netgear2) but 2:3.5.15-netgear1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
ddclient is just a perl-script with ssl support for perl as its only real dependency, so it shouldn't be that hard to install in my mind.
Would the suggested command
apt-get -f installbe a viable way to go, or will that just f**k my machine up like 'apt-get upgrade' is known to do?
This is what the apt-get manual has to say about the -f switch:
-f, --fix-broken
Fix; attempt to correct a system with broken dependencies in place.
This option, when used with install/remove, can omit any packages
to permit APT to deduce a likely solution. If packages are
specified, these have to completely correct the problem. The option
is sometimes necessary when running APT for the first time; APT
itself does not allow broken package dependencies to exist on a
system. It is possible that a system's dependency structure can be
so corrupt as to require manual intervention (which usually means
using dselect(1) or dpkg --remove to eliminate some of the
offending packages). Use of this option together with -m may
produce an error in some situations. Configuration Item:
APT::Get::Fix-Broken.
The part that caught my eye is
The option is sometimes necessary when running APT for the first time[...]
4 Replies
Replies have been turned off for this discussion
- Try this.
apt-get update && apt-get install build-essential
You might also need to check your /etc/apt/sources.list. Posts have been made here showing a few useful extra lines to try.
I've not touched my Duo Sparc for ages, so don't want to advise on what lines to add. - azzidAspirantSame result:
# apt-get update && apt-get install build-essential
Hit http://archive.debian.org sarge/main Packages
Hit http://archive.debian.org sarge/main Release
Hit http://archive.debian.org sarge/contrib Packages
Hit http://archive.debian.org sarge/contrib Release
Hit http://archive.debian.org sarge/non-free Packages
Hit http://archive.debian.org sarge/non-free Release
Hit http://archive.debian.org sarge/main Sources
Hit http://archive.debian.org sarge/main Release
Hit http://archive.debian.org sarge/contrib Sources
Hit http://archive.debian.org sarge/contrib Release
Hit http://archive.debian.org sarge/non-free Sources
Hit http://archive.debian.org sarge/non-free Release
Hit http://www.readynas.com readynas/ Packages
Hit http://www.readynas.com readynas/ Release
Reading Package Lists... Done
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
build-essential: Depends: libc6-dev but it is not going to be installed or
libc-dev
Depends: libc6-dev-sparc64 but it is not going to be installed
Depends: gcc (>= 3:3.3) but it is not going to be installed
Depends: g++ (>= 3:3.3) but it is not going to be installed
Depends: dpkg-dev (>= 1.4.1.19) but it is not going to be installed
smbclient: Depends: samba-common (= 3.0.37.netgear2) but 2:3.5.15-netgear1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
My sources.list is quite simple:# cat /etc/apt/sources.list
deb http://www.readynas.com/packages readynas/
deb http://archive.debian.org/debian sarge main contrib non-free
deb-src http://archive.debian.org/debian sarge main contrib non-free
What bugs me is the samba-common dependency that keep appearing, shouldn't have anything to do with the particular installation. It appears every time I run apt-get. - azzidAspirantFinally said 'f**k it' to myself and ran apt-get -f install:
# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following packages will be REMOVED:
smbclient
0 upgraded, 0 newly installed, 1 to remove and 71 not upgraded.
Need to get 0B of archives.
After unpacking 9081kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 10125 files and directories currently installed.)
Removing smbclient ...
Is it likely that I'll miss smbclient? Does the stock firmware use it for anything? Seems unlikely that the nas would need to connect to another smb-server...
Also, apt-get still won't work:# apt-get update && apt-get install build-essential
Hit http://archive.debian.org sarge/main Packages
Hit http://www.readynas.com readynas/ Packages
Hit http://www.readynas.com readynas/ Release
Hit http://archive.debian.org sarge/main Release
Hit http://archive.debian.org sarge/contrib Packages
Hit http://archive.debian.org sarge/contrib Release
Hit http://archive.debian.org sarge/non-free Packages
Hit http://archive.debian.org sarge/non-free Release
Hit http://archive.debian.org sarge/main Sources
Hit http://archive.debian.org sarge/main Release
Hit http://archive.debian.org sarge/contrib Sources
Hit http://archive.debian.org sarge/contrib Release
Hit http://archive.debian.org sarge/non-free Sources
Hit http://archive.debian.org sarge/non-free Release
Reading Package Lists... Done
Reading Package Lists... Done
Building Dependency Tree... 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.
Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
build-essential: Depends: libc6-dev-sparc64 but it is not going to be installed
Depends: dpkg-dev (>= 1.4.1.19) but it is not going to be installed
E: Broken packages - azzidAspirantFurther checks show that apt-get is actually working now, it is just the build-essential packet that is bork:
# apt-get update && apt-get install vim
Hit http://archive.debian.org sarge/main Packages
Hit http://archive.debian.org sarge/main Release
Hit http://archive.debian.org sarge/contrib Packages
Hit http://archive.debian.org sarge/contrib Release
Hit http://archive.debian.org sarge/non-free Packages
Hit http://archive.debian.org sarge/non-free Release
Hit http://archive.debian.org sarge/main Sources
Hit http://archive.debian.org sarge/main Release
Hit http://archive.debian.org sarge/contrib Sources
Hit http://archive.debian.org sarge/contrib Release
Hit http://archive.debian.org sarge/non-free Sources
Hit http://archive.debian.org sarge/non-free Release
Hit http://www.readynas.com readynas/ Packages
Hit http://www.readynas.com readynas/ Release
Reading Package Lists... Done
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
libgpmg1 vim-common
Suggested packages:
gpm ctags vim-doc vim-scripts
The following NEW packages will be installed:
libgpmg1 vim vim-common
0 upgraded, 3 newly installed, 0 to remove and 71 not upgraded.
Need to get 4193kB of archives.
After unpacking 15.3MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.debian.org sarge/main libgpmg1 1.19.6-19sarge1 [50.2kB]
Get:2 http://archive.debian.org sarge/main vim-common 1:6.3-071+1sarge3 [3425kB]
Get:3 http://archive.debian.org sarge/main vim 1:6.3-071+1sarge3 [718kB]
Fetched 4193kB in 3s (1125kB/s)
Selecting previously deselected package libgpmg1.
(Reading database ... 10125 files and directories currently installed.)
Unpacking libgpmg1 (from .../libgpmg1_1.19.6-19sarge1_sparc.deb) ...
Selecting previously deselected package vim-common.
Unpacking vim-common (from .../vim-common_1%3a6.3-071+1sarge3_all.deb) ...
Selecting previously deselected package vim.
Unpacking vim (from .../vim_1%3a6.3-071+1sarge3_sparc.deb) ...
Setting up libgpmg1 (1.19.6-19sarge1) ...
Setting up vim-common (1:6.3-071+1sarge3) ...
Setting up vim (1:6.3-071+1sarge3) ...
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!