Error could not find xdg icon resource

Yesterday I installed Fedora 15 Beta with GNOME 3 - it works well. One problem though is that I installed Chrome 32-bit (which was wrong, should have been the 64-bit version) and now I can't uninst...

Yesterday I installed Fedora 15 Beta with GNOME 3 — it works well. One problem though is that I installed Chrome 32-bit (which was wrong, should have been the 64-bit version) and now I can’t uninstall it.

I can’t find it in Add/Remove Software, and I also can’t install the correct version of Chrome because it complains about my other copy of Chrome.

Any ideas how I can remove the existing copy and get the 64-bit version installed?

Here’s the message I get when trying to install:

Test Transaction Errors:   file /etc/cron.daily/google-chrome from install of google-chrome-stable-11.0.696.65-84435.x86_64 conflicts with file from package google-chrome-stable-11.0.696.65-84435.i386
  file /opt/google/chrome/chrome from install of google-chrome-stable-11.0.696.65-84435.x86_64 conflicts with file from package google-chrome-stable-11.0.696.65-84435.i386
  file /opt/google/chrome/chrome-sandbox from install of google-chrome-stable-11.0.696.65-84435.x86_64 conflicts with file from package google-chrome-stable-11.0.696.65-84435.i386
  file /opt/google/chrome/libffmpegsumo.so from install of google-chrome-stable-11.0.696.65-84435.x86_64 conflicts with file from package google-chrome-stable-11.0.696.65-84435.i386
  file /opt/google/chrome/libpdf.so from install of google-chrome-stable-11.0.696.65-84435.x86_64 conflicts with file from package google-chrome-stable-11.0.696.65-84435.i386
  file /opt/google/chrome/libppGoogleNaClPluginChrome.so from install of google-chrome-stable-11.0.696.65-84435.x8...

fixer1234's user avatar

fixer1234

26.8k61 gold badges72 silver badges115 bronze badges

asked May 10, 2011 at 19:43

tbleckert's user avatar

Open up a terminal, and enter:

rpm -qa | grep chrome

Look to see if you can find the installed Chrome package, and if you find it, enter:

rpm -e <chrome package name here>

For example:

rpm -e google-chrome-stable-22.0.1229.94-161065.i386

If you’re looking for where the files are located, it may be different depending on a distro, but you can start by checking the popular answer here.

slhck's user avatar

slhck

219k68 gold badges592 silver badges580 bronze badges

answered May 10, 2011 at 20:01

TheEmpireNeverEnded's user avatar

7

Open a terminal and type (as root):

yum -y erase google-chrome

Or if you are a sudoer, type:

sudo yum -y erase google-chrome

And that will remove Chrome from your system.

Oliver Salzburg's user avatar

answered Aug 31, 2012 at 13:44

Jhonatan Sosa's user avatar

2

This is the only way I was able to remove it from CentOS 6.2:

[root@I7 ~]# rpm -qa | grep chrome
xorg-x11-drv-openchrome-0.3.0-3.20120806git.el6.x86_64

[root@I7 ~]# yum -y erase xorg-x11-drv-openchrome-0.3.0-3.20120806git.el6.x86_64

In some distributions, the package included instead might be chromium (grepping for chrom, not chrome):

$ use rpm -qa | grep chrom
chromium-31.0.1650.63-2.el6.x86_64

Jens Erat's user avatar

Jens Erat

17.3k14 gold badges61 silver badges74 bronze badges

answered Aug 3, 2013 at 14:43

greg's user avatar

1

Installing xdg-utils first, and then removing google-chrome did the trick for me:

  1. yum install xdg-utils
  2. yum remove google-chrome
  3. yum remove xdg-utils

answered Apr 8, 2019 at 14:43

Luis Alberto Barandiaran's user avatar

the second post, which says

yum -y erase google-chrome

Or if you are a sudoer, type:

sudo yum -y erase google-chrome

And that will remove Chrome from your system.

is the better way than the other post. while both will do the job, yum is the preferred method over rpm, as it is a smart frontend for the rpm package manager, and will correct any dependency mistakes automatically, which rpm cannot.

Community's user avatar

answered Dec 30, 2012 at 0:16

chaotix's user avatar

Автор Антон Валерьевич, 06 января 2014, 01:03:56

« назад — далее »

0 Пользователи и 1 гость просматривают эту тему.

Я пользуюсь Debian Squeeze. Предложения обновится до новой версии будут игнорироваться.
Я попытался установить древнюю и ubunt’овскую версию Pidgin — система ругнулась и НЕ установила. Также я попытался установить google-earth-stable — НЕ установился. Кроме этих двух программ я устанавливал весьма успешно несколько других пакетов, программ.
Проблема заключается в том, что теперь всякий раз при установке любого пакета мне указывается ошибка с упоминанием моих двух провалов. Сегодня, устанавливая Jitsi получил недоустановку зависимостей, опять же с упрёком по поводу pidgin и google-earth
Я прошу знатоков помочь мне привести мою систему в опрятное состояние, удалить созданный мною мусор и убрать следы безуспешных попыток установок.
Напишите, что мне нужно вам показать для содержательного, предметного общения.


