AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-324302

Daniyal Javani's questions

Martin Hope
Daniyal Javani
Asked: 2018-08-29 05:19:30 +0800 CST

php 和 php7.2 包有什么区别?

  • 4

我应该同时安装它们和它的两个模块吗?

apt-cache depends php
php
  Depends: php7.2

php cli 有两个包:

apt-cache policy php7.2-cli 
php7.2-cli:
  Installed: (none)
  Candidate: 7.2.7-0ubuntu0.18.04.2
  Version table:
     7.2.7-0ubuntu0.18.04.2 500
        500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
     7.2.3-1ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages

下一个:

apt-cache policy php-cli 
php-cli:
  Installed: (none)
  Candidate: 1:7.2+60ubuntu1
  Version table:
     1:7.2+60ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu bionic/main i386 Packages
package-management repository apt
  • 2 个回答
  • 2184 Views
Martin Hope
Daniyal Javani
Asked: 2015-08-26 11:35:38 +0800 CST

为什么不能允许/拒绝 ufw Linux 中的特定软件?

  • 2

为什么不能允许特定软件(如 Firefox)使用 Internet 但拒绝在 ufw 中使用相同端口的其他软件(链接 Chrome)?windows有这个功能,为什么ufw没有?

networking
  • 1 个回答
  • 1276 Views
Martin Hope
Daniyal Javani
Asked: 2015-05-31 22:36:21 +0800 CST

在 Ubuntu 14.04.2 上无法检测电源插头/拔出

  • 5

插拔电源后没有任何反应,表示电池图标没有任何反映,或者拔下电源时电池一直用到完全没电,没有休眠甚至关机。重启后即可检测插拔。这个问题发生在(我认为)删除gnome-shell.

插入电源时:

$ cat /sys/class/power_supply/AC/online 
1
    $ upower -d
