I have installed fresh install openSUSE 13.2(KDE).
Everything works fine. But when I want to install or update anything :
yast -i apache2
or
zypper in apache2
or
zypper update
so on…
I got following error :
Empty destination in URI: hd:///?device=/dev/disk/by-id/scsi-20001020000060804
Please tell me what’s the problem…
Disable that local repo, as root run
yast2 repositories
If you want to check for local repos as a normal user try:
zypper lr -u | awk '$(NF) ~ /cd|dir|hd|usb|iso/ {print $(NF)}'
If you want to take action ie disable those local repos then you need to be root.
Note: Requires bash4
mapfile -t local < <(zypper lr -u | awk '$(NF) ~ /cd|dir|hd|usb|iso/ {print $(NF)}' )
Check the output before you disable the local repos
echo zypper mr -d "${local@]}"
If that output looks right to you then you can remove the echo.
zypper mr -d "${local@]}"
If you don’t have bash4 try this:
local=(); while read -r ; do local+=("$REPLY"); done < <(zypper lr -u | awk '$(NF) ~ /cd|dir|hd|usb|iso/ {print $(NF)}')
echo zypper mr -d "${local@]}"
Again remove the echo so zypper can disable those local repos ;).
kensch
3
On 11/06/2014 03:26 PM, kamrava wrote:
>
> I have installed fresh install openSUSE 13.2(KDE).
>
> Everything works fine. But when I want to install or update anything :
>
>
> Code:
> --------------------
> yast -i apache2
> --------------------
>
> or
>
> Code:
> --------------------
> zypper in apache2
> --------------------
>
> or
>
> Code:
> --------------------
> zypper update
> --------------------
>
> so on…
>
> I got following error :
>
> Code:
> --------------------
> Empty destination in URI: hd:///?device=/dev/disk/by-id/scsi-20001020000060804
> --------------------
>
>
> Please tell me what’s the problem…
>
>
It means you installed the system with a DVD in the drive and now it is
missing. Either put the DVD in the drive or disable the repo.
Ken