Цитата: Антон Валерьевич от 06 января 2014, 01:03:56опять же с упрёком по поводу pidgin и google-earth

Вероятно потому, что у вас эти пакеты установлены, но не установлены зависимости к ним. Соответственно, либо удалите эти пакеты, либо ищите способ установить зависимости.


Цитата: yura_n от 06 января 2014, 01:19:07
Соответственно, либо удалите эти пакеты, либо ищите способ установить зависимости.

Прошу вас, помогите мне удалить их. Вряд ли я смогу разрешить их зависимости. Обе эти программы я устанавливал из файлов .deb в графической оболочке с помощью GDebi Package Installer.


В удалении ничего сложного нет. Либо так:


apt-get remove имя_пакета

либо так:


dpkg -r имя_пакета

Все от рута разумеется.


Является ли имя файла именем пакета ? А если бы я, например, переименовал бы файл до установки, повлияло ли бы это на имя пакета ?
А если бы я переименовал имя файла после установки или иным способом забыл имя файла, как мне узнать имя пакета ?


Цитата: Антон Валерьевич от 06 января 2014, 01:48:33Является ли имя файла именем пакета ?

Не всегда. Вы можете использовать команду:


apt-cache search имя_программы

чтобы установить правильное имя пакета. Хотя это тоже не универсальное средство, но в вашем случае скорее всего сработает.


Спасибо.
Pidgin удалился. При попытке аналогичных действий с Гугля-планетой возникает затруднение.

Открыть содержимое (спойлер)

# apt-get remove google-earth-stable
Чтение списков пакетов… Готово
Построение дерева зависимостей       
Чтение информации о состоянии… Готово
Пакеты, которые будут УДАЛЕНЫ:
  google-earth-stable
обновлено 0, установлено 0 новых пакетов, для удаления отмечено 1 пакетов, и 21 пакетов не обновлено.
не установлено до конца или удалено 1 пакетов.
После данной операции, объём занятого дискового пространства уменьшится на 187 MB.
Хотите продолжить [Д/н]? y
(Чтение базы данных … на данный момент установлено 93811 файлов и каталогов.)
Удаляется пакет google-earth-stable …
Error: Could not find xdg-icon-resource
dpkg: не удалось обработать параметр google-earth-stable (—remove):
подпроцесс установлен сценарий pre-removal возвратил код ошибки 1
configured to not write apport reports
                                      Error: Could not find xdg-icon-resource
dpkg: ошибка при очистке —
подпроцесс установлен сценарий post-installation возвратил код ошибки 1
При обработке следующих пакетов произошли ошибки:
google-earth-stable
E: Sub-process /usr/bin/dpkg returned an error code (1)

[свернуть]


Это какая-то заморочка с самим google-earth-stable. Попробуйте установить xdg-utils, затем удалите google-earth-stable, затем удалите xdg-utils.


Цитата: yura_n от 06 января 2014, 02:26:29
Это какая-то заморочка с самим google-earth-stable. Попробуйте установить xdg-utils, затем удалите google-earth-stable, затем удалите xdg-utils.

Спасибо! Получилось даже лучше, чем я ожидал. После удаления Гугля-планеты я оставил xdg-utils и попробовал заново установить свежеудалённую программу. И у меня это получилось.
Jitsi также успешно установился. Спасибо ! Загляните в личные сообщения.


  • Русскоязычное сообщество Debian GNU/Linux


  • Общие вопросы

  • Squeeze: При обработке следующих пакетов произошли ошибки:

I can’t update or uninstall Google Chrome. I am getting this error:

Setting up google-chrome-stable (36.0.1985.125-1) ...
xdg-icon-resource: size argument must be numeric
Try 'xdg-icon-resource --help' for more information.
dpkg: error processing package google-chrome-stable (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 google-chrome-stable
E: Sub-process /usr/bin/dpkg returned an error code (1)

I remember changing and replacing default icons of Google Chrome before. How do I solve this?

asked Aug 2, 2014 at 20:26

Jye Ramirez's user avatar

12

Based on the error and the mention of post-installation script, I would say that even the installation didn’t complete successfully. You’ll have to run sudo dpkg --purge --force-all google-chrome-stable to remove it.

Edit: Run gksudo gedit /var/lib/dpkg/info/google-chrome-stable.postinst, and add a # in front of any lines that call xdg-icon-resource. Save it, and try removing the package again.

answered Aug 2, 2014 at 21:41

saiarcot895's user avatar

saiarcot895saiarcot895

10.7k2 gold badges35 silver badges39 bronze badges

5

What worked for me was installing the xdg-utils package, removing chrome, and removing the xdg.utils package once it all finished:

  1. yum install xdg-utils
  2. yum remove google-chrome
  3. yum remove xdg-utils

answered Apr 4, 2019 at 17:15

Luis Alberto Barandiaran's user avatar

1

The response here helped me,

It’s very similar to @saiarcot895, except I also had to modify /var/lib/dpkg/info/google-chrome-stable.prerm in the same way.

answered Jun 1, 2015 at 19:47

Matt's user avatar

MattMatt

1308 bronze badges

Hi,
Just changed google-chrome-stable to point to stable release instead unstable and work with https.
Edit your /usr/bin/get-google-chrome as root

regards,
tibi

#!/bin/sh
# Google Chrome is built with open source code from Chromium.

PACKAGE=»google-chrome-stable»
DEBPKG=»${PACKAGE}_current_i386.deb»
URL=»https://dl.google.com/linux/direct/$DEBPKG»
CUR_DIR=$(pwd)
TEMP_DIR=/tmp/$PACKAGE-$$
ROOT=
FORCED=

while getopts «hfr:» option; do
case $option in
h) echo -e «Usage: $(basename $0) [-f|-r path]n -f: force install.n -r path: root directory.»; exit 1 ;;
f) FORCED=»—forced» ;;
r) ROOT=$OPTARG ;;
?) echo «Wrong argument, Exit ….»; exit 1 ;;
esac
done

# Check if we are root
if test $(id -u) != 0 ; then
echo -e «nYou must be root to run basename $0
echo -e «Please type ‘su’ and root password to become super-user.n»
exit 1
fi

# Avoid reinstall
if [ -d $ROOT/var/lib/tazpkg/installed/$PACKAGE ] && [ -z $FORCED ]; then
echo -e «n$PACKAGE package is already installed, add ‘-f’ option to force install.n»
exit 1
fi

# Create a TEMP_DIR
mkdir $TEMP_DIR
cd $TEMP_DIR

# Download the file
wget —no-check-certificate $URL
if [ ! -f $DEBPKG ]; then
cd $CUR_DIR
rm -rf $TEMP_DIR
echo «Could not download $DEBPKG. Exiting.»
exit 1
fi

dpkg-deb -e $DEBPKG .
VERSION=sed -n 's/Version: *//p' control

mkdir $PACKAGE-$VERSION

dpkg-deb -x $DEBPKG $PACKAGE-$VERSION/fs
rm -rf $PACKAGE-$VERSION/fs/usr/share
rm -rf $PACKAGE-$VERSION/fs/etc

# extracted pkg can be removed: Save RAM
rm -rf $DEBPKG

cat > $PACKAGE-$VERSION/receipt << EOT
PACKAGE=»$PACKAGE»
VERSION=»$VERSION»
CATEGORY=»non-free»
SHORT_DESC=»The web browser from Google.»
DEPENDS=»gtk+ GConf lzma flash-plugin bash xdg-utils xorg-libXss cups libjpeg62″
WEB_SITE=»http://www.google.com/chrome/»

post_install()
{
local root
root=$1
ln -s /usr/lib/libnspr4.so $root/usr/lib/libnspr4.so.0d 2> /dev/null
ln -s /usr/lib/libnss3.so $root/usr/lib/libnss3.so.1d 2> /dev/null
ln -s /usr/lib/libnssutil3.so $root/usr/lib/libnssutil3.so.1d 2> /dev/null
ln -s /usr/lib/libplc4.so $root/usr/lib/libplc4.so.0d 2> /dev/null
ln -s /usr/lib/libplds4.so $root/usr/lib/libplds4.so.0d 2> /dev/null
ln -s /usr/lib/libsmime3.so $root/usr/lib/libsmime3.so.1d 2> /dev/null
ln -s /usr/lib/libssl3.so $root/usr/lib/libssl3.so.1d 2> /dev/nul
sed -i ‘s/exec -a «$0″/exec /’ $root/usr/bin/google-chrome 2> /dev/null

# Add icons to the system icons
XDG_ICON_RESOURCE=»which xdg-icon-resource 2> /dev/null«
if [ ! -x «$XDG_ICON_RESOURCE» ]; then
echo «Error: Could not find xdg-icon-resource» >&2
return 1
fi
for icon in «/opt/google/chrome/product_logo_»*.png; do
size=»${icon##*/product_logo_}»
«$XDG_ICON_RESOURCE» install —size «${size%.png}» «$icon» «google-chrome»
done

# Add an entry to the system menu
XDG_DESKTOP_MENU=»which xdg-desktop-menu 2> /dev/null«
UPDATE_MENUS=»which update-menus 2> /dev/null«
if [ ! -x «$XDG_DESKTOP_MENU» ]; then
echo «Error: Could not find xdg-desktop-menu» >&2
return 1
fi
«$XDG_DESKTOP_MENU» install /opt/google/chrome/google-chrome.desktop

if [ -x «$UPDATE_MENUS» ]; then
update-menus
fi
}
pre_remove()
{
rm -f /usr/lib/libnspr4.so.0d
/usr/lib/libnss3.so.1d
/usr/lib/libnssutil3.so.1d
/usr/lib/libplc4.so.0d
/usr/lib/libplds4.so.0d
/usr/lib/libsmime3.so.1d
/usr/lib/libssl3.so.1d 2> /dev/nul

# Remove icons from the system icons
XDG_ICON_RESOURCE=»which xdg-icon-resource 2> /dev/null«
if [ ! -x «$XDG_ICON_RESOURCE» ]; then
echo «Error: Could not find xdg-icon-resource» >&2
return 1
fi
for icon in «/opt/google/chrome/product_logo_»*.png; do
size=»${icon##*/product_logo_}»
«$XDG_ICON_RESOURCE» uninstall —size «${size%.png}» «google-chrome»
done

# Remove the entry from the system menu
XDG_DESKTOP_MENU=»which xdg-desktop-menu 2> /dev/null«
UPDATE_MENUS=»which update-menus 2> /dev/null«
if [ ! -x «$XDG_DESKTOP_MENU» ]; then
echo «Error: Could not find xdg-desktop-menu» >&2
return 1
fi
«$XDG_DESKTOP_MENU» uninstall /opt/google/chrome/google-chrome.desktop

if [ -x «$UPDATE_MENUS» ]; then
update-menus
fi
}
EOT

# Pack
tazpkg pack $PACKAGE-$VERSION

# Clean to save RAM memory
rm -rf $PACKAGE-$VERSION

# Install pseudo package
yes y | tazpkg install $PACKAGE-$VERSION.tazpkg —root=$ROOT $FORCED

# Clean
cd $CUR_DIR
rm -rf $TEMP_DIR

So onlyoffice desktopeditors has a new version out. Trying to install it with just updating my existing template with the new version number, but when I run the xbps-src pkg onlyoffice-desktopeditors I get
«=> ERROR: onlyoffice-desktopeditors-5.4.1_33: cannot access wrksrc directory [/builddir/onlyoffice-d
esktopeditors-5.4.1]»

If I *MANUALLY* create the masterdir/buildir/onlyoffice-desktopeditors-5.4.1 folder, it procedes past this point, but then goes into install without downloading the file

«=> onlyoffice-desktopeditors-5.4.1_33: removing autodeps, please wait…
=> onlyoffice-desktopeditors-5.4.1_33: building …
  [runtime] libstdc++-9.2.0_1: found (https://alpha.de.repo.voidlinux.org/current)
  [runtime] curl-7.66.0_1: found (https://alpha.de.repo.voidlinux.org/current)
  [runtime] xdg-utils-1.1.3_1: found (https://alpha.de.repo.voidlinux.org/current)
  [runtime] dejavu-fonts-ttf-2.37_1: found (https://alpha.de.repo.voidlinux.org/current)
  [runtime] GConf-3.2.6_9: found (https://alpha.de.repo.voidlinux.org/current)
=> onlyoffice-desktopeditors-5.4.1_33: skipping check (XBPS_CHECK_PKGS is disabled) …
=> onlyoffice-desktopeditors-5.4.1_33: running pre-install hook: 00-lib32 …
=> onlyoffice-desktopeditors-5.4.1_33: running pre-install hook: 02-script-wrapper …
=> onlyoffice-desktopeditors-5.4.1_33: running pre-install hook: 98-fixup-gir-path …
=> onlyoffice-desktopeditors-5.4.1_33: running do_install …
cp: cannot stat ‘opt’: No such file or directory
=> ERROR: onlyoffice-desktopeditors-5.4.1_33: do_install: ‘cp -a $files ${_destdir}/${targetdir}’ ex
ited with 1
=> ERROR:   in _vcopy() at common/environment/setup/install.sh:195
=> ERROR:   in _noglob_helper() at common/environment/setup/install.sh:12
=> ERROR:   in do_install() at srcpkgs/onlyoffice-desktopeditors/template:28″

Any ideas? Literally this worked fine when 5.3.5_49 was released, but changing 3 lines in the template; the version to 5.4.1, changing the revision to 33, and changing the sha1 sum to what the new package is and suddenly it seems completely fubar. Haven’t been using Void nearly enough to have a clue how to fix.

Понравилась статья? Поделить с друзьями:
  • Error could not find the directory for home assistant
  • Error could not find steam api dll
  • Error could not find or load main class что это
  • Error could not find or load main class перевод
  • Error could not find or load main class как исправить