[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] Problem with supermin & zypper



I was missing inifiles .. how supermin works, but returns an error:

> supermin -v --names bash                                                                                                          supermin 4.1.1
selected package handler: zypp-rpm
+ unset LANG LC_COLLATE
+ tmpdir=/tmp/supermin547e0fe6bded584f8986e84e3cda32ec.tmp
+ cache_dir=/tmp/supermin547e0fe6bded584f8986e84e3cda32ec.tmp/cache-dir
+ pkg_cache_dir=/tmp/supermin547e0fe6bded584f8986e84e3cda32ec.tmp/pkg_cache_dir
+ zypper --verbose --verbose --root /tmp/supermin547e0fe6bded584f8986e84e3cda32ec.tmp/root --reposd-dir /etc/zypp/repos.d --cache-dir /tmp/supermin547e0fe6bded584f8986e84e3cda32ec.tmp/cache-dir --pkg-cache-dir /tmp/supermin547e0fe6bded584f8986e84e3cda32ec.tmp/pkg_cache_dir --gpg-auto-import-keys --no-gpg-checks --non-interactive install --auto-agree-with-licenses --download-only bash
Verbosity: 2
Entering non-interactive mode.
Entering 'no-gpg-checks' mode.
Warning: Turning on '--gpg-auto-import-keys'. New repository signing keys will be automatically imported!
Non-option program arguments: 'bash'
Initializing Target
Failed to mount [server]:/vol/vol2/sles_images/repository/suse/SLES11/SP2/ia32e on /var/tmp/AP_0x8DLPyL: Mounting media failed (mount: only root can do that)

Abort, retry, ignore? [a/r/i/?] (a): a
Repository 'SUSE-Linux-Enterprise-Server-11-SP2 11.2.2-1.234' is out-of-date. You can run 'zypper refresh' as root to update it.
Loading repository data...
Retrieving repository 'SUSE-Linux-Enterprise-Server-11-SP2 11.2.2-1.234' data...
Checking whether to refresh metadata for SUSE-Linux-Enterprise-Server-11-SP2 11.2.2-1.234
Retrieving repository 'SUSE-Linux-Enterprise-Server-11-SP2 11.2.2-1.234' metadata [\]
Failed to mount [server]:/vol/vol2/sles_images/repository/suse/SLES11/SP2/ia32e on /var/tmp/AP_0x40mPGL: Mounting media failed (mount: only root can do that)

Abort, retry, ignore? [a/r/i/?] (a): a
Retrieving repository 'SUSE-Linux-Enterprise-Server-11-SP2 11.2.2-1.234' metadata [error]
Repository 'SUSE-Linux-Enterprise-Server-11-SP2 11.2.2-1.234' is invalid.
[|] Valid metadata not found at specified URL(s)
History:
 - Failed to mount [server]:/vol/vol2/sles_images/repository/suse/SLES11/SP2/ia32e on /var/tmp/AP_0x40mPGL: Mounting media failed (mount: only root can do that)

 - Can't provide /media.1/media

Please check if the URIs defined for this repository are pointing to a valid repository.
Problem loading data from 'SUSE-Linux-Enterprise-Server-11-SP2 11.2.2-1.234'
Resolvables from 'SUSE-Linux-Enterprise-Server-11-SP2 11.2.2-1.234' not loaded because of error.
Reading installed packages...
Force resolution: No
'bash' not found in package names. Trying capabilities.
No provider of 'bash' found.

real    0m0.091s
user    0m0.052s
sys     0m0.016s
supermin: external shell program failed, see earlier error messages



On Thu, Jul 11, 2013 at 11:18 AM, Richard W.M. Jones <rjones redhat com> wrote:
On Thu, Jul 11, 2013 at 10:50:01AM +0300, Or Goshen wrote:
> Now, I installed supermin from git. During configuration it discovered
> zypper:
>
> *checking for zypper... zypper
> checking for yum... no
> checking for rpm... rpm
> checking for yumdownloader... no
> checking for aptitude... no
> checking for apt-cache... apt-cache
> checking for dpkg... no
> checking if apt-cache depends --recurse is broken... yes
> checking for pacman... no*
>
> I have the following file:
>
> *> cat /etc/SuSE-release
> SUSE Linux Enterprise Server 11 (x86_64)
> VERSION = 11
> PATCHLEVEL = 2*
>
> What am I missing here ?
> Why do I get this error ?

First, let's see if your copy of supermin works at all.

Try:

  /path/to/your/supermin -v --names bash

Does that work?  If not, what's the precise error message?

Secondly, is libguestfs using your compiled-from-git supermin or some
other supermin that you happen to have installed?

Thirdly, take a look at the zypper module in supermin sources
(supermin/src/supermin_zypp_rpm.ml) and examine how OS detection
works.

Rich.

--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org



--
   Or Goshen
   CTO
   Cerbercomm
   Mob: 972-50-9182418

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]