Device: /org/freedesktop/UPower/devices/line_power_AC
  native-path:          AC
  power supply:         yes
  updated:              Sun 31 May 2015 11:54:33 PM IRDT (506 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    warning-level:       none
    online:              yes
    icon-name:          'ac-adapter-symbolic'

Device: /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          BAT0
  vendor:               Hewlett-Packard
  model:                Primary
  serial:               05171 2011/07/28
  power supply:         yes
  updated:              Mon 01 Jun 2015 12:01:28 AM IRDT (91 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               charging
    warning-level:       none
    energy:              44.1288 Wh
    energy-empty:        0 Wh
    energy-full:         45.1008 Wh
    energy-full-design:  45.1008 Wh
    energy-rate:         5.8644 W
    voltage:             12.585 V
    time to full:        9.9 minutes
    percentage:          98%
    capacity:            100%
    technology:          lithium-ion
    icon-name:          'battery-full-charging-symbolic'

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply:         yes
  updated:              Thu 01 Jan 1970 03:30:00 AM IRST (1433100779 seconds ago)
  has history:          no
  has statistics:       no
  battery
    present:             yes
    state:               charging
    warning-level:       none
    energy:              44.1288 Wh
    energy-full:         45.1008 Wh
    energy-rate:         5.8644 W
    time to full:        9.9 minutes
    percentage:          98%
    icon-name:          'battery-full-charging-symbolic'

Daemon:
  daemon-version:  0.99.1
  on-battery:      no
  lid-is-closed:   no
  lid-is-present:  yes
  critical-action: HybridSleep

拔出后:

$ cat /sys/class/power_supply/AC/online 
0
    $ upower -d
Device: /org/freedesktop/UPower/devices/line_power_AC
  native-path:          AC
  power supply:         yes
  updated:              Mon 01 Jun 2015 12:07:52 AM IRDT (8 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    warning-level:       none
    online:              no
    icon-name:          'ac-adapter-symbolic'

Device: /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          BAT0
  vendor:               Hewlett-Packard
  model:                Primary
  serial:               05171 2011/07/28
  power supply:         yes
  updated:              Mon 01 Jun 2015 12:07:54 AM IRDT (6 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    energy:              45.0468 Wh
    energy-empty:        0 Wh
    energy-full:         45.1008 Wh
    energy-full-design:  45.1008 Wh
    energy-rate:         13.23 W
    voltage:             12.266 V
    time to empty:       3.4 hours
    percentage:          100%
    capacity:            100%
    technology:          lithium-ion
    icon-name:          'battery-full-symbolic'
  History (charge):
    1433101073  100.000 discharging
    1433101072  99.000  charging
  History (rate):
    1433101074  13.230  discharging
    1433101073  15.228  discharging
    1433101072  5.237   charging

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply:         yes
  updated:              Thu 01 Jan 1970 03:30:00 AM IRST (1433101080 seconds ago)
  has history:          no
  has statistics:       no
  battery
    present:             yes
    state:               discharging
    warning-level:       none
    energy:              45.0468 Wh
    energy-full:         45.1008 Wh
    energy-rate:         13.23 W
    time to empty:       3.4 hours
    percentage:          100%
    icon-name:          'battery-full-symbolic'

Daemon:
  daemon-version:  0.99.1
  on-battery:      yes
  lid-is-closed:   no
  lid-is-present:  yes
  critical-action: HybridSleep

添加acpi_osi=Linux到grub并更新它,但仍然有同样的问题。

跑sudo aptitude reinstall gnome-power-manager不过...

$ upower -m
Monitoring activity from the power daemon. Press Ctrl+C to cancel.
[00:05:28.228]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[00:05:28.228]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[00:05:28.228]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[00:05:28.228]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[00:05:28.228]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[00:05:28.228]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[00:05:28.228]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[00:05:28.228]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[00:05:28.228]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[00:05:28.228]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[00:05:28.228]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[00:05:28.228]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0

$ laptop-detect -v
We're a laptop (ACPI batteries found)

和

$ sudo lshw 
demon                     
    description: Notebook
    product: HP ProBook 4530s (XU015UT#ABA)
    vendor: Hewlett-Packard
    version: A0001D02
    serial: CNU13539PN
    width: 64 bits
    capabilities: smbios-2.6 dmi-2.6 vsyscall32
    configuration: boot=normal chassis=notebook family=103C_5336AN sku=XU015UT#ABA uuid=FFB143E6-AD38-E111-B7E7-D484BF0CB0F0
  *-core
       description: Motherboard
       product: 167C
       vendor: Hewlett-Packard
       physical id: 0
       version: KBC Version 22.24
       serial: PCCAE00QE1FDXJ
     *-firmware
          description: BIOS
          vendor: Hewlett-Packard
          physical id: a
          version: 68SRR Ver. F.40
          date: 03/12/2013
          size: 64KiB
          capacity: 2496KiB
          capabilities: pci pcmcia upgrade shadowing cdboot bootselect edd int5printscreen int9keyboard int14serial int17printer acpi usb smartbattery biosbootspecification netboot
     *-cpu
          description: CPU
          product: Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz
          vendor: Intel Corp.
          physical id: 0
          bus info: cpu@0
          version: Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz
          slot: CPU 1
          size: 2100MHz
          capacity: 2100MHz
          width: 64 bits
          clock: 100MHz
          capabilities: x86-64 fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer xsave avx lahf_lm arat epb pln pts dtherm tpr_shadow vnmi flexpriority ept vpid xsaveopt cpufreq
          configuration: cores=2 enabledcores=2 threads=4
        *-cache:0
             description: L3 cache
             physical id: 4
             slot: Unknown
             size: 3KiB
             capacity: 3KiB
             capabilities: asynchronous internal write-back instruction
        *-cache:1
             description: L2 cache
             physical id: 3
             slot: Unknown
             size: 256KiB
             capacity: 256KiB
             capabilities: asynchronous internal write-back instruction
        *-cache:2
             description: L1 cache
             physical id: 2
             slot: Unknown
             size: 32KiB
             capacity: 32KiB
             capabilities: asynchronous internal write-back
     *-cache
          description: L1 cache
          physical id: 1
          slot: Unknown
          size: 32KiB
          capacity: 32KiB
          capabilities: asynchronous internal write-back
     *-memory
          description: System Memory
          physical id: 5
          slot: System board or motherboard
          size: 4GiB
        *-bank:0
             description: SODIMM DDR3 Synchronous 1333 MHz (0.8 ns)
             product: EBJ41UF8BCS0-DJ-F
             vendor: Elpida
             physical id: 0
             serial: 0A751FC4
             slot: Bottom-Slot 1(top)
             size: 4GiB
             width: 64 bits
             clock: 1333MHz (0.8ns)
        *-bank:1
             description: DIMM [empty]
             physical id: 1
             slot: Bottom-Slot 2(under)
     *-pci
          description: Host bridge
          product: 2nd Generation Core Processor Family DRAM Controller
          vendor: Intel Corporation
          physical id: 100
          bus info: pci@0000:00:00.0
          version: 09
          width: 32 bits
          clock: 33MHz
        *-display
             description: VGA compatible controller
             product: 2nd Generation Core Processor Family Integrated Graphics Controller
             vendor: Intel Corporation
             physical id: 2
             bus info: pci@0000:00:02.0
             version: 09
             width: 64 bits
             clock: 33MHz
             capabilities: msi pm vga_controller bus_master cap_list rom
             configuration: driver=i915 latency=0
             resources: irq:32 memory:d4000000-d43fffff memory:c0000000-cfffffff ioport:5000(size=64)
        *-communication
             description: Communication controller
             product: 6 Series/C200 Series Chipset Family MEI Controller #1
             vendor: Intel Corporation
             physical id: 16
             bus info: pci@0000:00:16.0
             version: 04
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi bus_master cap_list
             configuration: driver=mei_me latency=0
             resources: irq:31 memory:d4904000-d490400f
        *-usb:0
             description: USB controller
             product: 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2
             vendor: Intel Corporation
             physical id: 1a
             bus info: pci@0000:00:1a.0
             version: 04
             width: 32 bits
             clock: 33MHz
             capabilities: pm debug ehci bus_master cap_list
             configuration: driver=ehci-pci latency=0
             resources: irq:16 memory:d4909000-d49093ff
        *-multimedia
             description: Audio device
             product: 6 Series/C200 Series Chipset Family High Definition Audio Controller
             vendor: Intel Corporation
             physical id: 1b
             bus info: pci@0000:00:1b.0
             version: 04
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi pciexpress bus_master cap_list
             configuration: driver=snd_hda_intel latency=0
             resources: irq:33 memory:d4900000-d4903fff
        *-pci:0
             description: PCI bridge
             product: 6 Series/C200 Series Chipset Family PCI Express Root Port 1
             vendor: Intel Corporation
             physical id: 1c
             bus info: pci@0000:00:1c.0
             version: b4
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:24 memory:d4800000-d48fffff
        *-pci:1
             description: PCI bridge
             product: 6 Series/C200 Series Chipset Family PCI Express Root Port 2
             vendor: Intel Corporation
             physical id: 1c.1
             bus info: pci@0000:00:1c.1
             version: b4
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:25 ioport:3000(size=8192) memory:d0000000-d3ffffff ioport:bfb00000(size=2097152)
        *-pci:2
             description: PCI bridge
             product: 6 Series/C200 Series Chipset Family PCI Express Root Port 3
             vendor: Intel Corporation
             physical id: 1c.2
             bus info: pci@0000:00:1c.2
             version: b4
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:26 memory:d4700000-d47fffff
           *-generic:0
                description: System peripheral
                product: SD/MMC Host Controller
                vendor: JMicron Technology Corp.
                physical id: 0
                bus info: pci@0000:23:00.0
                version: 30
                width: 32 bits
                clock: 33MHz
                capabilities: pm pciexpress msi bus_master cap_list rom
                configuration: driver=sdhci-pci latency=0
                resources: irq:18 memory:d4703000-d47030ff memory:d4710000-d471ffff
           *-generic:1 UNCLAIMED
                description: SD Host controller
                product: Standard SD Host Controller
                vendor: JMicron Technology Corp.
                physical id: 0.2
                bus info: pci@0000:23:00.2
                version: 30
                width: 32 bits
                clock: 33MHz
                capabilities: pm pciexpress msi cap_list
                configuration: latency=0
                resources: memory:d4702000-d47020ff
           *-generic:2
                description: System peripheral
                product: MS Host Controller
                vendor: JMicron Technology Corp.
                physical id: 0.3
                bus info: pci@0000:23:00.3
                version: 30
                width: 32 bits
                clock: 33MHz
                capabilities: pm pciexpress msi bus_master cap_list
                configuration: driver=jmb38x_ms latency=0
                resources: irq:18 memory:d4701000-d47010ff
        *-pci:3
             description: PCI bridge
             product: 6 Series/C200 Series Chipset Family PCI Express Root Port 4
             vendor: Intel Corporation
             physical id: 1c.3
             bus info: pci@0000:00:1c.3
             version: b4
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:27 memory:d4600000-d46fffff
           *-network
                description: Wireless interface
                product: AR9285 Wireless Network Adapter (PCI-Express)
                vendor: Qualcomm Atheros
                physical id: 0
                bus info: pci@0000:24:00.0
                logical name: wlan0
                version: 01
                serial: 74:de:2b:02:0b:da
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
                configuration: broadcast=yes driver=ath9k driverversion=3.18.11-031811-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11bgn
                resources: irq:19 memory:d4600000-d460ffff
        *-pci:4
             description: PCI bridge
             product: 6 Series/C200 Series Chipset Family PCI Express Root Port 6
             vendor: Intel Corporation
             physical id: 1c.5
             bus info: pci@0000:00:1c.5
             version: b4
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:28 ioport:2000(size=4096) memory:d4500000-d45fffff ioport:d4400000(size=1048576)
           *-network
                description: Ethernet interface
                product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
                vendor: Realtek Semiconductor Co., Ltd.
                physical id: 0
                bus info: pci@0000:25:00.0
                logical name: eth0
                version: 06
                serial: 10:1f:74:e3:50:5a
                size: 10Mbit/s
                capacity: 1Gbit/s
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
                configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl_nic/rtl8168e-2.fw latency=0 link=no multicast=yes port=MII speed=10Mbit/s
                resources: irq:29 ioport:2000(size=256) memory:d4404000-d4404fff memory:d4400000-d4403fff
        *-usb:1
             description: USB controller
             product: 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1
             vendor: Intel Corporation
             physical id: 1d
             bus info: pci@0000:00:1d.0
             version: 04
             width: 32 bits
             clock: 33MHz
             capabilities: pm debug ehci bus_master cap_list
             configuration: driver=ehci-pci latency=0
             resources: irq:16 memory:d4908000-d49083ff
        *-isa
             description: ISA bridge
             product: HM65 Express Chipset Family LPC Controller
             vendor: Intel Corporation
             physical id: 1f
             bus info: pci@0000:00:1f.0
             version: 04
             width: 32 bits
             clock: 33MHz
             capabilities: isa bus_master cap_list
             configuration: driver=lpc_ich latency=0
             resources: irq:0
        *-storage
             description: SATA controller
             product: 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller
             vendor: Intel Corporation
             physical id: 1f.2
             bus info: pci@0000:00:1f.2
             version: 04
             width: 32 bits
             clock: 66MHz
             capabilities: storage msi pm ahci_1.0 bus_master cap_list
             configuration: driver=ahci latency=0
             resources: irq:30 ioport:5068(size=8) ioport:5074(size=4) ioport:5060(size=8) ioport:5070(size=4) ioport:5040(size=32) memory:d4907000-d49077ff
     *-scsi:0
          physical id: 2
          logical name: scsi0
          capabilities: emulated
        *-disk
             description: ATA Disk
             product: TOSHIBA MK3261GS
             vendor: Toshiba
             physical id: 0.0.0
             bus info: scsi@0:0.0.0
             logical name: /dev/sda
             version: 0C
             serial: 71Q1F6SPS
             size: 298GiB (320GB)
             capabilities: partitioned partitioned:dos
             configuration: ansiversion=5 sectorsize=512 signature=4166d6a8
           *-volume:0
                description: EXT4 volume
                vendor: Linux
                physical id: 1
                bus info: scsi@0:0.0.0,1
                logical name: /dev/sda1
                logical name: /
                version: 1.0
                serial: 86e540f2-beac-4e58-bd87-1bcadd5e307b
                size: 19GiB
                capacity: 19GiB
                capabilities: primary bootable journaled extended_attributes large_files recover extents ext4 ext2 initialized
                configuration: created=2014-10-02 19:14:26 filesystem=ext4 label=Ubuntu lastmountpoint=/ modified=2015-05-31 10:31:32 mount.fstype=ext4 mount.options=rw,relatime,errors=remount-ro,data=ordered mounted=2015-05-31 10:31:32 state=mounted
           *-volume:1
                description: Windows NTFS volume
                physical id: 2
                bus info: scsi@0:0.0.0,2
                logical name: /dev/sda2
                logical name: /mnt/346A73466A7303C0
                version: 3.1
                serial: c2861a6a-21e0-8644-952f-8ac673f40627
                size: 40GiB
                capacity: 40GiB
                capabilities: primary ntfs initialized
                configuration: clustersize=4096 created=2013-12-01 04:06:59 filesystem=ntfs label=WIN 8.1 mount.fstype=fuseblk mount.options=rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096 state=mounted
           *-volume:2
                description: Linux swap volume
                physical id: 3
                bus info: scsi@0:0.0.0,3
                logical name: /dev/sda3
                version: 1
                serial: da3774ef-eb00-49f4-ba84-ed2c7f5d9664
                size: 4973MiB
                capacity: 4973MiB
                capabilities: primary nofs swap initialized
                configuration: filesystem=swap pagesize=4096
           *-volume:3
                description: Windows NTFS volume
                physical id: 4
                bus info: scsi@0:0.0.0,4
                logical name: /dev/sda4
                logical name: /media/vahid/Data
                version: 3.1
                serial: 0062ee8d-b73b-2d44-82cd-7550f61da814
                size: 233GiB
                capacity: 233GiB
                capabilities: primary ntfs initialized
                configuration: clustersize=4096 created=2011-12-28 18:31:33 filesystem=ntfs label=Data mount.fstype=fuseblk mount.options=rw,nosuid,nodev,noexec,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 state=mounted
     *-scsi:1
          physical id: 3
          logical name: scsi1
          capabilities: emulated
        *-cdrom
             description: DVD-RAM writer
             product: CDDVDW TS-L633R
             vendor: hp
             physical id: 0.0.0
             bus info: scsi@1:0.0.0
             logical name: /dev/cdrom
             logical name: /dev/sr0
             version: 0400
             capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
             configuration: ansiversion=5 status=nodisc
  *-battery
       product: PR06047
       vendor: 13-42
       physical id: 1
       slot: Primary
       capacity: 47520mWh
       configuration: voltage=10.8V
  *-network
       description: Ethernet interface
       physical id: 2
       logical name: eth1
       serial: 90:f6:52:49:75:db
       capabilities: ethernet physical
       configuration: broadcast=yes driver=rndis_host driverversion=22-Aug-2005 firmware=RNDIS device ip=192.168.1.100 link=yes multicast=yes
power-management
  • 1 个回答
  • 9161 Views
Martin Hope
Daniyal Javani
Asked: 2015-05-20 05:11:51 +0800 CST

如何安装最新版本的 Tor?

  • 2

我无法使用 obfs3 从伊朗运行 tor,但是当我下载最新版本的Tor Browserfromhttps://www.torproject.org/dist/torbrowser/4.5.1/tor-browser-linux64-4.5.1_en-US.tar.xz时,它运行正常。可能是因为来自https://launchpad.net/ubuntu/+source/torppa0.2.5.12-1的最新版本的 torhttps://blog.torproject.org/category/tags/tbb是来自0.2.7.5.

我不喜欢用Tor Browser,那怎么安装最新版的tor包呢?

所以,我尝试选项二https://www.torproject.org/docs/debian.html.en#ubuntu

$ cat /etc/apt/sources.list
deb http://archive.canonical.com/ trusty partner
deb-src http://archive.canonical.com/ trusty partner
deb http://us.archive.ubuntu.com/ubuntu/ trusty main universe restricted multiverse
deb http://security.ubuntu.com/ubuntu/ trusty-security main universe restricted multiverse
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main universe restricted multiverse
deb http://deb.torproject.org/torproject.org trusty main
deb-src http://deb.torproject.org/torproject.org trusty main

和

$ gpg --keyserver keys.gnupg.net --recv 886DDD89
gpg: requesting key 886DDD89 from hkp server keys.gnupg.net
gpg: key 886DDD89: "deb.torproject.org archive signing key" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1

和

$ gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
    OK

然后

$ sudo proxychains  apt-get update 

和

$ sudo proxychains apt-get install tor deb.torproject.org-keyring
ProxyChains-3.1 (http://proxychains.sf.net)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libseccomp2 tor-geoipdb torsocks
Suggested packages:
  mixmaster xul-ext-torbutton socat tor-arm polipo privoxy apparmor-utils
The following NEW packages will be installed:
  deb.torproject.org-keyring libseccomp2 tor tor-geoipdb torsocks
0 upgraded, 5 newly installed, 0 to remove and 10 not upgraded.
Need to get 1,490 kB of archives.
After this operation, 7,010 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
0% [Working]|DNS-request| us.archive.ubuntu.com 
|DNS-request| deb.torproject.org 
|S-chain|-<>-127.0.0.1:9150-<><>-4.2.2.2:53-|S-chain|-<>-127.0.0.1:9150-<><>-4.2.2.2:53-<><>-OK
<><>-OK
0% [Connecting to us.archive.ubuntu.com] [Connecting to deb.torproject.org]|DNS-response| us.archive.ubuntu.com is 91.189.91.14
|S-chain|-<>-127.0.0.1:9150-<><>-91.189.91.14:80-|DNS-response| deb.torproject.org is 82.195.75.101
0% [Connecting to us.archive.ubuntu.com (91.189.91.14)] [Connecting to deb.torp<><>-OK
<><>-OK
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/main libseccomp2 amd64 2.1.0+dfsg-1 [34.8 kB]
Get:2 http://deb.torproject.org/torproject.org/ trusty/main deb.torproject.org-keyring all 2014.08.31+b1 [5,268 B]
Get:3 http://us.archive.ubuntu.com/ubuntu/ trusty/universe torsocks amd64 1.3-3 [73.0 kB]
Get:4 http://deb.torproject.org/torproject.org/ trusty/main tor amd64 0.2.5.12-1~trusty+1 [837 kB]
Get:5 http://deb.torproject.org/torproject.org/ trusty/main tor-geoipdb all 0.2.5.12-1~trusty+1 [540 kB]
Fetched 1,490 kB in 26s (56.7 kB/s)                                            
Selecting previously unselected package libseccomp2:amd64.
(Reading database ... 641228 files and directories currently installed.)
Preparing to unpack .../libseccomp2_2.1.0+dfsg-1_amd64.deb ...
Unpacking libseccomp2:amd64 (2.1.0+dfsg-1) ...
Selecting previously unselected package deb.torproject.org-keyring.
Preparing to unpack .../deb.torproject.org-keyring_2014.08.31+b1_all.deb ...
Unpacking deb.torproject.org-keyring (2014.08.31+b1) ...
Selecting previously unselected package tor.
Preparing to unpack .../tor_0.2.5.12-1~trusty+1_amd64.deb ...
Unpacking tor (0.2.5.12-1~trusty+1) ...
Selecting previously unselected package torsocks.
Preparing to unpack .../torsocks_1.3-3_amd64.deb ...
Unpacking torsocks (1.3-3) ...
Selecting previously unselected package tor-geoipdb.
Preparing to unpack .../tor-geoipdb_0.2.5.12-1~trusty+1_all.deb ...
Unpacking tor-geoipdb (0.2.5.12-1~trusty+1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up libseccomp2:amd64 (2.1.0+dfsg-1) ...
Setting up deb.torproject.org-keyring (2014.08.31+b1) ...
OK
Setting up tor (0.2.5.12-1~trusty+1) ...
Something or somebody made /var/lib/tor disappear.
Creating one for you again.
Something or somebody made /var/log/tor disappear.
Creating one for you again.
Warning from profile system_tor (/etc/apparmor.d/system_tor) ptrace rules not enforced
Warning from profile system_tor (/etc/apparmor.d/system_tor) signal rules not enforced
Warning from /etc/apparmor.d/system_tor (/etc/apparmor.d/system_tor line 18): profile system_tor network rules not enforced
 * Starting tor daemon...                                                       May 19 19:16:12.263 [warn] Could not bind to 127.0.0.1:9050: Address already in use. Is Tor already running?
May 19 19:16:12.263 [warn] Failed to parse/validate config: Failed to bind one of the listener ports.
May 19 19:16:12.263 [err] Reading config failed--see warnings above.
                                                                         [fail]
invoke-rc.d: initscript tor, action "start" failed.
Tor was unable to start due to configuration errors.
Please fix them and manually restart the tor daemon using
 ´service start tor´
Setting up torsocks (1.3-3) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up tor-geoipdb (0.2.5.12-1~trusty+1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...

但是还有旧版本!

$ tor -v
May 19 19:16:22.994 [notice] Tor v0.2.5.12 (git-3731dd5c3071dcba) running on Linux with Libevent 2.0.21-stable, OpenSSL 1.0.1f and Zlib 1.2.8.
May 19 19:16:22.994 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
May 19 19:16:22.994 [warn] Command-line option '-v' with no value. Failing.
May 19 19:16:22.994 [err] Reading config failed--see warnings above.

你能帮我安装最新的 tor 包版本吗?

package-management
  • 1 个回答
  • 1639 Views
Martin Hope
Daniyal Javani
Asked: 2015-05-08 09:41:31 +0800 CST

导出 SOCKS_SERVER 不工作

  • 0

我试过了$ export socks_proxy=127.0.0.1:9150,$ wget http://icanhazip.com/但仍然显示以前的 IP(icanhazip.com 显示 IP)。Tor 在 Firefox 上正常工作。

networking
  • 2 个回答
  • 636 Views
Martin Hope
Daniyal Javani
Asked: 2015-01-12 07:03:44 +0800 CST

无法在内核为 3.18 的 Ubuntu 14.04 上启用 ufw 连接到 PPTP VPN

  • 19

突然 VPN 断开连接,无法在内核 3.18.1 上重新连接,所以我尝试安装内核 3.18.2,但我的问题仍然存在。但我可以很容易地连接到 3.14 内核的 VPN。

系统日志的输出:

Jan 11 17:43:51 DEMON NetworkManager[7443]: <info> Starting VPN service 'pptp'...
Jan 11 17:43:51 DEMON NetworkManager[7443]: <info> VPN service 'pptp' started (org.freedesktop.NetworkManager.pptp), PID 8741
Jan 11 17:43:51 DEMON NetworkManager[7443]: <info> VPN service 'pptp' appeared; activating connections
Jan 11 17:43:51 DEMON NetworkManager[7443]: <info> VPN plugin state changed: starting (3)
Jan 11 17:43:51 DEMON NetworkManager[7443]: <info> VPN connection 'VPN connection 1' (Connect) reply received.
Jan 11 17:43:51 DEMON pppd[8742]: Plugin /usr/lib/pppd/2.4.5/nm-pptp-pppd-plugin.so loaded.
Jan 11 17:43:51 DEMON pppd[8742]: pppd 2.4.5 started by root, uid 0
Jan 11 17:43:51 DEMON pppd[8742]: Using interface ppp0
Jan 11 17:43:51 DEMON pppd[8742]: Connect: ppp0 <--> /dev/pts/25
Jan 11 17:43:51 DEMON pptp[8747]: nm-pptp-service-8741 log[main:pptp.c:314]: The synchronous pptp option is NOT activated
Jan 11 17:43:51 DEMON NetworkManager[7443]:    SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Jan 11 17:43:51 DEMON NetworkManager[7443]:    SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
Jan 11 17:43:51 DEMON NetworkManager[7443]: <warn> /sys/devices/virtual/net/ppp0: couldn't determine device driver; ignoring...
Jan 11 17:43:51 DEMON pptp[8761]: nm-pptp-service-8741 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Jan 11 17:43:51 DEMON pptp[8761]: nm-pptp-service-8741 log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
Jan 11 17:43:51 DEMON pptp[8761]: nm-pptp-service-8741 log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
Jan 11 17:43:52 DEMON pptp[8761]: nm-pptp-service-8741 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Jan 11 17:43:52 DEMON pptp[8761]: nm-pptp-service-8741 log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
Jan 11 17:43:52 DEMON pptp[8761]: nm-pptp-service-8741 log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 37038).
Jan 11 17:43:53 DEMON vnstatd[1509]: Interface "ppp0" enabled.
Jan 11 17:43:55 DEMON kernel: [  921.480993] [UFW BLOCK] IN=wlan0 OUT= MAC=74:de:2b:02:0b:da:50:1c:bf:61:6f:41:08:00 SRC=192.168.0.1 DST=192.168.74.15 LEN=55 TOS=0x00 PREC=0x00 TTL=63 ID=64925 PROTO=47 
Jan 11 17:43:55 DEMON kernel: [  922.096723] [UFW BLOCK] IN=wlan0 OUT= MAC=74:de:2b:02:0b:da:50:1c:bf:61:6f:41:08:00 SRC=192.168.0.1 DST=192.168.74.15 LEN=54 TOS=0x00 PREC=0x00 TTL=63 ID=64926 PROTO=47 
Jan 11 17:43:57 DEMON kernel: [  923.911774] [UFW BLOCK] IN=wlan0 OUT= MAC=74:de:2b:02:0b:da:50:1c:bf:61:6f:41:08:00 SRC=192.168.0.1 DST=192.168.74.15 LEN=55 TOS=0x00 PREC=0x00 TTL=63 ID=64927 PROTO=47 
Jan 11 17:44:16 DEMON kernel: [  943.116984] [UFW BLOCK] IN=wlan0 OUT= MAC=74:de:2b:02:0b:da:50:1c:bf:61:6f:41:08:00 SRC=192.168.0.1 DST=192.168.74.15 LEN=54 TOS=0x00 PREC=0x00 TTL=63 ID=64937 PROTO=47 
Jan 11 17:44:22 DEMON pppd[8742]: LCP: timeout sending Config-Requests
Jan 11 17:44:22 DEMON pppd[8742]: Connection terminated.
Jan 11 17:44:22 DEMON NetworkManager[7443]: <warn> VPN plugin failed: 1
Jan 11 17:44:22 DEMON NetworkManager[7443]:    SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Jan 11 17:44:22 DEMON pppd[8742]: Modem hangup
Jan 11 17:44:22 DEMON pptp[8747]: nm-pptp-service-8741 warn[decaps_hdlc:pptp_gre.c:204]: short read (-1): Input/output error
Jan 11 17:44:22 DEMON pptp[8747]: nm-pptp-service-8741 warn[decaps_hdlc:pptp_gre.c:216]: pppd may have shutdown, see pppd log
Jan 11 17:44:22 DEMON pptp[8761]: nm-pptp-service-8741 log[callmgr_main:pptp_callmgr.c:234]: Closing connection (unhandled)
Jan 11 17:44:22 DEMON pptp[8761]: nm-pptp-service-8741 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request'
Jan 11 17:44:22 DEMON pppd[8742]: Exit.
Jan 11 17:44:22 DEMON NetworkManager[7443]: <warn> VPN plugin failed: 1
Jan 11 17:44:22 DEMON pptp[8761]: nm-pptp-service-8741 log[call_callback:pptp_callmgr.c:79]: Closing connection (call state)
Jan 11 17:44:22 DEMON NetworkManager[7443]: <warn> VPN plugin failed: 1
Jan 11 17:44:22 DEMON NetworkManager[7443]: <info> VPN plugin state changed: stopped (6)
Jan 11 17:44:22 DEMON NetworkManager[7443]: <info> VPN plugin state change reason: 0
Jan 11 17:44:22 DEMON NetworkManager[7443]: <info> Policy set '4r@z31' (wlan0) as default for IPv4 routing and DNS.
Jan 11 17:44:22 DEMON NetworkManager[7443]: <warn> error disconnecting VPN: Could not process the request because no VPN connection was active.
Jan 11 17:44:23 DEMON vnstatd[1509]: Interface "ppp0" disabled.
Jan 11 17:44:28 DEMON NetworkManager[7443]: <info> VPN service 'pptp' disappeared

更新

我的问题通过禁用 ufw 解决了,你能帮我解决这个防火墙和 vpn 的冲突吗?

更新 2

所以我尝试添加

-A ufw-before-input -p 47 -j ACCEPT
-A ufw-before-output -p 47 -j ACCEPT

进入/etc/ufw/before.rules但我的问题仍然存在。

networking
  • 3 个回答
  • 33759 Views
Martin Hope
Daniyal Javani
Asked: 2015-01-10 07:55:25 +0800 CST

如何提高 SMPlayer 中的视频质量,如 cyberlink powerdvd?

  • 0

Cyber​​link Powerdvd 有一个功能称为“具有 truetheater 增强功能的软件解码”。例如:“将原始视频放大到更高分辨率的版本,更清晰且无伪影。TrueTheater HD 能够将 480p 视频提升到 1080p。”

我怎样才能在 MPlayer 中拥有这些功能?有什么办法吗?

video
  • 1 个回答
  • 3143 Views
Martin Hope
Daniyal Javani
Asked: 2014-12-20 12:58:02 +0800 CST

如果我取消选中“软件和更新”中的所有 PPA,会发生什么情况

  • 0

如果我取消选中“软件和更新”中“其他软件”中的所有项目,会发生什么情况?

不再有包的新更新??

package-management
  • 2 个回答
  • 149 Views
Martin Hope
Daniyal Javani
Asked: 2014-12-06 00:52:21 +0800 CST

TLP 不改变 CPU 频率

  • 5

我检查 CPU 时钟速度,cat /proc/cpuinfo | grep "MHz"之后频率仍然是 2100MHz(最大)。你能帮我解决这个问题吗?sudo tlp startsudo tlp bat

我正在使用最新的内核 (3.17.4),因为我想使用 indicator-cpufreq,所以我对 grub 进行了一些更改。

我可以同时使用 indicator-cpufreq 和 tlp 吗?

performance
  • 1 个回答
  • 14782 Views
Martin Hope
Daniyal Javani
Asked: 2014-12-02 08:55:23 +0800 CST

在电池模式下自动降低 CPU 频率

  • 0

有什么办法吗?

像 xbacklight 和 Cuttlefish 这样的东西

cpu
  • 1 个回答
  • 2501 Views
Martin Hope
Daniyal Javani
Asked: 2014-11-30 13:36:51 +0800 CST

如何为 Espeak 安装更多语音?

  • 18

你能帮我从这里安装语音吗,我阅读了手册但我不知道如何“获取 en1”。

text-to-speech
  • 5 个回答
  • 38986 Views
Martin Hope
Daniyal Javani
Asked: 2014-11-25 23:07:56 +0800 CST

indicator-cpufreq 不适用于内核 3.17?

  • 0

升级到内核 3.17 后,indicator-cpufreq 只有两个选项(powersave 和 performance)。有什么办法可以解决吗?

我重新安装了这个程序,但仍然有同样的问题。

kernel
  • 1 个回答
  • 993 Views
Martin Hope
Daniyal Javani
Asked: 2014-11-04 06:23:15 +0800 CST

使用 vnstat 监控 PPPOE 连接

  • 1

我试过了

vahid@DEMON:~$ ifconfig 
eth0      Link encap:Ethernet  
...

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
...

ppp0      Link encap:Point-to-Point Protocol  
...

vboxnet0  Link encap:Ethernet  
...

wlan0     Link encap:Ethernet  
...

然后

vahid@DEMON:~$ vnstat -i ppp0

并得到这个错误:Error: Unable to read database "/var/lib/vnstat/ppp0". 然后

vahid@DEMON:~$ vnstat -u  -i ppp0

并得到这些错误:Error: Unable to read database "/var/lib/vnstat/ppp0". Error: Unable to write database "/var/lib/vnstat/ppp0".

请你帮助我好吗?

networking
  • 1 个回答
  • 1098 Views
Martin Hope
Daniyal Javani
Asked: 2014-10-22 00:07:08 +0800 CST

自定义键盘快捷键来启动终端并在最后不退出的情况下运行命令[重复]

  • 1
这个问题在这里已经有了答案:
如何在不关闭终端的情况下运行脚本? (8 个答案)
7 年前关闭。

我想创建一个快捷方式来使用键盘快捷方式运行命令但是当我按“alt+ctrl+a”时,终端打开并立即关闭。

请帮助我编辑以下命令以防止运行后关闭。

gnome-terminal -e "vnstat -ru -i wlan0 -h"

command-line
  • 2 个回答
  • 1318 Views
Martin Hope
Daniyal Javani
Asked: 2014-09-07 08:34:57 +0800 CST

是否有任何用于对 ubuntu 软件进行排名的网站?

  • 0

我将 software.toptenreviews.com 用于 windows 软件,但我不知道如何才能找到适用于 ubuntu 的最佳软件。

感谢您的答复!

software-center
  • 1 个回答
  • 102 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve