我尝试使用 noobslab 中的命令安装 minitube。但由于获取 API 密钥的问题,我无法做到这一点。现在,我想摆脱计算机上以下命令所做的所有修改。
命令如下:-
wget -O minitube.sh http://drive.noobslab.com/data/apps/minitube/minitube.sh
chmod +x minitube.sh
source ./minitube.sh
sudo make install
以下是更改目录后使用该命令时遇到的错误列表。
root@dasaswag:~/minitube-master# sudo make uninstall
rm -f "/usr/bin/minitube"
rmdir /usr/bin/
rmdir: failed to remove '/usr/bin/': Directory not empty
Makefile:1700: recipe for target 'uninstall_target' failed
make: [uninstall_target] Error 1 (ignored)
rm -f -r /usr/share/minitube/locale
rmdir /usr/share/minitube/
rmdir: failed to remove '/usr/share/minitube/': No such file or directory
Makefile:1710: recipe for target 'uninstall_translations' failed
make: [uninstall_translations] Error 1 (ignored)
rm -f -r /usr/share/applications/minitube.desktop
rmdir /usr/share/applications/
rmdir: failed to remove '/usr/share/applications/': Directory not empty
Makefile:1720: recipe for target 'uninstall_desktop' failed
make: [uninstall_desktop] Error 1 (ignored)
rm -f -r /usr/share/icons/hicolor/scalable/apps/minitube.svg
rmdir /usr/share/icons/hicolor/scalable/apps/
rmdir: failed to remove '/usr/share/icons/hicolor/scalable/apps/': Directory not empty
Makefile:1730: recipe for target 'uninstall_iconsvg' failed
make: [uninstall_iconsvg] Error 1 (ignored)
rm -f -r /usr/share/icons/hicolor/16x16/apps/minitube.png
rmdir /usr/share/icons/hicolor/16x16/apps/
rmdir: failed to remove '/usr/share/icons/hicolor/16x16/apps/': Directory not empty
Makefile:1740: recipe for target 'uninstall_icon16' failed
make: [uninstall_icon16] Error 1 (ignored)
rm -f -r /usr/share/icons/hicolor/22x22/apps/minitube.png
rmdir /usr/share/icons/hicolor/22x22/apps/
rmdir: failed to remove '/usr/share/icons/hicolor/22x22/apps/': Directory not empty
Makefile:1750: recipe for target 'uninstall_icon22' failed
make: [uninstall_icon22] Error 1 (ignored)
rm -f -r /usr/share/icons/hicolor/32x32/apps/minitube.png
rmdir /usr/share/icons/hicolor/32x32/apps/
rmdir: failed to remove '/usr/share/icons/hicolor/32x32/apps/': Directory not empty
Makefile:1760: recipe for target 'uninstall_icon32' failed
make: [uninstall_icon32] Error 1 (ignored)
rm -f -r /usr/share/icons/hicolor/48x48/apps/minitube.png
rmdir /usr/share/icons/hicolor/48x48/apps/
rmdir: failed to remove '/usr/share/icons/hicolor/48x48/apps/': Directory not empty
Makefile:1770: recipe for target 'uninstall_icon48' failed
make: [uninstall_icon48] Error 1 (ignored)
rm -f -r /usr/share/icons/hicolor/64x64/apps/minitube.png
rmdir /usr/share/icons/hicolor/64x64/apps/
rmdir: failed to remove '/usr/share/icons/hicolor/64x64/apps/': Directory not empty
Makefile:1780: recipe for target 'uninstall_icon64' failed
make: [uninstall_icon64] Error 1 (ignored)
rm -f -r /usr/share/icons/hicolor/128x128/apps/minitube.png
rmdir /usr/share/icons/hicolor/128x128/apps/
rmdir: failed to remove '/usr/share/icons/hicolor/128x128/apps/': Directory not empty
Makefile:1790: recipe for target 'uninstall_icon128' failed
make: [uninstall_icon128] Error 1 (ignored)
rm -f -r /usr/share/icons/hicolor/256x256/apps/minitube.png
rmdir /usr/share/icons/hicolor/256x256/apps/
rmdir: failed to remove '/usr/share/icons/hicolor/256x256/apps/': Directory not empty
Makefile:1800: recipe for target 'uninstall_icon256' failed
make: [uninstall_icon256] Error 1 (ignored)
rm -f -r /usr/share/icons/hicolor/512x512/apps/minitube.png
rmdir /usr/share/icons/hicolor/512x512/apps/
rmdir: failed to remove '/usr/share/icons/hicolor/512x512/apps/': Directory not empty
Makefile:1810: recipe for target 'uninstall_icon512' failed
make: [uninstall_icon512] Error 1 (ignored)
root@dasaswag:~/minitube-master# ./source minitube.sh
bash: ./source: No such file or directory
root@dasaswag:~/minitube-master#
答案1
此脚本添加:
- 一组依赖项
- minitube 的源代码
只要小心一点,就可以将这两者都去除。
1.依赖项
该脚本使用以下命令下载依赖项:
sudo apt-get install build-essential qt4-dev-tools libphonon-dev \
libqt4-sql-sqlite phonon-backend-gstreamer phonon-backend-gstreamer
但你会发现,每个依赖项都拖拽了更多相关文件。而且其中一些文件可能被系统上的其他应用程序使用。
但是,您可以尝试通过简单地替换上述代码块中的文件sudo apt-get install
来删除上述文件。sudo apt-get remove
我的建议:保留依赖关系,这是安全的选择……
2. 源代码
该脚本将源代码下载为名为 的文件master.zip
,并将其解压到名为 的目录中minitube-master
。从那里编译和安装代码。这些文件应该是:~/master.zip
和~/minitube-master
。
因此,要删除文件,您可以按顺序尝试以下命令:
cd ~/minitube-master
sudo make uninstall
cd
rm -rf ~/minitube-master
rm ~/master.zip
希望一切都会好起来。