zhouzhongyuan / qa

Questions recods
MIT License
5 stars 1 forks source link

bash commond #80

Open zhouzhongyuan opened 6 years ago

zhouzhongyuan commented 6 years ago

.

zhouzhongyuan commented 6 years ago

添加到剪切板

ls | xclip -sel clip

修改host文件

sudo vi /etc/hosts 
zhouzhongyuan commented 6 years ago

Error:

E::Encountered a section with no Package: header, 
E:Problem with MergeList /var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-all_Packages,

Fix:

sudo rm -vf /var/lib/apt/lists/*
zhouzhongyuan commented 6 years ago

sudo with password

echo <password> | sudo -S <command>

shell - sudo with password in one command line? - Super User

zhouzhongyuan commented 6 years ago

Why can't I install gstreamer0.10-plugins-ugly in ubuntu?

ubuntu-restricted-extras is a software package for the computer operating system Ubuntu that allows the user to install essential software which is not already included due to legal or copyright reasons.

It is a meta-package that installs:

The ubuntu-restricted-extras is a metapackage and has the following dependencies1:

flashplugin-installer
gstreamer0.10-ffmpeg
gstreamer0.10-fluendo-mp3
gstreamer0.10-pitfdll
gstreamer0.10-plugins-bad
gstreamer0.10-plugins-ugly
gstreamer0.10-plugins-bad-multiverse
gstreamer0.10-plugins-ugly-multiverse
icedtea6-plugin
libavcodec-extra-52
libmp4v2-0
ttf-mscorefonts-installer
unrar

Source

To install ubuntu-restricted-extras from the Ubuntu Software Center, click the below icon: Install via the software center

Or via terminal (Ctrl+Alt+T), type:

sudo apt-get install ubuntu-restricted-extras

from Ubuntu restricted extras after install ubuntu 12.04 - Ask Ubuntu